xfs: create a helper to decide if a file mapping targets the rt volume
authorDarrick J. Wong <djwong@kernel.org>
Thu, 22 Feb 2024 20:43:36 +0000 (12:43 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 22 Feb 2024 20:43:36 +0000 (12:43 -0800)
commit5049ff4d140c8f6545464811409302cab017321a
tree18ca4b484ca1826522d5696ddb3201943476d697
parent0dc63c8a1ce39c1ac7da536ee9174cdc714afae2
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>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/libxfs/xfs_bmap.c
fs/xfs/libxfs/xfs_inode_fork.c
fs/xfs/libxfs/xfs_inode_fork.h
fs/xfs/scrub/bmap.c