diff options
author | Marios Makassikis <[email protected]> | 2021-04-27 15:30:22 +0900 |
---|---|---|
committer | Steve French <[email protected]> | 2021-05-10 19:15:45 -0500 |
commit | 7adfd4f6f78eb1c2561bcfdc20f7cc39f2d89437 (patch) | |
tree | fa0ece593b47242f13b6517f13e185428a400e77 | |
parent | a299669b2c3d26cdb787ba4a87603f6de4fd7714 (diff) |
cifsd: Remove is_attributes_write_allowed() wrapper
Inline it in the only place it is used and remove it.
Signed-off-by: Marios Makassikis <[email protected]>
Signed-off-by: Namjae Jeon <[email protected]>
Signed-off-by: Steve French <[email protected]>
-rw-r--r-- | fs/cifsd/smb2pdu.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/fs/cifsd/smb2pdu.c b/fs/cifsd/smb2pdu.c index 73c6154170cf..eeb3f09e8765 100644 --- a/fs/cifsd/smb2pdu.c +++ b/fs/cifsd/smb2pdu.c @@ -5237,11 +5237,6 @@ out: return rc; } -static bool is_attributes_write_allowed(struct ksmbd_file *fp) -{ - return fp->daccess & FILE_WRITE_ATTRIBUTES_LE; -} - static int set_file_basic_info(struct ksmbd_file *fp, char *buf, struct ksmbd_share_config *share) { @@ -5252,7 +5247,7 @@ static int set_file_basic_info(struct ksmbd_file *fp, char *buf, struct inode *inode; int rc; - if (!is_attributes_write_allowed(fp)) + if (!(fp->daccess & FILE_WRITE_ATTRIBUTES_LE)) return -EACCES; file_info = (struct smb2_file_all_info *)buf; |