Slab allocators: Replace explicit zeroing with __GFP_ZERO
[deliverable/linux.git] / block / ll_rw_blk.c
index 11e4235d0b0c8e984adc507a80657382640db248..d7cadf304168694d9ce542eea5f1c02930331a8a 100644 (file)
@@ -1829,11 +1829,11 @@ request_queue_t *blk_alloc_queue_node(gfp_t gfp_mask, int node_id)
 {
        request_queue_t *q;
 
-       q = kmem_cache_alloc_node(requestq_cachep, gfp_mask, node_id);
+       q = kmem_cache_alloc_node(requestq_cachep,
+                               gfp_mask | __GFP_ZERO, node_id);
        if (!q)
                return NULL;
 
-       memset(q, 0, sizeof(*q));
        init_timer(&q->unplug_timer);
 
        snprintf(q->kobj.name, KOBJ_NAME_LEN, "%s", "queue");
This page took 0.031239 seconds and 5 git commands to generate.