提交 0e6bd956 编写于 作者: C Chris Mason

Btrfs: only flush down bios for writeback pages

The btrfs write_cache_pages call has a flush function so that it submits
the bio it has been building before it waits on any writeback pages.

This adds a check so that flush only happens on writeback pages.
Signed-off-by: NChris Mason <chris.mason@oracle.com>
上级 43dd729b
......@@ -2462,7 +2462,8 @@ int extent_write_cache_pages(struct extent_io_tree *tree,
}
if (wbc->sync_mode != WB_SYNC_NONE) {
flush_fn(data);
if (PageWriteback(page))
flush_fn(data);
wait_on_page_writeback(page);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册