zfsonlinux/spl — pull request #100 by Prakash-Surya (2012-04-27 20:11:53+00:00)
Title: Ignore slab cache age and delay in direct reclaim

When memory pressure triggers direct memory reclaim, a slab's age and
delay should not prevent it from being freed. This patch ensures these
values are ignored, allowing an empty slab to be freed in this code path
no matter the value of it's age and delay.

In addition, the number of slabs reclaimed from each slab cache has been
modified to avoid removing more than is necessary. Previously, all empty
caches would be removed from each slab in the cache. Now the number of
slabs freed is derived from nr_to_scan and skc_slab_objs.

Signed-off-by: Prakash Surya