]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs: add a helper to prevent bmap merges across rtgroup boundaries
authorChristoph Hellwig <hch@lst.de>
Tue, 15 Oct 2024 19:44:10 +0000 (12:44 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Fri, 1 Nov 2024 20:44:50 +0000 (13:44 -0700)
commit3a3b45d41e1147a0f550fe56158e3704a2b1de31
tree2a378e641e8c2669f0fc98e748407760aa85e633
parent1a1ff23ef951fc69bfda8c5bcf87bfaa1e83abdf
xfs: add a helper to prevent bmap merges across rtgroup boundaries

Source kernel commit: a3ae21f825b8790c5cf231e366309dbec3677ddf

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>
libxfs/xfs_bmap.c