diff options
author | Christoph Hellwig <hch@lst.de> | 2024-06-27 13:14:03 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2024-06-28 23:06:16 +0200 |
commit | 62e35f942231e372f8e465d8484de66a60221226 (patch) | |
tree | 1c22bfbdd8c49b580439a17a41363550e2bc29b5 /block/elevator.h | |
parent | block: add helper macros to de-duplicate the queue sysfs attributes (diff) | |
download | linux-62e35f942231e372f8e465d8484de66a60221226.tar.xz linux-62e35f942231e372f8e465d8484de66a60221226.zip |
block: pass a gendisk to the queue_sysfs_entry methods
The kobject for the queue entries is embedded into a struct gendisk.
Pass it to the sysfs methods instead of the request_queue derived from
it.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20240627111407.476276-4-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/elevator.h')
-rw-r--r-- | block/elevator.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/block/elevator.h b/block/elevator.h index e9a050a96e53..3fe18e1a8692 100644 --- a/block/elevator.h +++ b/block/elevator.h @@ -147,8 +147,8 @@ extern void elv_unregister(struct elevator_type *); /* * io scheduler sysfs switching */ -extern ssize_t elv_iosched_show(struct request_queue *, char *); -extern ssize_t elv_iosched_store(struct request_queue *, const char *, size_t); +ssize_t elv_iosched_show(struct gendisk *disk, char *page); +ssize_t elv_iosched_store(struct gendisk *disk, const char *page, size_t count); extern bool elv_bio_merge_ok(struct request *, struct bio *); extern struct elevator_queue *elevator_alloc(struct request_queue *, |