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)
commit97550c7478a2da93e348d8c3075d92cddd473a78
tree6d2e25fb2bc11e14388f2ed5d8a84e869ee08480
parent6d896d3b44cf64ab9b2483697e222098e7b72f70
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