f2fs: fix to commit bio cache after flushing node pages
authorChao Yu <yuchao0@huawei.com>
Thu, 29 Sep 2016 10:50:10 +0000 (18:50 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Sat, 1 Oct 2016 00:34:38 +0000 (17:34 -0700)
commit3f5f4959b144d9ba6657ccc0ab9edcc78fcc1d8a
tree139debf9e15b1556e179b241b77db7975b84ce6d
parentfc0065adb202518e25fb929cda7d5887a456f774
f2fs: fix to commit bio cache after flushing node pages

In sync_node_pages, we won't check and commit last merged pages in private
bio cache of f2fs, as these pages were taged as writeback, someone who is
waiting for writebacking of the page will be blocked until the cache was
committed by someone else.

We need to commit node type bio cache to avoid potential deadlock or long
delay of waiting writeback.

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