gcc 11.2 complains about certain variables now that xfs_extnum_t is an
unsigned 64-bit integer:
dinode.c: In function ‘process_exinode’:
dinode.c:960:21: error: comparison of unsigned expression in ‘< 0’ is always false [-Werror=type-limits]
960 | if (numrecs < 0)
Since we actually have a function that will tell us the maximum
supported extent count for an ondisk dinode structure, use a direct
comparison instead of tricky integer math to detect overflows. A more
exhaustive audit is probably necessary.
IOWS, shut up, gcc...
Signed-off-by: Darrick J. Wong <djwong@kernel.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Eric Sandeen <sandeen@sandeen.net>