All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 3.2-rc5] fs: Mark d_clear_need_lookup() static.
@ 2011-12-16  5:26 Tetsuo Handa
  0 siblings, 0 replies; only message in thread
From: Tetsuo Handa @ 2011-12-16  5:26 UTC (permalink / raw)
  To: josef; +Cc: linux-fsdevel

Commit 44396f4b "fs: add a DCACHE_NEED_LOOKUP flag for d_flags" introduced
d_clear_need_lookup() but it is used only in fs/dcache.c since 3.1.

Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
-----
diff --git a/fs/dcache.c b/fs/dcache.c
index 89509b5..74e38b9 100644
--- a/fs/dcache.c
+++ b/fs/dcache.c
@@ -384,14 +384,13 @@ EXPORT_SYMBOL(d_drop);
  * the lookup code, but now needs to be unhashed while we do the actual lookup
  * and clear the DCACHE_NEED_LOOKUP flag.
  */
-void d_clear_need_lookup(struct dentry *dentry)
+static void d_clear_need_lookup(struct dentry *dentry)
 {
 	spin_lock(&dentry->d_lock);
 	__d_drop(dentry);
 	dentry->d_flags &= ~DCACHE_NEED_LOOKUP;
 	spin_unlock(&dentry->d_lock);
 }
-EXPORT_SYMBOL(d_clear_need_lookup);
 
 /*
  * Finish off a dentry we've decided to kill.
diff --git a/include/linux/dcache.h b/include/linux/dcache.h
index ed9f74f..45a9be5 100644
--- a/include/linux/dcache.h
+++ b/include/linux/dcache.h
@@ -421,8 +421,6 @@ static inline bool d_need_lookup(struct dentry *dentry)
 	return dentry->d_flags & DCACHE_NEED_LOOKUP;
 }
 
-extern void d_clear_need_lookup(struct dentry *dentry);
-
 extern int sysctl_vfs_cache_pressure;
 
 #endif	/* __LINUX_DCACHE_H */

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2011-12-16  5:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-16  5:26 [PATCH 3.2-rc5] fs: Mark d_clear_need_lookup() static Tetsuo Handa

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.