xfs: fix type mismatches in the inode reclaim functions
authorDarrick J. Wong <djwong@kernel.org>
Fri, 18 Jun 2021 18:57:06 +0000 (11:57 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Mon, 21 Jun 2021 17:12:46 +0000 (10:12 -0700)
commit10be350b8c6c426b82d4df937f25b37eabdc3d67
tree752b1cb8ea2c3ac3f1f67f73cfbadcf6c512db0b
parent77b4d2861e8381d00e4b9bd1be2a355dda99ff60
xfs: fix type mismatches in the inode reclaim functions

It's currently unlikely that we will ever end up with more than 4
billion inodes waiting for reclamation, but the fs object code uses long
int for object counts and we're certainly capable of generating that
many.  Instead of truncating the internal counters, widen them and
report the object counts correctly.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Chandan Babu R <chandanrlinux@gmail.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
fs/xfs/xfs_icache.c
fs/xfs/xfs_icache.h
fs/xfs/xfs_trace.h