summaryrefslogtreecommitdiff
path: root/fs/f2fs
diff options
context:
space:
mode:
authorChao Yu <chao2.yu@samsung.com>2014-12-01 11:30:20 +0800
committerJaegeuk Kim <jaegeuk@kernel.org>2014-12-01 13:56:02 -0800
commitcd34e2969b28de7685bb51d4b0fafeced8ef7f66 (patch)
treef41da1a6ed6e9bb28579568280dce2a1ac64f21c /fs/f2fs
parent31a3268839c1aa808a5109111ec847b95e1bb114 (diff)
f2fs: fix to return correct error number in f2fs_write_begin
Fix the wrong error number in error path of f2fs_write_begin. Signed-off-by: Chao Yu <chao2.yu@samsung.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs')
-rw-r--r--fs/f2fs/data.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c
index c7bc62641103..7ec697b37f19 100644
--- a/fs/f2fs/data.c
+++ b/fs/f2fs/data.c
@@ -960,8 +960,10 @@ repeat:
/* check inline_data */
ipage = get_node_page(sbi, inode->i_ino);
- if (IS_ERR(ipage))
+ if (IS_ERR(ipage)) {
+ err = PTR_ERR(ipage);
goto unlock_fail;
+ }
set_new_dnode(&dn, inode, ipage, ipage, 0);