Wrapfs: use updated vfs_path_lookup prototype
authorErez Zadok <ezk@cs.sunysb.edu>
Tue, 6 Sep 2011 04:10:30 +0000 (00:10 -0400)
committerRohit Kumar <rokkumar@cs.stonybrook.edu>
Fri, 12 Oct 2018 16:28:04 +0000 (12:28 -0400)
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/wrapfs/lookup.c

index 6454c2be4048cd4e4d9a9b8ce46f868c77c05271..594c16bd01f6186dc29c5e50ef474209bd9da40f 100644 (file)
@@ -268,7 +268,6 @@ static struct dentry *__wrapfs_lookup(struct dentry *dentry, int flags,
        struct dentry *lower_dir_dentry = NULL;
        struct dentry *lower_dentry;
        const char *name;
-       struct nameidata lower_nd;
        struct path lower_path;
        struct qstr this;
 
@@ -286,12 +285,12 @@ static struct dentry *__wrapfs_lookup(struct dentry *dentry, int flags,
 
        /* Use vfs_path_lookup to check if the dentry exists or not */
        err = vfs_path_lookup(lower_dir_dentry, lower_dir_mnt, name, 0,
-                             &lower_nd);
+                             &lower_path);
 
        /* no error: handle positive dentries */
        if (!err) {
-               wrapfs_set_lower_path(dentry, &lower_nd.path);
-               err = wrapfs_interpose(dentry, dentry->d_sb, &lower_nd.path);
+               wrapfs_set_lower_path(dentry, &lower_path);
+               err = wrapfs_interpose(dentry, dentry->d_sb, &lower_path);
                if (err) /* path_put underlying path on error */
                        wrapfs_put_reset_lower_path(dentry);
                goto out;