Unionfs: symlink no longer takes a mode parameter
authorErez Zadok <ezk@cs.sunysb.edu>
Mon, 28 Jul 2008 04:04:00 +0000 (00:04 -0400)
committerErez Zadok <ezk@cs.sunysb.edu>
Fri, 12 Aug 2011 02:38:26 +0000 (22:38 -0400)
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/unionfs/copyup.c
fs/unionfs/inode.c
fs/unionfs/sioq.c
fs/unionfs/sioq.h

index bbd49c83b0e1d3bb2c8cf8bbbff1786247dccfd0..ae6ea2bea30e7cd581330c381ec71b9cc042e456 100644 (file)
@@ -184,7 +184,6 @@ static int __copyup_ndentry(struct dentry *old_lower_dentry,
                args.symlink.parent = new_lower_parent_dentry->d_inode;
                args.symlink.dentry = new_lower_dentry;
                args.symlink.symbuf = symbuf;
-               args.symlink.mode = old_mode;
 
                run_sioq(__unionfs_symlink, &args);
                err = args.err;
index a05b412aa1d0de7bd03f04ec0f87218018eb01ea..1a95e3bc8fca78bf5983904768709f42eea2a55f 100644 (file)
@@ -412,8 +412,7 @@ static int unionfs_symlink(struct inode *parent, struct dentry *dentry,
        }
 
        mode = S_IALLUGO;
-       err = vfs_symlink(lower_parent_dentry->d_inode, lower_dentry,
-                         symname, mode);
+       err = vfs_symlink(lower_parent_dentry->d_inode, lower_dentry, symname);
        if (!err) {
                err = PTR_ERR(unionfs_interpose(dentry, parent->i_sb, 0));
                if (!err) {
index e6f15a03abab3918aacafe1931a5a29e8abccaaf..dd45e39ca7cd2b973b77932a3b8fdc08565f9d10 100644 (file)
@@ -87,7 +87,7 @@ void __unionfs_symlink(struct work_struct *work)
        struct sioq_args *args = container_of(work, struct sioq_args, work);
        struct symlink_args *s = &args->symlink;
 
-       args->err = vfs_symlink(s->parent, s->dentry, s->symbuf, s->mode);
+       args->err = vfs_symlink(s->parent, s->dentry, s->symbuf);
        complete(&args->comp);
 }
 
index e072bf70ec321813174859a6f7ab6fc787cfcfc2..679a0dfa97846e751a5b8ff36be48fe1cdff926a 100644 (file)
@@ -49,7 +49,6 @@ struct symlink_args {
        struct inode *parent;
        struct dentry *dentry;
        char *symbuf;
-       umode_t mode;
 };
 
 struct unlink_args {