Unionfs: use updated vfs_path_lookup prototype
authorErez Zadok <ezk@cs.sunysb.edu>
Tue, 6 Sep 2011 05:00:42 +0000 (01:00 -0400)
committerErez Zadok <ezk@cs.sunysb.edu>
Tue, 11 Nov 2014 00:47:38 +0000 (19:47 -0500)
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/unionfs/lookup.c

index 3cbde56a48e91e2aca4d2191472061eb187d2f13..fa00189d48898696d4dd1ec5c32c346e937636a7 100644 (file)
@@ -30,17 +30,17 @@ struct dentry *__lookup_one(struct dentry *base, struct vfsmount *mnt,
                            const char *name, struct vfsmount **new_mnt)
 {
        struct dentry *dentry = NULL;
-       struct nameidata lower_nd;
+       struct path lower_path;
        int err;
 
        /* we use flags=0 to get basic lookup */
-       err = vfs_path_lookup(base, mnt, name, 0, &lower_nd);
+       err = vfs_path_lookup(base, mnt, name, 0, &lower_path);
 
        switch (err) {
        case 0: /* no error */
-               dentry = lower_nd.path.dentry;
+               dentry = lower_path.dentry;
                if (new_mnt)
-                       *new_mnt = lower_nd.path.mnt; /* rc already inc'ed */
+                       *new_mnt = lower_path.mnt; /* rc already inc'ed */
                break;
        case -ENOENT:
                 /*
@@ -52,7 +52,7 @@ struct dentry *__lookup_one(struct dentry *base, struct vfsmount *mnt,
                  */
                dentry = lookup_lck_len(name, base, strlen(name));
                if (new_mnt)
-                       *new_mnt = mntget(lower_nd.path.mnt);
+                       *new_mnt = mntget(lower_path.mnt);
                break;
        default: /* all other real errors */
                dentry = ERR_PTR(err);