Dave Chinner 8ab47664d5 vfs: increase shrinker batch size
Now that the per-sb shrinker is responsible for shrinking 2 or more
caches, increase the batch size to keep econmies of scale for
shrinking each cache.  Increase the shrinker batch size to 1024
objects.

To allow for a large increase in batch size, add a conditional
reschedule to prune_icache_sb() so that we don't hold the LRU spin
lock for too long. This mirrors the behaviour of the
__shrink_dcache_sb(), and allows us to increase the batch size
without needing to worry about problems caused by long lock hold
times.

To ensure that filesystems using the per-sb shrinker callouts don't
cause problems, document that the object freeing method must
reschedule appropriately inside loops.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2011-07-20 20:47:41 -04:00
..
2011-05-19 15:59:38 -07:00
2011-03-31 11:26:23 -03:00
2011-05-25 09:33:05 -05:00
2010-10-05 09:08:21 -07:00
2009-08-19 10:40:13 -07:00
2009-06-06 10:28:14 -06:00
2009-05-19 10:23:23 +01:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2010-05-10 11:56:30 +02:00
2011-03-31 11:26:23 -03:00
2008-07-26 12:00:05 -07:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-05-23 08:22:20 +03:00
2011-07-20 20:47:41 -04:00
2011-05-24 11:17:13 -05:00
2008-11-12 17:17:17 -08:00