]> www.infradead.org Git - users/hch/xfstests-dev.git/commit
xfs/185: update for rtgroups
authorDarrick J. Wong <djwong@kernel.org>
Thu, 20 Feb 2025 21:47:07 +0000 (13:47 -0800)
committerZorro Lang <zlang@kernel.org>
Thu, 6 Mar 2025 13:25:55 +0000 (21:25 +0800)
commit601dea0201f4614c3d6ebeb573ff80ced8afe65b
treed7d7b1fac706de924129d85fbbd1b5037c542ed6
parenta2e303885292b04ef6ff5f61a49b7365bc6f19e5
xfs/185: update for rtgroups

This old test is a bit too fixated on exact rt allocator behavior.  With
rtgroups enabled, we can end up with one large contiguous region that's
split into multiple bmbt mappings to avoid crossing rtgroup boundaries.
The realtime superblock throws another twist into the mix because the
first rtx will always be in use, which can shift the start of the
physical space mappings by up to 1 rtx.

Also fix a bug where we'd try to fallocate the total number of rtx,
whereas we should be asking for the number of free rtx to avoid ENOSPC
errors.

Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/xfs/185