Loading fs/btrfs/extent-tree.c +6 −1 Original line number Diff line number Diff line Loading @@ -5715,6 +5715,7 @@ static noinline int find_free_extent(struct btrfs_trans_handle *trans, * lets look there */ if (last_ptr) { unsigned long aligned_cluster; /* * the refill lock keeps out other * people trying to start a new cluster Loading Loading @@ -5781,11 +5782,15 @@ static noinline int find_free_extent(struct btrfs_trans_handle *trans, goto unclustered_alloc; } aligned_cluster = max_t(unsigned long, empty_cluster + empty_size, block_group->full_stripe_len); /* allocate a cluster in this block group */ ret = btrfs_find_space_cluster(trans, root, block_group, last_ptr, search_start, num_bytes, empty_cluster + empty_size); aligned_cluster); if (ret == 0) { /* * now pull our allocation out of this Loading Loading
fs/btrfs/extent-tree.c +6 −1 Original line number Diff line number Diff line Loading @@ -5715,6 +5715,7 @@ static noinline int find_free_extent(struct btrfs_trans_handle *trans, * lets look there */ if (last_ptr) { unsigned long aligned_cluster; /* * the refill lock keeps out other * people trying to start a new cluster Loading Loading @@ -5781,11 +5782,15 @@ static noinline int find_free_extent(struct btrfs_trans_handle *trans, goto unclustered_alloc; } aligned_cluster = max_t(unsigned long, empty_cluster + empty_size, block_group->full_stripe_len); /* allocate a cluster in this block group */ ret = btrfs_find_space_cluster(trans, root, block_group, last_ptr, search_start, num_bytes, empty_cluster + empty_size); aligned_cluster); if (ret == 0) { /* * now pull our allocation out of this Loading