diff options
author | Darrick J. Wong <djwong@kernel.org> | 2021-06-18 20:57:06 +0200 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2021-06-21 19:12:46 +0200 |
commit | 10be350b8c6c426b82d4df937f25b37eabdc3d67 (patch) | |
tree | 752b1cb8ea2c3ac3f1f67f73cfbadcf6c512db0b /fs/xfs/xfs_trace.h | |
parent | xfs: separate primary inode selection criteria in xfs_iget_cache_hit (diff) | |
download | linux-10be350b8c6c426b82d4df937f25b37eabdc3d67.tar.xz linux-10be350b8c6c426b82d4df937f25b37eabdc3d67.zip |
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>
Diffstat (limited to 'fs/xfs/xfs_trace.h')
-rw-r--r-- | fs/xfs/xfs_trace.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/xfs_trace.h b/fs/xfs/xfs_trace.h index a442bc4dfdc4..f9d8d605f9b1 100644 --- a/fs/xfs/xfs_trace.h +++ b/fs/xfs/xfs_trace.h @@ -3895,7 +3895,7 @@ DECLARE_EVENT_CLASS(xfs_icwalk_class, __field(uint32_t, gid) __field(prid_t, prid) __field(__u64, min_file_size) - __field(int, scan_limit) + __field(long, scan_limit) __field(unsigned long, caller_ip) ), TP_fast_assign( @@ -3910,7 +3910,7 @@ DECLARE_EVENT_CLASS(xfs_icwalk_class, __entry->scan_limit = icw ? icw->icw_scan_limit : 0; __entry->caller_ip = caller_ip; ), - TP_printk("dev %d:%d flags 0x%x uid %u gid %u prid %u minsize %llu scan_limit %d caller %pS", + TP_printk("dev %d:%d flags 0x%x uid %u gid %u prid %u minsize %llu scan_limit %ld caller %pS", MAJOR(__entry->dev), MINOR(__entry->dev), __entry->flags, __entry->uid, |