Btrfs: Use 2MB as the empty_size for clustered allocations
authorChris Mason <chris.mason@oracle.com>
Wed, 6 Feb 2008 15:00:57 +0000 (10:00 -0500)
committerChris Mason <chris.mason@oracle.com>
Thu, 25 Sep 2008 15:04:00 +0000 (11:04 -0400)
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/extent-tree.c

index 9e08699..220e9be 100644 (file)
@@ -1476,7 +1476,7 @@ check_failed:
        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,