f2fs: don't submit irrelevant page
authorChao Yu <yuchao0@huawei.com>
Thu, 29 Sep 2016 10:50:11 +0000 (18:50 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Sat, 1 Oct 2016 00:34:39 +0000 (17:34 -0700)
commit6ca56ca429aa94399534ec00598f7f9847c4cae2
tree474779e602e1f6de6b041691916d92f2de09fbe7
parent3f5f4959b144d9ba6657ccc0ab9edcc78fcc1d8a
f2fs: don't submit irrelevant page

While we call ->writepages, there are two cases:
a. we didn't writeout any dirty pages, since they are writebacked by other
thread concurrently.
b. we writeout dirty pages, and have already submitted bio to block layer.

In these cases, we don't need to do additional bio flushing unnecessarily,
it may split bio in cache into smaller one.

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