]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs: add a helper to prevent bmap merges across rtgroup boundaries
authorChristoph Hellwig <hch@lst.de>
Mon, 25 Nov 2024 21:14:21 +0000 (13:14 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 24 Dec 2024 02:01:29 +0000 (18:01 -0800)
commit15fb060e4e9b1104dd69702e1a5a24006b926ed8
treef3045ccb21817d365de3bcd75f9dad977580cdf0
parent74dd0d11a449844edd447fc70620889e44f5403b
xfs: add a helper to prevent bmap merges across rtgroup boundaries

Source kernel commit: 8458c4944e10aa8119d9de88e257d60a3537263e

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>
Reviewed-by: Christoph Hellwig <hch@lst.de>
libxfs/xfs_bmap.c