]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit289af1c6127e37cebba6316eaf85b8ca96b1423b
tree8ca49f03ed2fc4dada7283a6e109b13e3fb5501e
parentf908887ecdcae65ac081b2e525d94adcff1ff2f7
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