瀏覽代碼

Btrfs: Use 2MB as the empty_size for clustered allocations

Signed-off-by: Chris Mason <chris.mason@oracle.com>
Chris Mason 17 年之前
父節點
當前提交
5d196fc15d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      fs/btrfs/extent-tree.c

+ 1 - 1
fs/btrfs/extent-tree.c

@@ -1476,7 +1476,7 @@ check_failed:
 	if (last_ptr && *last_ptr && search_start != *last_ptr) {
 	if (last_ptr && *last_ptr && search_start != *last_ptr) {
 		*last_ptr = 0;
 		*last_ptr = 0;
 		if (!empty_size) {
 		if (!empty_size) {
-			empty_size += 16 * 1024 * 1024;
+			empty_size += 2 * 1024 * 1024;
 			total_needed += empty_size;
 			total_needed += empty_size;
 		}
 		}
 		search_start = find_search_start(root, &block_group,
 		search_start = find_search_start(root, &block_group,