From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Howells Subject: [PATCH 1/3] VFS: Remove detached-dentry counter from shrink_dcache_for_umount_subtree() Date: Tue, 07 Jun 2011 14:09:10 +0100 Message-ID: <20110607130910.23265.79384.stgit@warthog.procyon.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Cc: linux-fsdevel@vger.kernel.org, David Howells To: viro@ZenIV.linux.org.uk, npiggin@gmail.com Return-path: Received: from mx1.redhat.com ([209.132.183.28]:20868 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754733Ab1FGNJP (ORCPT ); Tue, 7 Jun 2011 09:09:15 -0400 Sender: linux-fsdevel-owner@vger.kernel.org List-ID: 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 --- fs/dcache.c | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/fs/dcache.c b/fs/dcache.c index 37f72ee..9e02c6c 100644 --- a/fs/dcache.c +++ b/fs/dcache.c @@ -873,7 +873,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)); @@ -937,8 +936,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;