Messages in this thread Patch in this message | | | From | Joe Perches <> | Subject | [PATCH 2/2] mempool: Convert kmalloc_node(...GFP_ZERO...) to kzalloc_node(...) | Date | Thu, 29 Aug 2013 15:31:19 -0700 |
| |
Use the helper function instead of __GFP_ZERO.
Signed-off-by: Joe Perches <joe@perches.com> --- mm/mempool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/mempool.c b/mm/mempool.c index 5499047..659aa42 100644 --- a/mm/mempool.c +++ b/mm/mempool.c @@ -73,7 +73,7 @@ mempool_t *mempool_create_node(int min_nr, mempool_alloc_t *alloc_fn, gfp_t gfp_mask, int node_id) { mempool_t *pool; - pool = kmalloc_node(sizeof(*pool), gfp_mask | __GFP_ZERO, node_id); + pool = kzalloc_node(sizeof(*pool), gfp_mask, node_id); if (!pool) return NULL; pool->elements = kmalloc_node(min_nr * sizeof(void *), -- 1.8.1.2.459.gbcd45b4.dirty
| |