]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1404e51d98643ebc397a509789ebe5d4ecb5d2e6
tree474779e602e1f6de6b041691916d92f2de09fbe7
parent000b148bcaa16877ba9a5767c9d384123bf22f02
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