[PATCH] extend the set of "__attribute__" shortcut macros
[linux-2.6.git] / block / noop-iosched.c
index 56a7c620574f86c0338a431354344d149314ce0f..1c3de2b9a6b59c0d6938b082bfb48fa6085d877d 100644 (file)
@@ -65,11 +65,11 @@ noop_latter_request(request_queue_t *q, struct request *rq)
        return list_entry(rq->queuelist.next, struct request, queuelist);
 }
 
-static void *noop_init_queue(request_queue_t *q, elevator_t *e)
+static void *noop_init_queue(request_queue_t *q)
 {
        struct noop_data *nd;
 
-       nd = kmalloc(sizeof(*nd), GFP_KERNEL);
+       nd = kmalloc_node(sizeof(*nd), GFP_KERNEL, q->node);
        if (!nd)
                return NULL;
        INIT_LIST_HEAD(&nd->queue);