Commit e9bc58c4 authored by Alan Cox's avatar Alan Cox Committed by Linus Torvalds

[PATCH] Fix z2ram

parent 0f10f0f1
...@@ -74,7 +74,7 @@ static struct gendisk *z2ram_gendisk; ...@@ -74,7 +74,7 @@ static struct gendisk *z2ram_gendisk;
static void do_z2_request(request_queue_t *q) static void do_z2_request(request_queue_t *q)
{ {
struct request *req; struct request *req;
while ((req = elv_next_request) != NULL) { while ((req = elv_next_request(q)) != NULL) {
unsigned long start = req->sector << 9; unsigned long start = req->sector << 9;
unsigned long len = req->current_nr_sectors << 9; unsigned long len = req->current_nr_sectors << 9;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment