summaryrefslogtreecommitdiffstats
path: root/fs/smb/server/vfs_cache.c
diff options
context:
space:
mode:
authorNamjae Jeon <linkinjeon@kernel.org>2023-06-15 15:56:32 +0900
committerSteve French <stfrench@microsoft.com>2023-06-16 21:04:19 -0500
commit40b268d384a22276dca1450549f53eed60e21deb (patch)
tree3c6e39964a6356cff3c81d04b25fc3c0ba333a94 /fs/smb/server/vfs_cache.c
parent2b9b8f3b68edb3d67d79962f02e26dbb5ae3808d (diff)
downloadlinux-stable-40b268d384a22276dca1450549f53eed60e21deb.tar.gz
linux-stable-40b268d384a22276dca1450549f53eed60e21deb.tar.bz2
linux-stable-40b268d384a22276dca1450549f53eed60e21deb.zip
ksmbd: add mnt_want_write to ksmbd vfs functions
ksmbd is doing write access using vfs helpers. There are the cases that mnt_want_write() is not called in vfs helper. This patch add missing mnt_want_write() to ksmbd vfs functions. Cc: stable@vger.kernel.org Cc: Amir Goldstein <amir73il@gmail.com> Signed-off-by: Namjae Jeon <linkinjeon@kernel.org> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/smb/server/vfs_cache.c')
-rw-r--r--fs/smb/server/vfs_cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/smb/server/vfs_cache.c b/fs/smb/server/vfs_cache.c
index 2d0138e72d78..f41f8d6108ce 100644
--- a/fs/smb/server/vfs_cache.c
+++ b/fs/smb/server/vfs_cache.c
@@ -252,7 +252,7 @@ static void __ksmbd_inode_close(struct ksmbd_file *fp)
if (ksmbd_stream_fd(fp) && (ci->m_flags & S_DEL_ON_CLS_STREAM)) {
ci->m_flags &= ~S_DEL_ON_CLS_STREAM;
err = ksmbd_vfs_remove_xattr(file_mnt_idmap(filp),
- filp->f_path.dentry,
+ &filp->f_path,
fp->stream.name);
if (err)
pr_err("remove xattr failed : %s\n",