]> sourceware.org Git - lvm2.git/commitdiff
make: opened can be needed for either defines case
authorZdenek Kabelac <zkabelac@redhat.com>
Fri, 24 Sep 2021 15:46:09 +0000 (17:46 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Mon, 27 Sep 2021 16:56:14 +0000 (18:56 +0200)
Reported-by: adamboardman of gemian
lib/device/dev-io.c

index 17993d82cd85b8e42edbaaa711d140c89b19c572..b4f1930b160547f8aba411fdee672b7dfe3352e1 100644 (file)
@@ -380,8 +380,10 @@ int dev_open_flags(struct device *dev, int flags, int direct, int quiet)
                return 0;
        }
 
-#ifdef O_DIRECT_SUPPORT
+#if defined(O_NOATIME) || defined(O_DIRECT_SUPPORT)
       opened:
+#endif
+#ifdef O_DIRECT_SUPPORT
        if (direct)
                dev->flags |= DEV_O_DIRECT_TESTED;
 #endif
This page took 0.031403 seconds and 5 git commands to generate.