From 1ecb155586fd6f0998e30d0784d3de49a6acf2ba Mon Sep 17 00:00:00 2001 From: Erez Zadok Date: Tue, 27 Dec 2016 19:49:24 -0500 Subject: [PATCH] Wrapfs: use new ->rename API Signed-off-by: Erez Zadok --- fs/wrapfs/inode.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fs/wrapfs/inode.c b/fs/wrapfs/inode.c index 0c081067faf2..cc8a519fc577 100644 --- a/fs/wrapfs/inode.c +++ b/fs/wrapfs/inode.c @@ -233,7 +233,8 @@ static int wrapfs_mknod(struct inode *dir, struct dentry *dentry, umode_t mode, * 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; -- 2.43.0