mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-24 14:50:34 +03:00
cleanup: avoid unneeded check
Since creation of thin snapshot already makes sure, the message list is empty, there is no need to check this again.
This commit is contained in:
parent
6373a84977
commit
3094c423a0
@ -8017,8 +8017,7 @@ static struct logical_volume *_lv_create_an_lv(struct volume_group *vg,
|
||||
stack;
|
||||
goto revert_new_lv;
|
||||
}
|
||||
}
|
||||
if (!dm_list_empty(&first_seg(pool_lv)->thin_messages)) {
|
||||
} else if (!dm_list_empty(&first_seg(pool_lv)->thin_messages)) {
|
||||
/* Send message so that table preload knows new thin */
|
||||
if (!lv_is_active(pool_lv)) {
|
||||
/* Avoid multiple thin-pool activations in this case */
|
||||
|
Loading…
x
Reference in New Issue
Block a user