[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-id: <546DAA99.5070402@samsung.com>
Date: Thu, 20 Nov 2014 11:47:21 +0300
From: Andrey Ryabinin <a.ryabinin@...sung.com>
To: David Rientjes <rientjes@...gle.com>
Cc: Thomas Gleixner <tglx@...utronix.de>, linux-kernel@...r.kernel.org,
Christoph Lameter <cl@...ux.com>,
Andrew Morton <akpm@...ux-foundation.org>, linux-mm@...ck.org,
Pekka Enberg <penberg@...nel.org>
Subject: Re: [PATCH 1/3] mm: sl[aou]b: introduce kmem_cache_zalloc_node()
On 11/20/2014 02:46 AM, David Rientjes wrote:
> On Mon, 10 Nov 2014, Andrey Ryabinin wrote:
>
>> kmem_cache_zalloc_node() allocates zeroed memory for a particular
>> cache from a specified memory node. To be used for struct irq_desc.
>>
>
> Is there a reason to add this for such a specialized purpose to the slab
> allocator? I think it can just be handled for struct irq_desc explicitly.
>
It could be used not only for irq_desc. Grepping sources gave me 7 possible users.
We already have zeroing variants of kmalloc/kmalloc_node/kmem_cache_alloc,
so why kmem_cache_alloc_node is special?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists