From 1655ec3f0b3f317a621490e4131eda4ab3e6b33a Mon Sep 17 00:00:00 2001 From: Erez Zadok Date: Tue, 4 Jun 2013 23:19:29 -0400 Subject: [PATCH] Wrapfs: ->create no longer takes a nameidata, only a flag Signed-off-by: Erez Zadok --- fs/wrapfs/inode.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/fs/wrapfs/inode.c b/fs/wrapfs/inode.c index 6fa57fa7a8ae..32fe447240c3 100644 --- a/fs/wrapfs/inode.c +++ b/fs/wrapfs/inode.c @@ -12,12 +12,11 @@ #include "wrapfs.h" static int wrapfs_create(struct inode *dir, struct dentry *dentry, - umode_t mode, struct nameidata *nd) + umode_t mode, bool want_excl) { int err = 0; struct dentry *lower_dentry; struct dentry *lower_parent_dentry = NULL; - struct nameidata lower_nd; struct path lower_path; wrapfs_get_lower_path(dentry, &lower_path); @@ -28,14 +27,10 @@ static int wrapfs_create(struct inode *dir, struct dentry *dentry, if (err) goto out_unlock; - err = init_lower_nd(&lower_nd, LOOKUP_CREATE); - if (err < 0) - goto out; err = vfs_create(lower_parent_dentry->d_inode, lower_dentry, mode, - &lower_nd); + want_excl); if (err) goto out; - /* XXX; should we pass lower_nd.path instead of lower_path? */ err = wrapfs_interpose(dentry, dir->i_sb, &lower_path); if (err) goto out; -- 2.43.0