de-duplicate the block sysfs code

Christoph Hellwig
2024-06-27T11:14:10Z

Hi Jens,

this series adds a few helpers to de-duplicate the block sysfs code,
and then switches it to operate on then gendisk, which is the object that
the kobject is embedded into.

Diffstat:
block/blk-sysfs.c | 389 ++++++++++++++++++-------------------------------
block/elevator.c | 9 -
block/elevator.h | 4
include/linux/blkdev.h | 7
4 files changed, 156 insertions(+), 253 deletions(-)