]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3b850570e697c9dc755f18c533ffcc171fd8934b
treee9929606dc9ee5c711b6451ed3a430b6fe03c3b9
parent95a264f911c7bc0802a512b4f652402181b0ad1d
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