From: Christoph Hellwig <hch@lst.de>
To: Al Viro <viro@zeniv.linux.org.uk>
Cc: linux-fsdevel@vger.kernel.org
Subject: [PATCH] fs: fold _d_rehash into d_rehash
Date: Thu, 2 Oct 2014 19:34:24 +0200 [thread overview]
Message-ID: <1412271264-32362-1-git-send-email-hch@lst.de> (raw)
Signed-off-by: Christoph Hellwig <hch@lst.de>
---
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
next reply other threads:[~2014-10-02 17:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-02 17:34 Christoph Hellwig [this message]
2014-10-02 17:49 ` [PATCH] fs: fold _d_rehash into d_rehash Al Viro
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1412271264-32362-1-git-send-email-hch@lst.de \
--to=hch@lst.de \
--cc=linux-fsdevel@vger.kernel.org \
--cc=viro@zeniv.linux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).