master - cleanup: fix typo and use vg mempool
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=30777fa46fb21001f3e5a9ba610d50c57c6dfe27 Commit: 30777fa46fb21001f3e5a9ba610d50c57c6dfe27 Parent: 914be0696daf3603b6db055b2afe146190e9a7f7 Author: Zdenek Kabelac <[email protected]> AuthorDate: Sun Sep 21 01:16:06 2014 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Wed Sep 24 10:54:47 2014 +0200
cleanup: fix typo and use vg mempool
Since we are updating VG - we can use its own mempool.
--- lib/metadata/snapshot_manip.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
lib/metadata/snapshot_manip.c +2 -2
@@ -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: