summaryrefslogtreecommitdiffstats
path: root/block/noop-iosched.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@fb.com>2016-12-10 23:13:59 +0100
committerJens Axboe <axboe@fb.com>2017-01-17 18:03:33 +0100
commitc51ca6cf545bc51ad38bd50816bde37c647d608d (patch)
tree79e0999ed9e6f275be32d261533107ee31ed9436 /block/noop-iosched.c
parentpartitions/efi: Fix integer overflow in GPT size calculation (diff)
downloadlinux-c51ca6cf545bc51ad38bd50816bde37c647d608d.tar.xz
linux-c51ca6cf545bc51ad38bd50816bde37c647d608d.zip
block: move existing elevator ops to union
Prep patch for adding MQ ops as well, since doing anon unions with named initializers doesn't work on older compilers. Signed-off-by: Jens Axboe <axboe@fb.com> Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de> Reviewed-by: Bart Van Assche <bart.vanassche@sandisk.com> Reviewed-by: Omar Sandoval <osandov@fb.com>
Diffstat (limited to 'block/noop-iosched.c')
-rw-r--r--block/noop-iosched.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/noop-iosched.c b/block/noop-iosched.c
index a163c487cf38..2d1b15d89b45 100644
--- a/block/noop-iosched.c
+++ b/block/noop-iosched.c
@@ -92,7 +92,7 @@ static void noop_exit_queue(struct elevator_queue *e)
}
static struct elevator_type elevator_noop = {
- .ops = {
+ .ops.sq = {
.elevator_merge_req_fn = noop_merged_requests,
.elevator_dispatch_fn = noop_dispatch,
.elevator_add_req_fn = noop_add_request,