From: Christoph Hellwig Subject: [PATCH] fs: fold _d_rehash into d_rehash Date: Thu, 2 Oct 2014 19:34:24 +0200 Message-ID: <1412271264-32362-1-git-send-email-hch@lst.de> Cc: linux-fsdevel@vger.kernel.org To: Al Viro Return-path: Received: from casper.infradead.org ([85.118.1.10]:57656 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751661AbaJBRb6 (ORCPT ); Thu, 2 Oct 2014 13:31:58 -0400 Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Signed-off-by: Christoph Hellwig --- fs/dcache.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/fs/dcache.c b/fs/dcache.c index cb25a1a..c48574b 100644 --- a/fs/dcache.c +++ b/fs/dcache.c @@ -2325,11 +2325,6 @@ static void __d_rehash(struct dentry * entry, struct hlist_bl_head *b) hlist_bl_unlock(b); } -static void _d_rehash(struct dentry * entry) -{ - __d_rehash(entry, d_hash(entry->d_parent, entry->d_name.hash)); -} - /** * d_rehash - add an entry back to the hash * @entry: dentry to add to the hash @@ -2340,7 +2335,7 @@ static void _d_rehash(struct dentry * entry) void d_rehash(struct dentry * entry) { spin_lock(&entry->d_lock); - _d_rehash(entry); + __d_rehash(entry, d_hash(entry->d_parent, entry->d_name.hash)); spin_unlock(&entry->d_lock); } EXPORT_SYMBOL(d_rehash); -- 1.9.1