mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 03:15:31 +09:00
cifsd: Remove is_attributes_write_allowed() wrapper
Inline it in the only place it is used and remove it. Signed-off-by: Marios Makassikis <mmakassikis@freebox.fr> Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com> Signed-off-by: Steve French <stfrench@microsoft.com>
This commit is contained in:
committed by
Steve French
parent
a299669b2c
commit
7adfd4f6f7
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user