ksmbd: retrieve number of blocks using vfs_getattr in set_file_allocation_info

[ Upstream commit 34cd86b663 ]

Use vfs_getattr() to retrieve stat information, rather than make
assumptions about how a filesystem fills inode structs.

Cc: stable@vger.kernel.org
Signed-off-by: Marios Makassikis <mmakassikis@freebox.fr>
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Marios Makassikis 2024-02-22 10:58:21 +01:00 • committed by Greg Kroah-Hartman
commit 2952d0db18