]> git.hungrycats.org Git - linux/commit
[PATCH] dentry_stat accounting fix
authorAndrew Morton <akpm@digeo.com>
Sun, 20 Apr 2003 07:26:07 +0000 (00:26 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Sun, 20 Apr 2003 07:26:07 +0000 (00:26 -0700)
commitde8e3749bfc54556c3b9a40534fc2d3309ec84e6
tree0d3349f467fa0dcbfe07bb225f84f1da0754267c
parent70d6700010a67ff55656cd630bf08b5c2a1756e3
[PATCH] dentry_stat accounting fix

From: Maneesh Soni <maneesh@in.ibm.com>

This patch the corrects the dentry_stat.nr_unused calculation.

In select_parent() and shrink_dcache_anon() we were not doing any adjustments
to the nr_unused count after manipulating the dentry_unused list.  Now the
nr_unused count is decremented if the dentry is on dentry_unused list and is
removed from there.

Further in the same routines, we have to adjust the nr_unused count again if
the dentry is moved to the end of d_lru list for pruning.
fs/dcache.c