summaryrefslogtreecommitdiffstats
path: root/include/linux/genhd.h
diff options
context:
space:
mode:
authorChristoph Hellwig2017-11-02 19:29:53 +0100
committerJens Axboe2017-11-03 17:31:48 +0100
commit8ddcd653257c18a669fcb75ee42c37054908e0d6 (patch)
tree1717b2161a7b718d00e11394c8163dcaf1622a71 /include/linux/genhd.h
parentblock: don't look at the struct device dev_t in disk_devt (diff)
downloadkernel-qcow2-linux-8ddcd653257c18a669fcb75ee42c37054908e0d6.tar.gz
kernel-qcow2-linux-8ddcd653257c18a669fcb75ee42c37054908e0d6.tar.xz
kernel-qcow2-linux-8ddcd653257c18a669fcb75ee42c37054908e0d6.zip
block: introduce GENHD_FL_HIDDEN
With this flag a driver can create a gendisk that can be used for I/O submission inside the kernel, but which is not registered as user facing block device. This will be useful for the NVMe multipath implementation. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/genhd.h')
-rw-r--r--include/linux/genhd.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/genhd.h b/include/linux/genhd.h
index 5c0ed5db33c2..93aae3476f58 100644
--- a/include/linux/genhd.h
+++ b/include/linux/genhd.h
@@ -140,6 +140,7 @@ struct hd_struct {
#define GENHD_FL_NATIVE_CAPACITY 128
#define GENHD_FL_BLOCK_EVENTS_ON_EXCL_WRITE 256
#define GENHD_FL_NO_PART_SCAN 512
+#define GENHD_FL_HIDDEN 1024
enum {
DISK_EVENT_MEDIA_CHANGE = 1 << 0, /* media changed */