cleanup and simplify the gendisk flags

Christoph Hellwig
2021-11-22T13:06:30Z

Ho Jens,

the gendisk flags have been a complete mess for a while. This series
tries to untangle them as much as easily possible.

Diffstat:
block/bdev.c | 5 --
block/blk.h | 1
block/genhd.c | 41 +++++++----------
block/ioctl.c | 31 ++-----------
block/partitions/core.c | 24 ++++------
drivers/block/amiflop.c | 1
drivers/block/ataflop.c | 1
drivers/block/brd.c | 1
drivers/block/drbd/drbd_main.c | 1
drivers/block/floppy.c | 1
drivers/block/loop.c | 9 +--
drivers/block/n64cart.c | 2
drivers/block/null_blk/main.c | 1
drivers/block/paride/pcd.c | 3 -
drivers/block/paride/pf.c | 1
drivers/block/pktcdvd.c | 2
drivers/block/ps3vram.c | 1
drivers/block/rbd.c | 6 --
drivers/block/sunvdc.c | 17 +++----
drivers/block/swim.c | 1
drivers/block/swim3.c | 2
drivers/block/virtio_blk.c | 1
drivers/block/xen-blkback/xenbus.c | 2
drivers/block/xen-blkfront.c | 26 ++++-------
drivers/block/z2ram.c | 1
drivers/block/zram/zram_drv.c | 1
drivers/cdrom/gdrom.c | 1
drivers/md/dm.c | 1
drivers/md/md.c | 5 --
drivers/mmc/core/block.c | 4 -
drivers/mtd/ubi/block.c | 1
drivers/scsi/sd.c | 1
drivers/scsi/sr.c | 6 +-
include/linux/genhd.h | 85 +++++++++----------------------------
34 files changed, 104 insertions(+), 183 deletions(-)