block: enumify ELEVATOR_*_MERGE
authorChristoph Hellwig <hch@lst.de>
Wed, 8 Feb 2017 13:46:48 +0000 (14:46 +0100)
committerJens Axboe <axboe@fb.com>
Wed, 8 Feb 2017 20:43:06 +0000 (13:43 -0700)
commit34fe7c05400663e01e23cddd1fea68bb7a2b3d29
treec03679f3bf7602925ecd9cbd6849af412b06d959
parent6cf7677f1a94546e472658290b3b8bdbb16cc045
block: enumify ELEVATOR_*_MERGE

Switch these constants to an enum, and make let the compiler ensure that
all callers of blk_try_merge and elv_merge handle all potential values.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-core.c
block/blk-merge.c
block/blk-mq-sched.c
block/blk-mq.c
block/blk.h
block/cfq-iosched.c
block/deadline-iosched.c
block/elevator.c
block/mq-deadline.c
include/linux/elevator.h