xfs: hide xfs_inode_is_allocated in scrub common code
authorDarrick J. Wong <djwong@kernel.org>
Thu, 10 Aug 2023 14:48:12 +0000 (07:48 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 10 Aug 2023 14:48:12 +0000 (07:48 -0700)
commit0d2966345364ff1de74020ff280970a43e9849cc
treebd9b47bceeee9b51984e4ac59053a5c91df76143
parenta634c0a60b9c7942630b4f68b0af55c62d74b8fc
xfs: hide xfs_inode_is_allocated in scrub common code

This function is only used by online fsck, so let's move it there.
In the next patch, we'll fix it to work properly and to require that the
caller hold the AGI buffer locked.  No major changes aside from
adjusting the signature a bit.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
fs/xfs/scrub/common.c
fs/xfs/scrub/common.h
fs/xfs/scrub/ialloc.c
fs/xfs/xfs_icache.c
fs/xfs/xfs_icache.h