diff options
author | Namjae Jeon <linkinjeon@kernel.org> | 2023-11-20 09:13:54 +0900 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2023-11-23 20:50:45 -0600 |
commit | 4274a9dc6aeb9fea66bffba15697a35ae8983b6a (patch) | |
tree | 8c085c1d3a2e381e1585bc0ff184966f74df0767 /fs/smb/server/vfs.c | |
parent | 864fb5d3716303a045c3ffb397f651bfd37bfb36 (diff) |
ksmbd: separately allocate ci per dentry
xfstests generic/002 test fail when enabling smb2 leases feature.
This test create hard link file, but removeal failed.
ci has a file open count to count file open through the smb client,
but in the case of hard link files, The allocation of ci per inode
cause incorrectly open count for file deletion. This patch allocate
ci per dentry to counts open counts for hard link.
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/smb/server/vfs.c')
-rw-r--r-- | fs/smb/server/vfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/smb/server/vfs.c b/fs/smb/server/vfs.c index 533257b46fc1..9091dcd7a310 100644 --- a/fs/smb/server/vfs.c +++ b/fs/smb/server/vfs.c @@ -719,7 +719,7 @@ retry: goto out3; } - parent_fp = ksmbd_lookup_fd_inode(d_inode(old_child->d_parent)); + parent_fp = ksmbd_lookup_fd_inode(old_child->d_parent); if (parent_fp) { if (parent_fp->daccess & FILE_DELETE_LE) { pr_err("parent dir is opened with delete access\n"); |