[PATCH] mm: page_state opt
commita74609fafa2e5cc31d558012abaaa55ec9ad9da4
authorNick Piggin <nickpiggin@yahoo.com.au>
Fri, 6 Jan 2006 08:11:20 +0000 (6 00:11 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 6 Jan 2006 16:33:29 +0000 (6 08:33 -0800)
tree0be653692864d99da345b575dfe2083994ee1d21
parentd3cb487149bd706aa6aeb02042332a450978dc1c
[PATCH] mm: page_state opt

Optimise page_state manipulations by introducing interrupt unsafe accessors
to page_state fields.  Callers must provide their own locking (either
disable interrupts or not update from interrupt context).

Switch over the hot callsites that can easily be moved under interrupts off
sections.

Signed-off-by: Nick Piggin <npiggin@suse.de>
Cc: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/linux/page-flags.h
mm/page_alloc.c
mm/rmap.c
mm/vmscan.c