f2fs: handle error cases in commit_inmem_pages
authorJaegeuk Kim <jaegeuk@kernel.org>
Sat, 25 Jul 2015 07:52:52 +0000 (00:52 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 5 Aug 2015 15:08:15 +0000 (08:08 -0700)
commitedb27deea7cabfff8feb8c62aae647b7673be734
treecde2beefcad2e8b30cebbe3b2c568893f000513a
parenta6d494b6d84697f954aaade204e8a5843078a94f
f2fs: handle error cases in commit_inmem_pages

This patch adds to handle error cases in commit_inmem_pages.
If an error occurs, it stops to write the pages and return the error right
away.

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/f2fs.h
fs/f2fs/file.c
fs/f2fs/segment.c