]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xfs: use rtgroup busy extent list for FITRIM
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)
commita3315d11305f5c2d82fcb00e3df34775adff4084
tree8a585239327461c9400589a1ebe5b3b0338815a0
parent7e85fc2394115db56be678b617ed646563926581
xfs: use rtgroup busy extent list for FITRIM

For filesystems that have rtgroups and hence use the busy extent list
for freed rt space, use that busy extent list so that FITRIM can issue
discard commands asynchronously without worrying about other callers
accidentally allocating and using space that is being discarded.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/xfs_discard.c