Re: de-duplicate the block sysfs code

Jens Axboe
2024-06-28T21:09:40Z

On Thu, 27 Jun 2024 13:14:00 +0200, Christoph Hellwig wrote:
> 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(-)
>
> [...]

Applied, thanks!

[1/3] block: simplify queue_logical_block_size
(no commit info)
[2/3] block: add helper macros to de-duplicate the queue sysfs attributes
(no commit info)
[3/3] block: pass a gendisk to the queue_sysfs_entry methods
(no commit info)

Best regards,
--
Jens Axboe