]> git.baikalelectronics.ru Git - kernel.git/commit
ksmbd: fix same UniqueId for dot and dotdot entries
authorNamjae Jeon <linkinjeon@kernel.org>
Sun, 30 Jan 2022 09:28:56 +0000 (18:28 +0900)
committerSteve French <stfrench@microsoft.com>
Fri, 4 Feb 2022 06:12:22 +0000 (00:12 -0600)
commit926a98eadd487be188cce9507840a8f8c6bedc79
tree6d2e25fb2bc11e14388f2ed5d8a84e869ee08480
parent3e44334e5aa7481d705246d22e11f675be412832
ksmbd: fix same UniqueId for dot and dotdot entries

ksmbd sets the inode number to UniqueId. However, the same UniqueId for
dot and dotdot entry is set to the inode number of the parent inode.
This patch set them using the current inode and parent inode.

Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/ksmbd/smb_common.c