Wrapfs: use new ->rename API
authorErez Zadok <ezk@cs.sunysb.edu>
Wed, 28 Dec 2016 00:49:24 +0000 (19:49 -0500)
committerRohit Kumar <rokkumar@cs.stonybrook.edu>
Fri, 12 Oct 2018 16:28:49 +0000 (12:28 -0400)
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/wrapfs/inode.c

index 0c081067faf289b8b34f76a782d9b29d4ab7a803..cc8a519fc57721d416ef32f44ddae1e664a38f6b 100644 (file)
@@ -233,7 +233,8 @@ out:
  * superblock-level name-space lock for renames and copy-ups.
  */
 static int wrapfs_rename(struct inode *old_dir, struct dentry *old_dentry,
-                        struct inode *new_dir, struct dentry *new_dentry)
+                        struct inode *new_dir, struct dentry *new_dentry,
+                        unsigned int flags)
 {
        int err = 0;
        struct dentry *lower_old_dentry = NULL;
@@ -243,6 +244,9 @@ static int wrapfs_rename(struct inode *old_dir, struct dentry *old_dentry,
        struct dentry *trap = NULL;
        struct path lower_old_path, lower_new_path;
 
+       if (flags)
+               return -EINVAL;
+
        wrapfs_get_lower_path(old_dentry, &lower_old_path);
        wrapfs_get_lower_path(new_dentry, &lower_new_path);
        lower_old_dentry = lower_old_path.dentry;