elevator: use ELV_NAME_MAX instead of magic number 16 for chosen_elevator
authorWang Sheng-Hui <shhuiw@gmail.com>
Thu, 8 Sep 2011 10:32:14 +0000 (12:32 +0200)
committerJens Axboe <jaxboe@fusionio.com>
Mon, 12 Sep 2011 06:59:20 +0000 (08:59 +0200)
commit484fc254b88257a2d8b3759aa062e8e8b35e0988
treed46d04f9a25a223d46eb94a28ae61542dde236d7
parent322a8b034003c0d46d39af85bf24fee27b902f48
elevator: use ELV_NAME_MAX instead of magic number 16 for chosen_elevator

We have ELV_NAME_MAX defined to 16, and hence we should use it
instead of the magic nubmer 16 for elevator's name string.

Signed-off-by: Wang Sheng-Hui <shhuiw@gmail.com>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
block/elevator.c