summaryrefslogtreecommitdiff
path: root/include/linux/genhd.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2021-01-24 13:02:40 +0300
committerJens Axboe <axboe@kernel.dk>2021-01-25 04:17:20 +0300
commit0470dd9d5f103e7f1d5ba8f755f687c3106c7df1 (patch)
tree2198bdb7755623809b77256d7d4afff9cd96d2f4 /include/linux/genhd.h
parentbc359d03c7ec1bf3b86d03bafaf6bbb21e6414fd (diff)
downloadlinux-0470dd9d5f103e7f1d5ba8f755f687c3106c7df1.tar.xz
block: remove DISK_PITER_REVERSE
There is good reason to iterate backwards when deleting all partitions in del_gendisk, just like we don't in blk_drop_partitions. Signed-off-by: Christoph Hellwig <hch@lst.de> Acked-by: Tejun Heo <tj@kernel.org> 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, 0 insertions, 1 deletions
diff --git a/include/linux/genhd.h b/include/linux/genhd.h
index 670eaef0e876..51609133c9a3 100644
--- a/include/linux/genhd.h
+++ b/include/linux/genhd.h
@@ -218,7 +218,6 @@ void disk_uevent(struct gendisk *disk, enum kobject_action action);
/*
* Smarter partition iterator without context limits.
*/
-#define DISK_PITER_REVERSE (1 << 0) /* iterate in the reverse direction */
#define DISK_PITER_INCL_EMPTY (1 << 1) /* include 0-sized parts */
#define DISK_PITER_INCL_PART0 (1 << 2) /* include partition 0 */
#define DISK_PITER_INCL_EMPTY_PART0 (1 << 3) /* include empty partition 0 */