Wrapfs: use updated vfs_path_lookup prototype
authorErez Zadok <ezk@cs.sunysb.edu>
Tue, 6 Sep 2011 04:10:30 +0000 (00:10 -0400)
committerErez Zadok <ezk@cs.sunysb.edu>
Tue, 27 Dec 2016 03:11:34 +0000 (22:11 -0500)
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/wrapfs/lookup.c

index 1e462d516b4459cf1edaf3df9c736210a37437cf..7fca6dfcf32581dd55bb0a6b18d1c7d9365c55e8 100644 (file)
@@ -201,7 +201,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;
 
@@ -219,12 +218,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;