Skip to content

Commit

Permalink
VFS: Remove detached-dentry counter from shrink_dcache_for_umount_sub…
Browse files Browse the repository at this point in the history
…tree()

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

Signed-off-by: David Howells <[email protected]>
Signed-off-by: Al Viro <[email protected]>
  • Loading branch information
dhowells authored and Al Viro committed Aug 1, 2011
1 parent 86bc704 commit 35f40ef
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions fs/dcache.c
Original file line number Diff line number Diff line change
Expand Up @@ -828,7 +828,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));

Expand Down Expand Up @@ -892,8 +891,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;
Expand Down

0 comments on commit 35f40ef

Please sign in to comment.