master - metadata: Eliminate redundant nested VG metadata
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=b5f62a143dcc83bcc12910400b177620a8f49b7c Commit: b5f62a143dcc83bcc12910400b177620a8f49b7c Parent: 7a5728fb4c748b911f829c5cda0768c6289a4512 Author: Alasdair G Kergon <[email protected]> AuthorDate: Tue Nov 14 15:38:55 2017 +0000 Committer: Alasdair G Kergon <[email protected]> CommitterDate: Tue Nov 14 15:38:55 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 when no write lock is held so the struct won't get modified.
--- WHATS_NEW | 1 + lib/metadata/metadata.c | 64 ++++++++++++++++++++++------------------------- 2 files changed, 31 insertions(+), 34 deletions(-)
WHATS_NEW +1 -0
@@ -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 +30 -34
115 lines not on this page · raw message