f2fs: fix to return correct error number in f2fs_write_begin
authorChao Yu <chao2.yu@samsung.com>
Mon, 1 Dec 2014 03:30:20 +0000 (11:30 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 1 Dec 2014 21:56:02 +0000 (13:56 -0800)
commitcd34e2969b28de7685bb51d4b0fafeced8ef7f66
treef41da1a6ed6e9bb28579568280dce2a1ac64f21c
parent31a3268839c1aa808a5109111ec847b95e1bb114
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>
fs/f2fs/data.c