From b1278ba1b8dc189652a7664de4f80999d34f65ff Mon Sep 17 00:00:00 2001 From: Dave Wysochanski Date: Thu, 9 Jul 2009 10:03:37 +0000 Subject: [PATCH] Remove unused 'cmd' from vg_change_pesize(). Signed-off-by: Dave Wysochanski --- lib/metadata/metadata-exported.h | 3 +-- lib/metadata/metadata.c | 3 +-- tools/vgchange.c | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/metadata/metadata-exported.h b/lib/metadata/metadata-exported.h index e49aa9c17..07b7eae19 100644 --- a/lib/metadata/metadata-exported.h +++ b/lib/metadata/metadata-exported.h @@ -434,8 +434,7 @@ int vg_remove_single(struct cmd_context *cmd, const char *vg_name, int vg_rename(struct cmd_context *cmd, struct volume_group *vg, const char *new_name); int vg_extend(struct volume_group *vg, int pv_count, char **pv_names); -int vg_change_pesize(struct cmd_context *cmd, struct volume_group *vg, - uint32_t new_extent_size); +int vg_change_pesize(struct volume_group *vg, uint32_t new_extent_size); int vg_split_mdas(struct cmd_context *cmd, struct volume_group *vg_from, struct volume_group *vg_to); diff --git a/lib/metadata/metadata.c b/lib/metadata/metadata.c index f522b3059..41ca6645f 100644 --- a/lib/metadata/metadata.c +++ b/lib/metadata/metadata.c @@ -624,8 +624,7 @@ static int _recalc_extents(uint32_t *extents, const char *desc1, return 1; } -int vg_change_pesize(struct cmd_context *cmd __attribute((unused)), - struct volume_group *vg, uint32_t new_size) +int vg_change_pesize(struct volume_group *vg, uint32_t new_size) { uint32_t old_size = vg->extent_size; struct pv_list *pvl; diff --git a/tools/vgchange.c b/tools/vgchange.c index 1609e01c6..ade0735d1 100644 --- a/tools/vgchange.c +++ b/tools/vgchange.c @@ -397,7 +397,7 @@ static int _vgchange_pesize(struct cmd_context *cmd, struct volume_group *vg) if (!archive(vg)) return ECMD_FAILED; - if (!vg_change_pesize(cmd, vg, extent_size)) { + if (!vg_change_pesize(vg, extent_size)) { stack; return EINVALID_CMD_LINE; }