projects
/
profile
/
ivi
/
kernel-x86-ivi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
322a8b0
)
elevator: use ELV_NAME_MAX instead of magic number 16 for chosen_elevator
author
Wang Sheng-Hui
<shhuiw@gmail.com>
Thu, 8 Sep 2011 10:32:14 +0000
(12:32 +0200)
committer
Jens Axboe
<jaxboe@fusionio.com>
Mon, 12 Sep 2011 06:59:20 +0000
(08:59 +0200)
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
patch
|
blob
|
history
diff --git
a/block/elevator.c
b/block/elevator.c
index
a3b64bc
..
cb332cb
100644
(file)
--- a/
block/elevator.c
+++ b/
block/elevator.c
@@
-182,7
+182,7
@@
static void elevator_attach(struct request_queue *q, struct elevator_queue *eq,
eq->elevator_data = data;
}
-static char chosen_elevator[
16
];
+static char chosen_elevator[
ELV_NAME_MAX
];
static int __init elevator_setup(char *str)
{