ksmbd: separately allocate ci per dentry
authorNamjae Jeon <linkinjeon@kernel.org>
Mon, 20 Nov 2023 00:13:54 +0000 (09:13 +0900)
committerSteve French <stfrench@microsoft.com>
Fri, 24 Nov 2023 02:50:45 +0000 (20:50 -0600)
commit4274a9dc6aeb9fea66bffba15697a35ae8983b6a
tree8c085c1d3a2e381e1585bc0ff184966f74df0767
parent864fb5d3716303a045c3ffb397f651bfd37bfb36
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>
fs/smb/server/smb2pdu.c
fs/smb/server/vfs.c
fs/smb/server/vfs_cache.c
fs/smb/server/vfs_cache.h