--- linux-2.5.27-rmap-slablru/fs/dquot.c.orig Mon Jul 22 21:06:34 2002 +++ linux-2.5.27-rmap-slablru/fs/dquot.c Mon Jul 22 21:16:39 2002 @@ -480,20 +480,13 @@ /* * This is called from kswapd when we think we need some - * more memory, but aren't really sure how much. So we - * carefully try to free a _bit_ of our dqcache, but not - * too much. - * - * Priority: - * 1 - very urgent: shrink everything - * ... - * 6 - base-level: try to shrink a bit. + * more memory */ -int shrink_dqcache_memory(int priority, unsigned int gfp_mask) +int age_dqcache_memory(kmem_cache_t *cachep, int entries, int gfp_mask) { - if (entries > nr_free_dquots) - entries = nr_free_dquots; + if (entries > dqstats.free_dquots) + entries = dqstats.free_dquots; lock_kernel(); prune_dqcache(entries);