Re: [patch 9/14] mm: page_state opt

Andi Kleen
2005-11-13T02:39:01Z

Nick Piggin <nickpiggin@yahoo.com.au> writes:

> 9/14
>
> --
> SUSE Labs, Novell Inc.
>
> Optimise page_state manipulations by introducing a direct accessor
> to page_state fields without disabling interrupts, in which case
> the callers must provide their own locking (either disable interrupts
> or not update from interrupt context).

I have a patchkit (which i need to update for the current kernel)
which replaces this with local_t. Gives much better code and is much
simpler and doesn't require turning off interrupts anywhere.

-Andi