Skip to contentSkip to conversation

VFS: Remove detached-dentry counter from shrink_dcache_for_umount_subtree()

PATCH New David Howells 1 participant 1 message Mar 22, 2011 VFS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 VFS: Remove detached-dentry counter from shrink_dcache_for_umount_subtree()

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.

---

 fs/dcache.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
fs/dcache.c +0 -3
index ad25c4c..2d5a5dc 100644
@@ -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;