summaryrefslogtreecommitdiff
path: root/fs/ksmbd/vfs_cache.h
diff options
context:
space:
mode:
authorNamjae Jeon <namjae.jeon@samsung.com>2021-06-29 03:23:56 +0300
committerNamjae Jeon <namjae.jeon@samsung.com>2021-06-29 09:07:51 +0300
commit12202c0594b18218e1645fd0fad92cf77a1f3145 (patch)
tree38f58d722d8e467ab5ec252232407be5147a7d07 /fs/ksmbd/vfs_cache.h
parentab0b263b749ade964db46b148a965eb88bd644be (diff)
downloadlinux-12202c0594b18218e1645fd0fad92cf77a1f3145.tar.xz
ksmbd: use ksmbd_vfs_lock_parent to get stable parent dentry
Use ksmbd_vfs_lock_parent to get stable parent dentry and remove PARENT_INODE 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>
Diffstat (limited to 'fs/ksmbd/vfs_cache.h')
-rw-r--r--fs/ksmbd/vfs_cache.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/ksmbd/vfs_cache.h b/fs/ksmbd/vfs_cache.h
index b01192ebd86b..752cbdab3522 100644
--- a/fs/ksmbd/vfs_cache.h
+++ b/fs/ksmbd/vfs_cache.h
@@ -25,8 +25,6 @@
#define KSMBD_NO_FID (UINT_MAX)
#define SMB2_NO_FID (0xFFFFFFFFFFFFFFFFULL)
-#define PARENT_INODE(fp) d_inode((fp)->filp->f_path.dentry->d_parent)
-
#define ATTR_FP(fp) ((fp)->attrib_only && \
((fp)->cdoption != FILE_OVERWRITE_IF_LE && \
(fp)->cdoption != FILE_OVERWRITE_LE && \