]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs_repair: adjust btree bulkloading slack computations to match online repair
authorDarrick J. Wong <djwong@kernel.org>
Mon, 15 Apr 2024 23:07:45 +0000 (16:07 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 17 Apr 2024 21:06:27 +0000 (14:06 -0700)
commite7bba6c433b156d03b2f2628851f717a5ae1726b
treebd7eca003f4cf7930c9b4ab9c35b5ace1740eb72
parenta6e7d369929423b10df05d11dddd1dd9550e4f20
xfs_repair: adjust btree bulkloading slack computations to match online repair

Adjust the lowspace threshold in the new btree block slack computation
code to match online repair, which uses a straight 10% instead of magic
shifting to approximate that without division.  Repairs aren't that
frequent in the kernel; and userspace can always do u64 division.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bill O'Donnell <bodonnel@redhat.com>
repair/bulkload.c