xfs: create a helper to compute leftovers of realtime extents
authorDarrick J. Wong <djwong@kernel.org>
Mon, 16 Oct 2023 16:34:39 +0000 (09:34 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 17 Oct 2023 23:24:22 +0000 (16:24 -0700)
commit68db60bf01c131c09bbe35adf43bd957a4c124bc
tree05898334658a0cc5e8d1a50dfc32d02f7e971668
parentfa5a387230861116c2434c20d29fc4b3fd077d24
xfs: create a helper to compute leftovers of realtime extents

Create a helper to compute the misalignment between a file extent
(xfs_extlen_t) and a realtime extent.

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_rtbitmap.h
fs/xfs/scrub/inode.c
fs/xfs/xfs_bmap_util.c
fs/xfs/xfs_inode_item.c
fs/xfs/xfs_ioctl.c