The patch titled nfsctl: use vfs_path_lookup has been added to the -mm tree. Its filename is nfsctl-use-vfs_path_lookup.patch *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: nfsctl: use vfs_path_lookup From: "Josef 'Jeff' Sipek" <jsipek@xxxxxxxxxxxxx> use vfs_path_lookup instead of open-coding the necessary functionality. Signed-off-by: Josef 'Jeff' Sipek <jsipek@xxxxxxxxxxxxx> Acked-by: NeilBrown <neilb@xxxxxxx> Cc: Al Viro <viro@xxxxxxxxxxxxxxxxxx> Cc: Christoph Hellwig <hch@xxxxxx> Cc: Trond Myklebust <trond.myklebust@xxxxxxxxxx> Cc: Michael Halcrow <mhalcrow@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- fs/nfsctl.c | 16 ++++++---------- 1 files changed, 6 insertions(+), 10 deletions(-) diff -puN fs/nfsctl.c~nfsctl-use-vfs_path_lookup fs/nfsctl.c --- a/fs/nfsctl.c~nfsctl-use-vfs_path_lookup +++ a/fs/nfsctl.c @@ -23,19 +23,15 @@ static struct file *do_open(char *name, int flags) { struct nameidata nd; + struct vfsmount *mnt; int error; - nd.mnt = do_kern_mount("nfsd", 0, "nfsd", NULL); + mnt = do_kern_mount("nfsd", 0, "nfsd", NULL); + if (IS_ERR(mnt)) + return (struct file *)mnt; - if (IS_ERR(nd.mnt)) - return (struct file *)nd.mnt; - - nd.dentry = dget(nd.mnt->mnt_root); - nd.last_type = LAST_ROOT; - nd.flags = 0; - nd.depth = 0; - - error = path_walk(name, &nd); + error = vfs_path_lookup(mnt->mnt_root, mnt, name, 0, &nd); + mntput(mnt); /* drop do_kern_mount reference */ if (error) return ERR_PTR(error); _ Patches currently in -mm which might be from jsipek@xxxxxxxxxxxxx are git-unionfs.patch ecryptfs-move-ecryptfs-docs-into-documentation-filesystems.patch fs-introduce-vfs_path_lookup.patch sunrpc-use-vfs_path_lookup.patch nfsctl-use-vfs_path_lookup.patch fs-mark-link_path_walk-static.patch fs-remove-path_walk-export.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html