[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20200617071616.GA4001@localhost.localdomain>
Date: Wed, 17 Jun 2020 10:16:16 +0300
From: Alexey Dobriyan <adobriyan@...il.com>
To: liao.pingfang@....com.cn
Cc: linux-kernel@...r.kernel.org
Subject: Re: [PATCH] mm, slab: Use kmem_cache_zalloc() instead of
kmem_cache_alloc() with flag GFP_ZERO.
> static inline void *kmem_cache_zalloc(struct kmem_cache *k, gfp_t flags)
> {
> - return kmem_cache_alloc(k, flags | __GFP_ZERO);
> + return kmem_cache_zalloc(k, flags);
> }
That's a good one.
Powered by blists - more mailing lists