提交 5d196fc1 编写于 作者: C Chris Mason

Btrfs: Use 2MB as the empty_size for clustered allocations

Signed-off-by: NChris Mason <chris.mason@oracle.com>
上级 7261009c
......@@ -1476,7 +1476,7 @@ static int noinline find_free_extent(struct btrfs_trans_handle *trans,
if (last_ptr && *last_ptr && search_start != *last_ptr) {
*last_ptr = 0;
if (!empty_size) {
empty_size += 16 * 1024 * 1024;
empty_size += 2 * 1024 * 1024;
total_needed += empty_size;
}
search_start = find_search_start(root, &block_group,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册