On Thu, Aug 29, 2013 at 03:31:19PM -0700, Joe Perches wrote: >Use the helper function instead of __GFP_ZERO. > Reviewed-by: Wanpeng Li <liwanp@xxxxxxxxxxxxxxxxxx> >Signed-off-by: Joe Perches <joe@xxxxxxxxxxx> >--- > 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 > >-- >To unsubscribe, send a message with 'unsubscribe linux-mm' in >the body to majordomo@xxxxxxxxx. For more info on Linux MM, >see: http://www.linux-mm.org/ . >Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a> -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>