master - activation: optimize away lv_has_target_type
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=e2c7e0ad1196cc9323b63807ed199bcf4b10807c Commit: e2c7e0ad1196cc9323b63807ed199bcf4b10807c Parent: 6fd20be629b6dceb96702c5f875a2e612e6f465d Author: Zdenek Kabelac <[email protected]> AuthorDate: Mon Dec 5 15:23:18 2016 +0100 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Mon Dec 5 17:10:14 2016 +0100
activation: optimize away lv_has_target_type
It's actually not needed to call extra lv_has_target_type() to detect snapshot merge is in progress - decode this right during status capturing and save even few extra ioctl calls.
--- WHATS_NEW | 1 + lib/activate/activate.c | 50 ++++++++++++++++++++++++++++------------------ 2 files changed, 31 insertions(+), 20 deletions(-)
WHATS_NEW +1 -0
@@ -1,5 +1,6 @@ Version 2.02.169 - ===================================== + Avoid using lv_has_target_type() call within lv_info_with_seg_status. Simplify internal lv_info_with_seg_status API. Decide which status is needed in one place for lv_info_with_seg_status. Fix matching of LV segment when checking for it info status.
lib/activate/activate.c +30 -20
73 lines not on this page · raw message