]> www.infradead.org Git - users/dwmw2/linux.git/commit
xfs: implement busy extent tracking for rtgroups
authorDarrick J. Wong <djwong@kernel.org>
Mon, 4 Nov 2024 04:19:36 +0000 (20:19 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 5 Nov 2024 21:38:44 +0000 (13:38 -0800)
commit7e85fc2394115db56be678b617ed646563926581
tree946d0a47082f43626d4f2ff06ead1375fed30fe5
parent0c271d906ebc7e2fb1e66e25f1ee52974f255ca2
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>
fs/xfs/libxfs/xfs_rtbitmap.c
fs/xfs/libxfs/xfs_rtgroup.h
fs/xfs/xfs_extent_busy.c
fs/xfs/xfs_rtalloc.c
fs/xfs/xfs_trace.h