aboutsummaryrefslogtreecommitdiffstats
path: root/fs/dcache.c
diff options
context:
space:
mode:
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;