Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 58514
b: refs/heads/master
c: 70cee26
h: refs/heads/master
v: v3
  • Loading branch information
Matthias Kaehlcke authored and Jens Axboe committed Jul 10, 2007
1 parent 57eb6a2 commit fea691d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fd11d171e51a5b81c176d856d5df5612117e1a45
refs/heads/master: 70cee26e020c1d74ff559c991b96c7b19fa4173b
13 changes: 3 additions & 10 deletions trunk/block/elevator.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,8 @@ static inline int elv_try_merge(struct request *__rq, struct bio *bio)
static struct elevator_type *elevator_find(const char *name)
{
struct elevator_type *e;
struct list_head *entry;

list_for_each(entry, &elv_list) {

e = list_entry(entry, struct elevator_type, list);

list_for_each_entry(e, &elv_list, list) {
if (!strcmp(e->elevator_name, name))
return e;
}
Expand Down Expand Up @@ -1116,14 +1112,11 @@ ssize_t elv_iosched_show(request_queue_t *q, char *name)
{
elevator_t *e = q->elevator;
struct elevator_type *elv = e->elevator_type;
struct list_head *entry;
struct elevator_type *__e;
int len = 0;

spin_lock(&elv_list_lock);
list_for_each(entry, &elv_list) {
struct elevator_type *__e;

__e = list_entry(entry, struct elevator_type, list);
list_for_each_entry(__e, &elv_list, list) {
if (!strcmp(elv->elevator_name, __e->elevator_name))
len += sprintf(name+len, "[%s] ", elv->elevator_name);
else
Expand Down

0 comments on commit fea691d

Please sign in to comment.