Skip to contentSkip to conversation

master - metadata: Eliminate redundant nested VG metadata

PATCH Alasdair Kergon 1 participant 1 message Nov 14, 2017

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=762606a8c4070db7b3719c492bd9319d36ec271d
Commit:        762606a8c4070db7b3719c492bd9319d36ec271d
Parent:        00acae12a4295075f1b93786f60327e5d3c26e70
Author:        Alasdair G Kergon <[email protected]>
AuthorDate:    Tue Nov 14 01:57:14 2017 +0000
Committer:     Alasdair G Kergon <[email protected]>
CommitterDate: Tue Nov 14 01:57:14 2017 +0000

metadata: Eliminate redundant nested VG metadata

Only lv_committed() now uses vg->vg_committed and it appears redundant if its contents match the enclosing VG so don't waste cycles creating it when that's known to be true.

---
 WHATS_NEW               |    1 +
 lib/metadata/metadata.c |   44 ++++++++++++++++++--------------------------
 2 files changed, 19 insertions(+), 26 deletions(-)
WHATS_NEW +1 -0
index 1c8838c..04229da 100644
@@ -1,5 +1,6 @@
 Version 2.02.177 -
 ====================================
+  Eliminate redundant nested VG metadata in VG struct.
   Avoid importing persistent filter in vgscan/pvscan/vgrename.
   Fix memleak of string buffer when vgcfgbackup runs in secure mode.
   Do not print error when clvmd cannot find running clvmd.
lib/metadata/metadata.c +18 -26

80 lines not on this page · raw message