mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
allocation: add check for passing log allocation
Updates previous commit.
This commit is contained in:
parent
333eb8667e
commit
e9d1f676b3
@ -2966,7 +2966,9 @@ static int _find_some_parallel_space(struct alloc_handle *ah,
|
|||||||
(*(alloc_state->areas + alloc_state->num_positional_areas + ix - 1 -
|
(*(alloc_state->areas + alloc_state->num_positional_areas + ix - 1 -
|
||||||
too_small_for_log_count)).used < ah->log_len)
|
too_small_for_log_count)).used < ah->log_len)
|
||||||
too_small_for_log_count++;
|
too_small_for_log_count++;
|
||||||
if (ah->mirror_logs_separate && (too_small_for_log_count >= devices_needed))
|
if (ah->mirror_logs_separate &&
|
||||||
|
too_small_for_log_count &&
|
||||||
|
(too_small_for_log_count >= devices_needed))
|
||||||
return 1;
|
return 1;
|
||||||
if ((alloc_state->num_positional_areas + ix) < (too_small_for_log_count + ah->log_area_count))
|
if ((alloc_state->num_positional_areas + ix) < (too_small_for_log_count + ah->log_area_count))
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user