ksmbd: fix incorrect AllocationSize set in smb2_get_info
authorNamjae Jeon <linkinjeon@kernel.org>
Fri, 19 May 2023 14:11:33 +0000 (23:11 +0900)
committerSteve French <stfrench@microsoft.com>
Sat, 27 May 2023 01:27:46 +0000 (20:27 -0500)
commit6cc2268f5647cbfde3d4fc2e4ee005070ea3a8d2
treeac80563761c9a22a1d854d65d9627ea375a78c70
parent36322523dddb11107e9f7f528675a0dec2536103
ksmbd: fix incorrect AllocationSize set in smb2_get_info

If filesystem support sparse file, ksmbd should return allocated size
using ->i_blocks instead of stat->size. This fix generic/694 xfstests.

Cc: stable@vger.kernel.org
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/server/smb2pdu.c