diff options
author | Darrick J. Wong <djwong@kernel.org> | 2023-08-10 07:48:12 -0700 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2023-08-10 07:48:12 -0700 |
commit | 0d2966345364ff1de74020ff280970a43e9849cc (patch) | |
tree | bd9b47bceeee9b51984e4ac59053a5c91df76143 /fs/xfs/scrub/ialloc.c | |
parent | a634c0a60b9c7942630b4f68b0af55c62d74b8fc (diff) | |
download | linux-stable-0d2966345364ff1de74020ff280970a43e9849cc.tar.gz linux-stable-0d2966345364ff1de74020ff280970a43e9849cc.tar.bz2 linux-stable-0d2966345364ff1de74020ff280970a43e9849cc.zip |
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>
Diffstat (limited to 'fs/xfs/scrub/ialloc.c')
-rw-r--r-- | fs/xfs/scrub/ialloc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/xfs/scrub/ialloc.c b/fs/xfs/scrub/ialloc.c index 575f22a02ebe..3a3d750b02e0 100644 --- a/fs/xfs/scrub/ialloc.c +++ b/fs/xfs/scrub/ialloc.c @@ -328,8 +328,7 @@ xchk_iallocbt_check_cluster_ifree( goto out; } - error = xfs_icache_inode_is_allocated(mp, bs->cur->bc_tp, fsino, - &ino_inuse); + error = xchk_inode_is_allocated(bs->sc, fsino, &ino_inuse); if (error == -ENODATA) { /* Not cached, just read the disk buffer */ freemask_ok = irec_free ^ !!(dip->di_mode); |