]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs: implement busy extent tracking for rtgroups
authorDarrick J. Wong <djwong@kernel.org>
Mon, 25 Nov 2024 21:14:26 +0000 (13:14 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 24 Dec 2024 02:01:31 +0000 (18:01 -0800)
commit84daa9bd1b59e884de3ab0730de51150d520a4c8
tree888fe18b6a76b96e694c213ff69ab89298fbb36a
parentfdaaa0cb7a0c2d7767f8868f404d76c4127a1ec4
xfs: implement busy extent tracking for rtgroups

Source kernel commit: 7e85fc2394115db56be678b617ed646563926581

For rtgroups filesystems, track newly freed (rt) space through the log
until the rt EFIs have been committed to disk.  This way we ensure that
space cannot be reused until all traces of the old owner are gone.

As a fringe benefit, we now support -o discard on the realtime device.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
libxfs/xfs_rtbitmap.c
libxfs/xfs_rtgroup.h