mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-10 23:29:46 +00:00
ksmbd: opencode to remove ATTR_FP macro
Opencode to remove ATTR_FP macro. Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com> Signed-off-by: Steve French <stfrench@microsoft.com>
This commit is contained in:
parent
12202c0594
commit
849fbc549d
@ -1111,7 +1111,9 @@ int smb_grant_oplock(struct ksmbd_work *work, int req_op_level, u64 pid,
|
||||
goto set_lev;
|
||||
|
||||
/* grant none-oplock if second open is trunc */
|
||||
if (ATTR_FP(fp)) {
|
||||
if (fp->attrib_only && fp->cdoption != FILE_OVERWRITE_IF_LE &&
|
||||
fp->cdoption != FILE_OVERWRITE_LE &&
|
||||
fp->cdoption != FILE_SUPERSEDE_LE) {
|
||||
req_op_level = SMB2_OPLOCK_LEVEL_NONE;
|
||||
goto set_lev;
|
||||
}
|
||||
|
@ -25,11 +25,6 @@
|
||||
#define KSMBD_NO_FID (UINT_MAX)
|
||||
#define SMB2_NO_FID (0xFFFFFFFFFFFFFFFFULL)
|
||||
|
||||
#define ATTR_FP(fp) ((fp)->attrib_only && \
|
||||
((fp)->cdoption != FILE_OVERWRITE_IF_LE && \
|
||||
(fp)->cdoption != FILE_OVERWRITE_LE && \
|
||||
(fp)->cdoption != FILE_SUPERSEDE_LE))
|
||||
|
||||
struct ksmbd_conn;
|
||||
struct ksmbd_session;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user