From 8074d8056acd419fd38d53b32db5373df76d825f Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Wed, 29 Jan 2014 14:26:06 +0100 Subject: [PATCH] thin:drop stack trace when pool is above threshold Since this path is expected, do not log_debug stacktrace. --- lib/metadata/thin_manip.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/metadata/thin_manip.c b/lib/metadata/thin_manip.c index b26723b69..1abc2f164 100644 --- a/lib/metadata/thin_manip.c +++ b/lib/metadata/thin_manip.c @@ -240,14 +240,14 @@ int pool_below_threshold(const struct lv_segment *pool_seg) return_0; if (percent >= threshold) - return_0; + return 0; /* Metadata */ if (!lv_thin_pool_percent(pool_seg->lv, 1, &percent)) return_0; if (percent >= threshold) - return_0; + return 0; return 1; }