summaryrefslogtreecommitdiff
path: root/fs/xfs/scrub
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2022-07-14 11:06:32 -0700
committerDarrick J. Wong <djwong@kernel.org>2022-10-14 14:16:47 -0700
commit99b8cff7b521d1b870392a1264a5f82ee6e1a5df (patch)
treea11f2849b67948586c4bf013722e4af07e0018db /fs/xfs/scrub
parenta306da0f1e0cdf9ba1181f8345954bda159a610d (diff)
xfs: create a helper to decide if a file mapping targets the rt volume
Create a helper so that we can stop open-coding this decision everywhere. Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to 'fs/xfs/scrub')
-rw-r--r--fs/xfs/scrub/bmap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/scrub/bmap.c b/fs/xfs/scrub/bmap.c
index fb0e186c0f4f..c2bd4c0b97be 100644
--- a/fs/xfs/scrub/bmap.c
+++ b/fs/xfs/scrub/bmap.c
@@ -701,7 +701,7 @@ xchk_bmap_check_rmaps(
return 0;
/* Don't support realtime rmap checks yet. */
- if (XFS_IS_REALTIME_INODE(sc->ip) && whichfork == XFS_DATA_FORK)
+ if (xfs_ifork_is_realtime(sc->ip, whichfork))
return 0;
ASSERT(xfs_ifork_ptr(sc->ip, whichfork) != NULL);
@@ -786,7 +786,7 @@ xchk_bmap(
if (!ifp)
goto out;
- info.is_rt = whichfork == XFS_DATA_FORK && XFS_IS_REALTIME_INODE(ip);
+ info.is_rt = xfs_ifork_is_realtime(ip, whichfork);
info.whichfork = whichfork;
info.is_shared = whichfork == XFS_DATA_FORK && xfs_is_reflink_inode(ip);
info.sc = sc;