xfs: remove xfile_stat
authorChristoph Hellwig <hch@lst.de>
Mon, 19 Feb 2024 06:27:20 +0000 (07:27 +0100)
committerChandan Babu R <chandanbabu@kernel.org>
Wed, 21 Feb 2024 06:06:52 +0000 (11:36 +0530)
commit0473635d46e2344eed897dcfca12aa4688285262
tree7fb3d7ee760b9c20dc293aab41a60430fb53a25f
parenta2078df025d92046cc98a9fce65220abd864781e
xfs: remove xfile_stat

vfs_getattr is needed to query inode attributes for unknown underlying
file systems.  But shmemfs is well known for users of shmem_file_setup
and shmem_read_mapping_page_gfp that rely on it not needing specific
inode revalidation and having a normal mapping.  Remove the detour
through the getattr method and an extra wrapper, and just read the
inode size and i_bytes directly in the scrub tracing code.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
fs/xfs/scrub/trace.h
fs/xfs/scrub/xfile.c
fs/xfs/scrub/xfile.h