projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
984ec63
)
f2fs: detect error of update_dent_inode in ->rename
author
Chao Yu
<chao2.yu@samsung.com>
Wed, 17 Feb 2016 08:45:44 +0000
(16:45 +0800)
committer
Jaegeuk Kim
<jaegeuk@kernel.org>
Tue, 23 Feb 2016 05:39:57 +0000
(21:39 -0800)
Should check and show correct return value of update_dent_inode in
->rename.
Signed-off-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/namei.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/f2fs/namei.c
b/fs/f2fs/namei.c
index fcc8c26c0fe85fafe6f05a17e95daafdce73ffa3..a776ade005490747eeff9ddbf51b0b70318f41ba 100644
(file)
--- a/
fs/f2fs/namei.c
+++ b/
fs/f2fs/namei.c
@@
-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;
}