1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

cleanup: drop setting lv_name

lv_name arg is only used without known LV for resolving '*lv'.
Once we know *lv, never use  lv_name ever again.

So setting it when passing *lv has not needed.
This commit is contained in:
Zdenek Kabelac 2016-06-15 14:55:37 +02:00
parent e5b7ebcdda
commit 83d483269d
2 changed files with 0 additions and 2 deletions

View File

@ -367,7 +367,6 @@ static int _extend_sanlock_lv(struct cmd_context *cmd, struct volume_group *vg,
{ {
struct logical_volume *lv = vg->sanlock_lv; struct logical_volume *lv = vg->sanlock_lv;
struct lvresize_params lp = { struct lvresize_params lp = {
.lv_name = vg->sanlock_lv->name,
.sign = SIGN_NONE, .sign = SIGN_NONE,
.size = lv->size + ((extend_mb * 1024 * 1024) / SECTOR_SIZE), .size = lv->size + ((extend_mb * 1024 * 1024) / SECTOR_SIZE),
.percent = PERCENT_NONE, .percent = PERCENT_NONE,

View File

@ -457,7 +457,6 @@ int lvm_lv_resize(const lv_t lv, uint64_t new_size)
{ {
int rc = 0; int rc = 0;
struct lvresize_params lp = { struct lvresize_params lp = {
.lv_name = lv->name,
.sign = SIGN_NONE, .sign = SIGN_NONE,
.percent = PERCENT_NONE, .percent = PERCENT_NONE,
.resize = LV_ANY, .resize = LV_ANY,