f2fs: only flush the single temp bio cache which owns the target page
authorYunlong Song <yunlong.song@huawei.com>
Tue, 13 Nov 2018 03:57:32 +0000 (11:57 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 26 Nov 2018 23:53:57 +0000 (15:53 -0800)
commit1e771e83ce26d0ba2ce6c7df7effb7822f032c4a
tree01d54996c574c0ca9bed8ee251f8c9788795ab9b
parentf9d6d0597698c0d27ac54c7dca459a7a1b931315
f2fs: only flush the single temp bio cache which owns the target page

Previously, when f2fs finds which temp bio cache owns the target page,
it will flush all the three temp bio caches, but we only need to flush
one single bio cache indeed, which can help to keep bio merged.

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