Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9def1e92 authored by Chao Yu's avatar Chao Yu Committed by Jaegeuk Kim
Browse files

f2fs: detect error of update_dent_inode in ->rename



Should check and show correct return value of update_dent_inode in
->rename.

Signed-off-by: default avatarChao Yu <chao2.yu@samsung.com>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent 984ec63c
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -658,8 +658,9 @@ static int f2fs_rename(struct inode *old_dir, struct dentry *old_dentry,
		if (err)
			goto put_out_dir;

		if (update_dent_inode(old_inode, new_inode,
						&new_dentry->d_name)) {
		err = update_dent_inode(old_inode, new_inode,
						&new_dentry->d_name);
		if (err) {
			release_orphan_inode(sbi);
			goto put_out_dir;
		}