diff options
author | Darrick J. Wong <djwong@kernel.org> | 2022-07-14 11:06:32 -0700 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2022-11-09 19:07:35 -0800 |
commit | d8731488bc78052c1863b28a778ad6e503cb0cb5 (patch) | |
tree | 08adc0ba42fa17e10be88020d311e373e9d62e92 /fs/xfs/scrub | |
parent | 37c015cada4df6aeb7efae7c95304e718eea5535 (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.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/scrub/bmap.c b/fs/xfs/scrub/bmap.c index c1f078c6d328..6e0d2350f3ba 100644 --- a/fs/xfs/scrub/bmap.c +++ b/fs/xfs/scrub/bmap.c @@ -707,7 +707,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); @@ -792,7 +792,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; |