Commit 38b20d21 authored by Linus Torvalds's avatar Linus Torvalds

Shrink icache more aggressively - if we free the dentries,

go ahead and free the inodes too, don't try to age them any
more (the aging has been done on a dentry level).
parent 36644e22
...@@ -578,7 +578,9 @@ static int shrink_caches(zone_t * classzone, int priority, unsigned int gfp_mask ...@@ -578,7 +578,9 @@ static int shrink_caches(zone_t * classzone, int priority, unsigned int gfp_mask
return 0; return 0;
shrink_dcache_memory(priority, gfp_mask); shrink_dcache_memory(priority, gfp_mask);
shrink_icache_memory(priority, gfp_mask);
/* After shrinking the dcache, get rid of unused inodes too .. */
shrink_icache_memory(1, gfp_mask);
#ifdef CONFIG_QUOTA #ifdef CONFIG_QUOTA
shrink_dqcache_memory(DEF_PRIORITY, gfp_mask); shrink_dqcache_memory(DEF_PRIORITY, gfp_mask);
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment