summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2021-08-16 16:19:06 +0300
committerJens Axboe <axboe@kernel.dk>2021-08-23 21:54:30 +0300
commit9c2b9dbafc067e173db30c4fd0636392d27944e8 (patch)
tree13f9ebe3b5e817bf5ffa9e304d4e54fb9d470758 /include/linux
parent4dcc4874deb41a11ece9c6e8858385235463c1ac (diff)
downloadlinux-9c2b9dbafc067e173db30c4fd0636392d27944e8.tar.xz
block: remove alloc_disk and alloc_disk_node
Most drivers should use and have been converted to use blk_alloc_disk and blk_mq_alloc_disk. Only the scsi ULPs and dasd still allocate a disk separately from the request_queue, so don't bother with convenience macros for something that should not see significant new users and remove these wrappers. Signed-off-by: Christoph Hellwig <hch@lst.de> Link: https://lore.kernel.org/r/20210816131910.615153-6-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/genhd.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/include/linux/genhd.h b/include/linux/genhd.h
index 3d2e5ee30677..ceda9b255dba 100644
--- a/include/linux/genhd.h
+++ b/include/linux/genhd.h
@@ -262,16 +262,6 @@ void blk_drop_partitions(struct gendisk *disk);
struct gendisk *__alloc_disk_node(int minors, int node_id,
struct lock_class_key *lkclass);
extern void put_disk(struct gendisk *disk);
-
-#define alloc_disk_node(minors, node_id) \
-({ \
- static struct lock_class_key __key; \
- \
- __alloc_disk_node(minors, node_id, &__key); \
-})
-
-#define alloc_disk(minors) alloc_disk_node(minors, NUMA_NO_NODE)
-
struct gendisk *__blk_alloc_disk(int node, struct lock_class_key *lkclass);
/**