Re: [PATCH for-v3.7 2/2] slub: optimize kmalloc* inlining for GFP_DMA

2012-10-23 Thread JoonSoo Kim
Hi, Eric. 2012/10/23 Eric Dumazet : > On Tue, 2012-10-23 at 11:29 +0900, JoonSoo Kim wrote: >> 2012/10/22 Christoph Lameter : >> > On Sun, 21 Oct 2012, Joonsoo Kim wrote: >> > >> >> kmalloc() and kmalloc_node() of the SLUB isn't inlined when @flags = >> >> __GFP_DMA. >> >> This patch optimize thi

Re: [PATCH for-v3.7 2/2] slub: optimize kmalloc* inlining for GFP_DMA

2012-10-22 Thread Eric Dumazet
On Tue, 2012-10-23 at 11:29 +0900, JoonSoo Kim wrote: > 2012/10/22 Christoph Lameter : > > On Sun, 21 Oct 2012, Joonsoo Kim wrote: > > > >> kmalloc() and kmalloc_node() of the SLUB isn't inlined when @flags = > >> __GFP_DMA. > >> This patch optimize this case, > >> so when @flags = __GFP_DMA, it w

Re: [PATCH for-v3.7 2/2] slub: optimize kmalloc* inlining for GFP_DMA

2012-10-22 Thread JoonSoo Kim
2012/10/22 Christoph Lameter : > On Sun, 21 Oct 2012, Joonsoo Kim wrote: > >> kmalloc() and kmalloc_node() of the SLUB isn't inlined when @flags = >> __GFP_DMA. >> This patch optimize this case, >> so when @flags = __GFP_DMA, it will be inlined into generic code. > > __GFP_DMA is a rarely used fla

Re: [PATCH for-v3.7 2/2] slub: optimize kmalloc* inlining for GFP_DMA

2012-10-22 Thread Christoph Lameter
On Sun, 21 Oct 2012, Joonsoo Kim wrote: > kmalloc() and kmalloc_node() of the SLUB isn't inlined when @flags = > __GFP_DMA. > This patch optimize this case, > so when @flags = __GFP_DMA, it will be inlined into generic code. __GFP_DMA is a rarely used flag for kmalloc allocators and so far it wa

[PATCH for-v3.7 2/2] slub: optimize kmalloc* inlining for GFP_DMA

2012-10-20 Thread Joonsoo Kim
kmalloc() and kmalloc_node() of the SLUB isn't inlined when @flags = __GFP_DMA. This patch optimize this case, so when @flags = __GFP_DMA, it will be inlined into generic code. Cc: Christoph Lameter Signed-off-by: Joonsoo Kim diff --git a/include/linux/slub_def.h b/include/linux/slub_def.h inde