Re: [Use cpuops V1 10/11] fs: Use this_cpu_xx operations in buffer.c

From: Tejun Heo
Date: Tue Dec 07 2010 - 10:17:40 EST


On 12/06/2010 06:16 PM, Christoph Lameter wrote:
> Optimize various per cpu area operations through the new this cpu
> operations. These operations avoid address calculations through the use
> of segment prefixes avoid multiple memory references through RMW
> instructions etc.
>
> Reduces code size:
>
> Before:
>
> christoph@xxxxxxxxx$ size fs/buffer.o
> text data bss dec hex filename
> 19169 80 28 19277 4b4d fs/buffer.o
>
> After:
>
> christoph@xxxxxxxxx$ size fs/buffer.o
> text data bss dec hex filename
> 19138 80 28 19246 4b2e fs/buffer.o
>
> V3->V4:
> - Move the use of this_cpu_inc_return into a later patch so that
> this one can go in without percpu infrastructure changes.
>
> Cc: Wu Fengguang <fengguang.wu@xxxxxxxxx>
> Cc: Christoph Hellwig <hch@xxxxxx>
> Signed-off-by: Christoph Lameter <cl@xxxxxxxxx>

applied 10 and 11.

--
tejun
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/