]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit - libxfs/xfs_bmap.c
xfs: hoist freeing of rt data fork extent mappings
authorDarrick J. Wong <djwong@kernel.org>
Mon, 12 Feb 2024 14:01:33 +0000 (15:01 +0100)
committerCarlos Maiolino <cem@kernel.org>
Thu, 15 Feb 2024 11:56:43 +0000 (12:56 +0100)
commit4dbd576217a6104920a631860b31b821256a8a18
treece8491630734ee0895c44432ee1e0841394b24e1
parente2b01f5c201be8af0e61eafcb4d2d573dfd7eaa9
xfs: hoist freeing of rt data fork extent mappings

Source kernel commit: 6c664484337b37fa0cf6e958f4019623e30d40f7

Currently, xfs_bmap_del_extent_real contains a bunch of code to convert
the physical extent of a data fork mapping for a realtime file into rt
extents and pass that to the rt extent freeing function.  Since the
details of this aren't needed when CONFIG_XFS_REALTIME=n, move it to
xfs_rtbitmap.c to reduce code size when realtime isn't enabled.

This will (one day) enable realtime EFIs to reuse the same
unit-converting call with less code duplication.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
libxfs/libxfs_api_defs.h
libxfs/libxfs_priv.h
libxfs/xfs_bmap.c
libxfs/xfs_rtbitmap.c