mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 02:39:48 +00:00
btrfs: skip LOOP_NO_EMPTY_SIZE if not clustered allocation
LOOP_NO_EMPTY_SIZE is solely dedicated for clustered allocation. So, we can skip this stage and give up the allocation. Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
c70e2139dc
commit
45d8e033b2
1 changed files with 3 additions and 0 deletions
|
@ -3835,6 +3835,9 @@ static int find_free_extent_update_loop(struct btrfs_fs_info *fs_info,
|
|||
}
|
||||
|
||||
if (ffe_ctl->loop == LOOP_NO_EMPTY_SIZE) {
|
||||
if (ffe_ctl->policy != BTRFS_EXTENT_ALLOC_CLUSTERED)
|
||||
return -ENOSPC;
|
||||
|
||||
/*
|
||||
* Don't loop again if we already have no empty_size and
|
||||
* no empty_cluster.
|
||||
|
|
Loading…
Reference in a new issue