xfs: make use of new shrinker callout for the inode cache
authorDave Chinner <dchinner@redhat.com>
Fri, 8 Jul 2011 04:14:46 +0000 (14:14 +1000)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 21 Jul 2011 00:47:42 +0000 (20:47 -0400)
commit8daaa83145ef1f0a146680618328dbbd0fa76939
tree8ca49f03ed2fc4dada7283a6e109b13e3fb5501e
parent8ab47664d51a69ea79fe70bb07ca80664f74f76b
xfs: make use of new shrinker callout for the inode cache

Convert the inode reclaim shrinker to use the new per-sb shrinker
operations. This allows much bigger reclaim batches to be used, and
allows the XFS inode cache to be shrunk in proportion with the VFS
dentry and inode caches. This avoids the problem of the VFS caches
being shrunk significantly before the XFS inode cache is shrunk
resulting in imbalances in the caches during reclaim.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/xfs/linux-2.6/xfs_super.c
fs/xfs/linux-2.6/xfs_sync.c
fs/xfs/linux-2.6/xfs_sync.h