]> 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>
Wed, 7 Aug 2024 23:04:33 +0000 (16:04 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Sat, 10 Aug 2024 06:54:48 +0000 (23:54 -0700)
commit9f6514908a55a04c741237e11a326c47dd83ab3c
treeb989e8b270f087c2708112282c4bd2cb9b867e5c
parent7dec9bd0e45af00dc44d5973934b61474a4013a1
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>
Signed-off-by: Christoph Hellwig <hch@lst.de>
libxfs/xfs_bmap.c