Skip to content

Commit c033269

Browse files
Bart Van Asscheaxboe
authored andcommitted
block: Remove elevator_change()
Since commit 8425339 ("remove the mg_disk driver") removed the only caller of elevator_change(), also remove the elevator_change() function itself. Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com> Cc: Christoph Hellwig <hch@lst.de> Cc: Markus Trippelsdorf <markus@trippelsdorf.de> Signed-off-by: Jens Axboe <axboe@fb.com>
1 parent 08c521a commit c033269

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

block/elevator.c

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1088,19 +1088,6 @@ static int __elevator_change(struct request_queue *q, const char *name)
10881088
return elevator_switch(q, e);
10891089
}
10901090

1091-
int elevator_change(struct request_queue *q, const char *name)
1092-
{
1093-
int ret;
1094-
1095-
/* Protect q->elevator from elevator_init() */
1096-
mutex_lock(&q->sysfs_lock);
1097-
ret = __elevator_change(q, name);
1098-
mutex_unlock(&q->sysfs_lock);
1099-
1100-
return ret;
1101-
}
1102-
EXPORT_SYMBOL(elevator_change);
1103-
11041091
static inline bool elv_support_iosched(struct request_queue *q)
11051092
{
11061093
if (q->mq_ops && q->tag_set && (q->tag_set->flags &

include/linux/elevator.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,6 @@ extern ssize_t elv_iosched_store(struct request_queue *, const char *, size_t);
214214

215215
extern int elevator_init(struct request_queue *, char *);
216216
extern void elevator_exit(struct request_queue *, struct elevator_queue *);
217-
extern int elevator_change(struct request_queue *, const char *);
218217
extern bool elv_bio_merge_ok(struct request *, struct bio *);
219218
extern struct elevator_queue *elevator_alloc(struct request_queue *,
220219
struct elevator_type *);

0 commit comments

Comments
 (0)