]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs: implement busy extent tracking for rtgroups
authorDarrick J. Wong <djwong@kernel.org>
Tue, 15 Oct 2024 19:44:16 +0000 (12:44 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Fri, 1 Nov 2024 20:44:51 +0000 (13:44 -0700)
commit8b0a3ca426b06863170754dfc39e9c2121d9ab1c
tree7fcb44d6a034c09c67ef05b6a47fe11eb1096a54
parent226540626c919fc7f5386dcc8c4837d2f06631b7
xfs: implement busy extent tracking for rtgroups

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