Skip to contentSkip to conversation

master - debug: update comment

PATCH Zdenek Kabelac 1 participant 1 message Mar 6, 2018

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=6481471c9d74038da457b74ef1f2b0c15931bfa8
Commit:        6481471c9d74038da457b74ef1f2b0c15931bfa8
Parent:        b6e7a0b490a3fa2e43675a4d3fb3d25daaac831e
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Fri Mar 2 15:06:36 2018 +0100
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Tue Mar 6 15:40:34 2018 +0100

debug: update comment

---
 lib/metadata/lv_manip.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
lib/metadata/lv_manip.c +1 -1
index d4a6107..915a032 100644
@@ -4371,9 +4371,9 @@ static int _for_each_sub_lv(struct logical_volume *lv, int level,
 	if (level++) {
 		if (!(r = fn(lv, data)))
 			return_0;
-		/* Only r == 1 lets you run for_each... */
 		if (r == -1)
 			return 1;
+		/* Only r != -1 continues with for_each_sub_lv()... */
 	}
 
 	if (lv_is_cow(lv) && lv_is_virtual_origin(org = origin_from_cow(lv))) {