]> www.infradead.org Git - users/dwmw2/linux.git/commit
xfs: add a helper to prevent bmap merges across rtgroup boundaries
authorChristoph Hellwig <hch@lst.de>
Mon, 4 Nov 2024 04:19:20 +0000 (20:19 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 5 Nov 2024 21:38:40 +0000 (13:38 -0800)
commit8458c4944e10aa8119d9de88e257d60a3537263e
treeb460cc5e62bd4c9ef32e04ecc075b3e310e42a12
parent9bb512734722d2815bb79e27850dddeeff10db90
xfs: add a helper to prevent bmap merges across rtgroup boundaries

Except for the rt superblock, realtime groups do not store any metadata
at the start (or end) of the group.  There is nothing to prevent the
bmap code from merging allocations from multiple groups into a single
bmap record.  Add a helper to check for this case.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
[djwong: massage the commit message after pulling this into rtgroups]
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
fs/xfs/libxfs/xfs_bmap.c