]> www.infradead.org Git - users/hch/xfs.git/commit
xfs: add a helper to prevent bmap merges across rtgroup boundaries
authorChristoph Hellwig <hch@lst.de>
Mon, 23 Sep 2024 20:41:23 +0000 (13:41 -0700)
committerChristoph Hellwig <hch@lst.de>
Wed, 9 Oct 2024 13:55:40 +0000 (15:55 +0200)
commitb2686b4ea306156ad4e80a9c0407f90256ff4e9f
treec77bda372c620b981763c900956b121281c1fb50
parent4faede9d9053c986463def96c3aea980c7505fa2
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