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@google.com>
Mon, 25 Sep 2017 22:04:55 +0000 (15:04 -0700)
commitc675400f4a1149234ba1efeeb8a7d6df8a4bb880
tree3887460a173c25cd184bb62c8c78fe7f5e592cd8
parent1158df42b2c66b4c9f150615ae37a1cc7edb3c74
f2fs: fix error handling in fsync_node_pages

commit 9de69279750e9740bc7221c7051a40c0516a58fb upstream.

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