Skip to content

Commit

Permalink
Btrfs: Use 2MB as the empty_size for clustered allocations
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Mason <chris.mason@oracle.com>
  • Loading branch information
Chris Mason committed Sep 25, 2008
1 parent 7261009 commit 5d196fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/btrfs/extent-tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 5d196fc

Please sign in to comment.