VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   33 Branches   55 Tags
author: Miklos Szeredi <mszeredi@redhat.com> 2016-09-27 11:03:57 +0200 committer: Miklos Szeredi <mszeredi@redhat.com> 2016-09-27 11:03:57 +0200 commit: e0e0be8a835520e2f7c89f214dfda570922a1b90 parent: f03b8ad8d38634d13e802165cc15917481b47835
Commit Summary:
libfs: support RENAME_NOREPLACE in simple_rename()
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/fs/debugfs/inode.c b/fs/debugfs/inode.c
index 72361baf9da7..5ac27c9de669 100644
--- a/fs/debugfs/inode.c
+++ b/fs/debugfs/inode.c
@@ -748,7 +748,7 @@ struct dentry *debugfs_rename(struct dentry *old_dir, struct dentry *old_dentry,
 	old_name = fsnotify_oldname_init(old_dentry->d_name.name);
 
 	error = simple_rename(d_inode(old_dir), old_dentry, d_inode(new_dir),
-		dentry);
+			      dentry, 0);
 	if (error) {
 		fsnotify_oldname_free(old_name);
 		goto exit;