linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] VFS: Remove detached-dentry counter from shrink_dcache_for_umount_subtree()
@ 2011-03-22  0:51 David Howells
  0 siblings, 0 replies; only message in thread
From: David Howells @ 2011-03-22  0:51 UTC (permalink / raw)
  To: hch, viro; +Cc: linux-fsdevel, linux-kernel, David Howells

Remove the detached-dentry counter from shrink_dcache_for_umount_subtree() as
the value it computes is no longer used as of commit
312d3ca856d369bb04d0443846b85b4cdde6fa8a which made the nr_dentry counters
summed per-CPU rather than global atomic.

Signed-off-by: David Howells <dhowells@redhat.com>
---

 fs/dcache.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/fs/dcache.c b/fs/dcache.c
index ad25c4c..2d5a5dc 100644
--- a/fs/dcache.c
+++ b/fs/dcache.c
@@ -894,7 +894,6 @@ EXPORT_SYMBOL(shrink_dcache_sb);
 static void shrink_dcache_for_umount_subtree(struct dentry *dentry)
 {
 	struct dentry *parent;
-	unsigned detached = 0;
 
 	BUG_ON(!IS_ROOT(dentry));
 
@@ -958,8 +957,6 @@ static void shrink_dcache_for_umount_subtree(struct dentry *dentry)
 				spin_unlock(&parent->d_lock);
 			}
 
-			detached++;
-
 			inode = dentry->d_inode;
 			if (inode) {
 				dentry->d_inode = NULL;


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2011-03-22  0:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-22  0:51 [PATCH] VFS: Remove detached-dentry counter from shrink_dcache_for_umount_subtree() David Howells

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).