Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.4.13 /drivers/block/ll_rw_blk.c

Filename:/drivers/block/ll_rw_blk.c
Lines Added:6
Lines Deleted:6
Also changed in: (Previous) 2.4.13-pre6  2.4.13-pre5  2.4.13-pre4  2.4.13-pre3  2.4.12-ac6  2.4.12-ac4 
(Following) 2.4.13-ac1  2.4.13-ac2  2.4.13-ac3  2.4.13-ac4  2.4.13-ac5  2.4.13-ac6 

Location
[  2.4.13
  [  drivers
    [  block
       o  ll_rw_blk.c

Patch

diff -u --recursive --new-file v2.4.12/linux/drivers/block/ll_rw_blk.c linux/drivers/block/ll_rw_blk.c
--- v2.4.12/linux/drivers/block/ll_rw_blk.c   Sun Sep 23 11:40:57 2001
+++ linux/drivers/block/ll_rw_blk.c   Sat Oct 13 10:30:30 2001
@@ -149,8 +149,8 @@
       return 0;
 
    do {
-      rq = list_entry(head->next, struct request, table);
-      list_del(&rq->table);
+      rq = list_entry(head->next, struct request, queue);
+      list_del(&rq->queue);
       kmem_cache_free(request_cachep, rq);
       i++;
    } while (!list_empty(head));
@@ -349,7 +349,7 @@
       }
       memset(rq, 0, sizeof(struct request));
       rq->rq_status = RQ_INACTIVE;
-      list_add(&rq->table, &q->request_freelist[i & 1]);
+      list_add(&rq->queue, &q->request_freelist[i & 1]);
    }
 
    init_waitqueue_head(&q->wait_for_request);
@@ -415,7 +415,7 @@
    q->head_active       = 1;
 }
 
-#define blkdev_free_rq(list) list_entry((list)->next, struct request, table);
+#define blkdev_free_rq(list) list_entry((list)->next, struct request, queue);
 /*
  * Get a free request. io_request_lock must be held and interrupts
  * disabled on the way in.
@@ -426,7 +426,7 @@
 
    if (!list_empty(&q->request_freelist[rw])) {
       rq = blkdev_free_rq(&q->request_freelist[rw]);
-      list_del(&rq->table);
+      list_del(&rq->queue);
       rq->rq_status = RQ_ACTIVE;
       rq->special = NULL;
       rq->q = q;
@@ -570,7 +570,7 @@
       /*
        * Add to pending free list and batch wakeups
        */
-      list_add(&req->table, &q->pending_freelist[rw]);
+      list_add(&req->queue, &q->pending_freelist[rw]);
 
       if (++q->pending_free[rw] >= batch_requests) {
          int wake_up = q->pending_free[rw];


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.