else
ret = lvconvert_single(cmd, &lp);
out:
- destroy_processing_handle(cmd, handle, 1);
+ destroy_processing_handle(cmd, handle);
return ret;
}
}
if (parms.background && daemon_mode == 1) {
- destroy_processing_handle(cmd, handle, 1);
+ destroy_processing_handle(cmd, handle);
/*
* child was successfully forked:
* background polldaemon must not return to the caller
_exit(lvm_return_code(ret));
}
- destroy_processing_handle(cmd, handle, 1);
+ destroy_processing_handle(cmd, handle);
return ret;
}
params.total - params.done, (params.total - params.done) == 1 ? "" : "s");
out:
- destroy_processing_handle(cmd, handle, 1);
+ destroy_processing_handle(cmd, handle);
return ret;
}
log_print_unless_silent("%d physical volume(s) resized / %d physical volume(s) "
"not resized", params.done, params.total - params.done);
out:
- destroy_processing_handle(cmd, handle, 1);
+ destroy_processing_handle(cmd, handle);
return ret;
}
* pass the result through it to layers above.
*/
handle->selection_handle = NULL;
- destroy_processing_handle(cmd, handle, 1);
+ destroy_processing_handle(cmd, handle);
return r;
}
return 1;
}
-void destroy_processing_handle(struct cmd_context *cmd, struct processing_handle *handle,
- int deallocate_handle_root)
+void destroy_processing_handle(struct cmd_context *cmd, struct processing_handle *handle)
{
if (handle) {
if (handle->selection_handle && handle->selection_handle->selection_rh)
dm_report_free(handle->selection_handle->selection_rh);
- if (deallocate_handle_root)
- dm_pool_free(cmd->mem, handle);
+ dm_pool_free(cmd->mem, handle);
}
}
&arg_vgnames, &arg_tags, handle, process_single_vg);
out:
if (!handle_supplied)
- destroy_processing_handle(cmd, handle, 1);
+ destroy_processing_handle(cmd, handle);
return ret;
}
}
out:
if (!handle_supplied)
- destroy_processing_handle(cmd, handle, 1);
+ destroy_processing_handle(cmd, handle);
else
_set_final_selection_result(handle, whole_selected);
return ret_max;
&arg_tags, handle, process_single_lv);
out:
if (!handle_supplied)
- destroy_processing_handle(cmd, handle, 1);
+ destroy_processing_handle(cmd, handle);
return ret;
}
}
out:
if (!handle_supplied)
- destroy_processing_handle(cmd, handle, 1);
+ destroy_processing_handle(cmd, handle);
return ret_max;
}
struct processing_handle *init_processing_handle(struct cmd_context *cmd);
int init_selection_handle(struct cmd_context *cmd, struct processing_handle *handle,
report_type_t initial_report_type);
-void destroy_processing_handle(struct cmd_context *cmd, struct processing_handle *handle,
- int deallocate_handle_root);
+void destroy_processing_handle(struct cmd_context *cmd, struct processing_handle *handle);
int select_match_vg(struct cmd_context *cmd, struct processing_handle *handle,
struct volume_group *vg, int *selected);
init_pvmove(0);
- destroy_processing_handle(cmd, handle, 1);
+ destroy_processing_handle(cmd, handle);
return ret;
}