git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
block: simplify the check for the current elevator in elv_iosched_show
[sfrench/cifs-2.6.git]
/
block
/
elevator.c
diff --git
a/block/elevator.c
b/block/elevator.c
index 72346bf2f997018796622da37c233665b65833e5..9a13d1959b768bf2819aae5d65d0a12b57559551 100644
(file)
--- a/
block/elevator.c
+++ b/
block/elevator.c
@@
-792,7
+792,7
@@
ssize_t elv_iosched_show(struct request_queue *q, char *name)
spin_lock(&elv_list_lock);
list_for_each_entry(e, &elv_list, list) {
- if (
cur && elevator_match(cur, e->elevator_name, 0)
) {
+ if (
e == cur
) {
len += sprintf(name+len, "[%s] ", cur->elevator_name);
continue;
}