1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-18 10:04:20 +03:00

cleanup: fix typo and use vg mempool

Since we are updating VG -  we can use its own mempool.
This commit is contained in:
Zdenek Kabelac 2014-09-21 01:16:06 +02:00
parent 914be0696d
commit 30777fa46f

View File

@ -283,9 +283,9 @@ int vg_remove_snapshot(struct logical_volume *cow)
clear_snapshot_merge(origin);
/*
* preload origin IFF "snapshot-merge" target is active
* - IMPORTANT: avoids preload if onactivate merge is pending
* - IMPORTANT: avoids preload if inactivate merge is pending
*/
if (lv_has_target_type(origin->vg->cmd->mem, origin, NULL,
if (lv_has_target_type(origin->vg->vgmem, origin, NULL,
"snapshot-merge")) {
/*
* preload origin to: