Rename genhd wrapper to blkdev
[lttng-modules.git] / src / lttng-statedump-impl.c
index 2b42783a2c0617ae93b74a894c488a3f0f16fe80..0e7530906c5c79b87a2e9cf02a23bec5e5a8f83b 100644 (file)
@@ -31,6 +31,8 @@
 #include <linux/mutex.h>
 #include <linux/device.h>
 
+#include <linux/blkdev.h>
+
 #include <lttng/events.h>
 #include <lttng/tracer.h>
 #include <wrapper/cpu.h>
@@ -39,7 +41,7 @@
 #include <wrapper/namespace.h>
 #include <wrapper/irq.h>
 #include <wrapper/tracepoint.h>
-#include <wrapper/genhd.h>
+#include <wrapper/blkdev.h>
 #include <wrapper/file.h>
 #include <wrapper/fdtable.h>
 #include <wrapper/sched.h>
@@ -332,7 +334,7 @@ int lttng_enumerate_block_devices(struct lttng_kernel_session *session)
                 * suppressed
                 */
                if (get_capacity(disk) == 0 ||
-                   (disk->flags & GENHD_FL_SUPPRESS_PARTITION_INFO))
+                   (disk->flags & LTTNG_GENHD_FL_HIDDEN))
                        continue;
 
                ret = lttng_statedump_each_block_device(session, disk);
This page took 0.024123 seconds and 4 git commands to generate.