Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 35f40ef0 authored by David Howells's avatar David Howells Committed by Al Viro
Browse files

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
312d3ca8 which made the nr_dentry counters
summed per-CPU rather than global atomic.

Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 86bc704d
Loading
Loading
Loading
Loading
+0 −3
Original line number Original line Diff line number Diff line
@@ -828,7 +828,6 @@ EXPORT_SYMBOL(shrink_dcache_sb);
static void shrink_dcache_for_umount_subtree(struct dentry *dentry)
static void shrink_dcache_for_umount_subtree(struct dentry *dentry)
{
{
	struct dentry *parent;
	struct dentry *parent;
	unsigned detached = 0;


	BUG_ON(!IS_ROOT(dentry));
	BUG_ON(!IS_ROOT(dentry));


@@ -892,8 +891,6 @@ static void shrink_dcache_for_umount_subtree(struct dentry *dentry)
				spin_unlock(&parent->d_lock);
				spin_unlock(&parent->d_lock);
			}
			}


			detached++;

			inode = dentry->d_inode;
			inode = dentry->d_inode;
			if (inode) {
			if (inode) {
				dentry->d_inode = NULL;
				dentry->d_inode = NULL;