f2fs: fix error handling in fsync_node_pages
authorChao Yu <yuchao0@huawei.com>
Tue, 11 Oct 2016 14:57:06 +0000 (22:57 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 23 Nov 2016 20:10:56 +0000 (12:10 -0800)
commit9de69279750e9740bc7221c7051a40c0516a58fb
treedd5015781649173d4eb82cee320769080a3d4a33
parentb691d98fdd4cc2514c60fd6975e6016da203e64f
f2fs: fix error handling in fsync_node_pages

In fsync_node_pages, if f2fs was taged with CP_ERROR_FLAG, make sure bio
cache was flushed before return.

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/node.c