]> sourceware.org Git - lvm2.git/commitdiff
cache: fix previous change and correct ()
authorZdenek Kabelac <zkabelac@redhat.com>
Fri, 22 Apr 2016 10:31:02 +0000 (12:31 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Fri, 22 Apr 2016 10:52:53 +0000 (12:52 +0200)
412f09ca332c644e08421e289a3e8d54890971ba missed parentheses.

lib/metadata/cache_manip.c

index 1c51f669581f970e7d3193e8b9441817be94d9d4..46cb6a8b0e0f1488b28ed7e59012b804584135eb 100644 (file)
@@ -47,11 +47,10 @@ const char *get_cache_mode_name(const struct lv_segment *seg)
        if (seg->feature_flags & DM_CACHE_FEATURE_WRITEBACK)
                return "writeback";
 
-       if (!seg->feature_flags & DM_CACHE_FEATURE_WRITETHROUGH) {
+       if (!(seg->feature_flags & DM_CACHE_FEATURE_WRITETHROUGH))
                log_error(INTERNAL_ERROR "LV %s has uknown feature flags %" PRIu64 ", "
                          "returning writethrough instead.",
                          display_lvname(seg->lv), seg->feature_flags);
-       }
 
        return "writethrough";
 }
This page took 1.606283 seconds and 5 git commands to generate.