From 077a6755ff2ac55c334870fb47d18fb397904dc3 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Wed, 10 Aug 2011 20:25:29 +0000 Subject: Replace free_vg with release_vg Move the free_vg() to vg.c and replace free_vg with release_vg and make the _free_vg internal. Patch is needed for sharing VG in vginfo cache so the release_vg function name is a better fit here. --- tools/pvmove.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/pvmove.c') diff --git a/tools/pvmove.c b/tools/pvmove.c index 79b17df8..7a2fd14a 100644 --- a/tools/pvmove.c +++ b/tools/pvmove.c @@ -460,7 +460,7 @@ static int _set_up_pvmove(struct cmd_context *cmd, const char *pv_name, vg = _get_vg(cmd, pv_vg_name(pv)); if (vg_read_error(vg)) { - free_vg(vg); + release_vg(vg); stack; return ECMD_FAILED; } @@ -526,7 +526,7 @@ static int _set_up_pvmove(struct cmd_context *cmd, const char *pv_name, r = ECMD_PROCESSED; out: free_pv_fid(pv); - unlock_and_free_vg(cmd, vg, pv_vg_name(pv)); + unlock_and_release_vg(cmd, vg, pv_vg_name(pv)); return r; } -- cgit