]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_repair: support more than 2^32 owners per physical block
authorDarrick J. Wong <djwong@djwong.org>
Mon, 15 Apr 2024 23:07:50 +0000 (16:07 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 17 Apr 2024 21:06:28 +0000 (14:06 -0700)
commitd50ca6bd3b83d46b466fc639ad6d0acec126422d
treeaa0a5f83ad678d54981312917e293c53583387be
parentcf3fe96eb6b4c41162a402f99470f41d4cb1b275
xfs_repair: support more than 2^32 owners per physical block

Now that the incore structures handle more than 2^32 records correctly,
fix the refcountbt generation code to handle the case of that many rmap
records pointing to a piece of space in an AG.  This fixes the problem
where the refcountbt cannot be rebuilt properly because of integer
truncation if there are more than 4.3 billion owners of a piece of
space.

Signed-off-by: Darrick J. Wong <djwong@djwong.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
repair/rmap.c
repair/rmap.h