FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu Kernel Team

 
 
LinkBack Thread Tools
 
Old 09-22-2008, 10:34 PM
Michael Haas
 
Default UBUNTU: apply (modified) lhash.patch from AUFS to export __lookup_hash()

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

Signed-off-by: Michael Haas <laga@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


--
kernel-team mailing list
kernel-team@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/kernel-team
 

Thread Tools




All times are GMT. The time now is 07:58 AM.

VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org