aboutsummaryrefslogtreecommitdiffstats
path: root/fs/dcache.c
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2011-06-07 09:09:10 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2011-08-01 02:27:57 -0400
commit35f40ef00204c456f5c181c0e7f54e25bb93cd49 (patch)
treedca61042039ba374b79491ce5b3227759c214f49 /fs/dcache.c
parent86bc704db0ab7e69230f79bc7d124e063259abc6 (diff)
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. Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/dcache.c')
-rw-r--r--fs/dcache.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/dcache.c b/fs/dcache.c
index b05aac3a8cfc..75590572ff7a 100644
--- a/fs/dcache.c
+++ b/fs/dcache.c
@@ -828,7 +828,6 @@ EXPORT_SYMBOL(shrink_dcache_sb);
828static void shrink_dcache_for_umount_subtree(struct dentry *dentry) 828static void shrink_dcache_for_umount_subtree(struct dentry *dentry)
829{ 829{
830 struct dentry *parent; 830 struct dentry *parent;
831 unsigned detached = 0;
832 831
833 BUG_ON(!IS_ROOT(dentry)); 832 BUG_ON(!IS_ROOT(dentry));
834 833
@@ -892,8 +891,6 @@ static void shrink_dcache_for_umount_subtree(struct dentry *dentry)
892 spin_unlock(&parent->d_lock); 891 spin_unlock(&parent->d_lock);
893 } 892 }
894 893
895 detached++;
896
897 inode = dentry->d_inode; 894 inode = dentry->d_inode;
898 if (inode) { 895 if (inode) {
899 dentry->d_inode = NULL; 896 dentry->d_inode = NULL;