mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +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
af5f29c7e2
commit
08e838f488
@ -8482,8 +8482,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…
Reference in New Issue
Block a user