f2fs: report error of fill_zero
authorChao Yu <chao2.yu@samsung.com>
Fri, 7 Aug 2015 10:36:06 +0000 (18:36 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 10 Aug 2015 19:26:34 +0000 (12:26 -0700)
commit6394328ab8a2ab6b127ae85f716943d92595878d
treee9929606dc9ee5c711b6451ed3a430b6fe03c3b9
parent12a8343e99a8af50b2a1cd8da72d34b6e860da0f
f2fs: report error of fill_zero

fill_zero can fail due to a lot of reason, but previously we do not handle
its return value, so its callers such as punch_hole/f2fs_zero_range may
report success, but actually can fail because of error occurs inside
fill_zero.

This patch fixes to report correct return value of fill_zero.

Signed-off-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/file.c