xfs: convert xfsbud shrinker to a per-buftarg shrinker.
authorDave Chinner <dchinner@redhat.com>
Tue, 30 Nov 2010 06:27:57 +0000 (17:27 +1100)
committerDave Chinner <david@fromorbit.com>
Tue, 30 Nov 2010 06:27:57 +0000 (17:27 +1100)
commitff57ab21995a8636cfc72efeebb09cc6034d756f
tree675374b134689029d70ca1e0200866cf2f906c44
parent1a427ab0c1b205d1bda8da0b77ea9d295ac23c57
xfs: convert xfsbud shrinker to a per-buftarg shrinker.

Before we introduce per-buftarg LRU lists, split the shrinker
implementation into per-buftarg shrinker callbacks. At the moment
we wake all the xfsbufds to run the delayed write queues to free
the dirty buffers and make their pages available for reclaim.
However, with an LRU, we want to be able to free clean, unused
buffers as well, so we need to separate the xfsbufd from the
shrinker callbacks.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Alex Elder <aelder@sgi.com>
fs/xfs/linux-2.6/xfs_buf.c
fs/xfs/linux-2.6/xfs_buf.h