|
@@ -7564,7 +7564,7 @@ unclustered_alloc:
|
|
goto loop;
|
|
goto loop;
|
|
}
|
|
}
|
|
checks:
|
|
checks:
|
|
- search_start = ALIGN(offset, fs_info->stripesize);
|
|
|
|
|
|
+ search_start = round_up(offset, fs_info->stripesize);
|
|
|
|
|
|
/* move on to the next group */
|
|
/* move on to the next group */
|
|
if (search_start + num_bytes >
|
|
if (search_start + num_bytes >
|
|
@@ -7576,7 +7576,6 @@ checks:
|
|
if (offset < search_start)
|
|
if (offset < search_start)
|
|
btrfs_add_free_space(block_group, offset,
|
|
btrfs_add_free_space(block_group, offset,
|
|
search_start - offset);
|
|
search_start - offset);
|
|
- BUG_ON(offset > search_start);
|
|
|
|
|
|
|
|
ret = btrfs_add_reserved_bytes(block_group, ram_bytes,
|
|
ret = btrfs_add_reserved_bytes(block_group, ram_bytes,
|
|
num_bytes, delalloc);
|
|
num_bytes, delalloc);
|