diff options
author | Namjae Jeon <namjae.jeon@samsung.com> | 2021-06-29 09:23:56 +0900 |
---|---|---|
committer | Namjae Jeon <namjae.jeon@samsung.com> | 2021-06-29 15:07:51 +0900 |
commit | 12202c0594b18218e1645fd0fad92cf77a1f3145 (patch) | |
tree | 38f58d722d8e467ab5ec252232407be5147a7d07 /fs/ksmbd/vfs.h | |
parent | ab0b263b749ade964db46b148a965eb88bd644be (diff) | |
download | linux-stable-12202c0594b18218e1645fd0fad92cf77a1f3145.tar.gz linux-stable-12202c0594b18218e1645fd0fad92cf77a1f3145.tar.bz2 linux-stable-12202c0594b18218e1645fd0fad92cf77a1f3145.zip |
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.h')
-rw-r--r-- | fs/ksmbd/vfs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ksmbd/vfs.h b/fs/ksmbd/vfs.h index ae8eff1f0315..ba12fea004b5 100644 --- a/fs/ksmbd/vfs.h +++ b/fs/ksmbd/vfs.h @@ -192,6 +192,7 @@ struct ksmbd_kstat { __le32 file_attributes; }; +int ksmbd_vfs_lock_parent(struct dentry *parent, struct dentry *child); int ksmbd_vfs_may_delete(struct dentry *dentry); int ksmbd_vfs_query_maximal_access(struct dentry *dentry, __le32 *daccess); int ksmbd_vfs_create(struct ksmbd_work *work, const char *name, umode_t mode); |