summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_itable.h
diff options
context:
space:
mode:
authorDarrick J. Wong2019-07-02 18:39:40 +0200
committerDarrick J. Wong2019-07-02 18:40:05 +0200
commit938c710d99a62eed93b6a2770f92f943762beca0 (patch)
treee58cd5750ad32c6aca19b054081026be4cecf8c4 /fs/xfs/xfs_itable.h
parentxfs: convert bulkstat to new iwalk infrastructure (diff)
downloadkernel-qcow2-linux-938c710d99a62eed93b6a2770f92f943762beca0.tar.gz
kernel-qcow2-linux-938c710d99a62eed93b6a2770f92f943762beca0.tar.xz
kernel-qcow2-linux-938c710d99a62eed93b6a2770f92f943762beca0.zip
xfs: calculate inode walk prefetch more carefully
The existing inode walk prefetch is based on the old bulkstat code, which simply allocated 4 pages worth of memory and prefetched that many inobt records, regardless of however many inodes the caller requested. 65536 inodes is a lot to prefetch (~32M on x64, ~512M on arm64) so let's scale things down a little more intelligently based on the number of inodes requested, etc. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Brian Foster <bfoster@redhat.com>
Diffstat (limited to 'fs/xfs/xfs_itable.h')
0 files changed, 0 insertions, 0 deletions