]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
repair: refactor the BLKMAP_NEXTS_MAX check
authorChristoph Hellwig <hch@lst.de>
Thu, 15 Feb 2024 06:54:01 +0000 (07:54 +0100)
committerCarlos Maiolino <cem@kernel.org>
Wed, 13 Mar 2024 07:48:37 +0000 (08:48 +0100)
commitc7820bbb424250305be1841fa98be1861b44e117
tree337e6aab42293200f0dae0cde7841a5a7e525a08
parent87d0aad101904e5732ac29ada9c4e250a4dd04d5
repair: refactor the BLKMAP_NEXTS_MAX check

Check the 32-bit limits using sizeof instead of cpp ifdefs so that we
can get rid of BITS_PER_LONG.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
repair/bmap.c
repair/bmap.h