[PATCH] UBUNTU: apply (modified) lhash.patch from AUFS to export __lookup_hash()

Michael Haas laga+ml at laga.ath.cx
Mon Sep 22 22:34:58 UTC 2008


From: root <root at moar.(none)>

Signed-off-by: Michael Haas <laga at laga.ath.cx>
---
 fs/namei.c            |    3 ++-
 include/linux/namei.h |    2 ++
 2 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/fs/namei.c b/fs/namei.c
index ab6014f..49e50d1 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -1190,7 +1190,7 @@ static int path_lookup_create(int dfd, const char *name,
 			nd, open_flags, create_mode);
 }
 
-static struct dentry *__lookup_hash(struct qstr *name,
+struct dentry *__lookup_hash(struct qstr *name,
 		struct dentry *base, struct nameidata *nd)
 {
 	struct dentry *dentry;
@@ -2885,3 +2885,4 @@ EXPORT_SYMBOL(vfs_symlink);
 EXPORT_SYMBOL(vfs_unlink);
 EXPORT_SYMBOL(dentry_unhash);
 EXPORT_SYMBOL(generic_readlink);
+EXPORT_SYMBOL(__lookup_hash);
diff --git a/include/linux/namei.h b/include/linux/namei.h
index 68f8c32..c6e883c 100644
--- a/include/linux/namei.h
+++ b/include/linux/namei.h
@@ -80,6 +80,8 @@ extern int follow_up(struct vfsmount **, struct dentry **);
 extern struct dentry *lock_rename(struct dentry *, struct dentry *);
 extern void unlock_rename(struct dentry *, struct dentry *);
 
+struct dentry * __lookup_hash(struct qstr *name, struct dentry * base, struct nameidata *nd);
+
 static inline void nd_set_link(struct nameidata *nd, char *path)
 {
 	nd->saved_names[nd->depth] = path;
-- 
1.5.6.3





More information about the kernel-team mailing list