linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] fs: fold _d_rehash into d_rehash
@ 2014-10-02 17:34 Christoph Hellwig
  2014-10-02 17:49 ` Al Viro
  0 siblings, 1 reply; 2+ messages in thread
From: Christoph Hellwig @ 2014-10-02 17:34 UTC (permalink / raw)
  To: Al Viro; +Cc: linux-fsdevel

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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-10-02 17:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-02 17:34 [PATCH] fs: fold _d_rehash into d_rehash Christoph Hellwig
2014-10-02 17:49 ` Al Viro

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).