[PATCH] mm: micro-optimise rmap
commit2822c1aa574d277b9ba0130b1e71c1a5874bc04a
authorNick Piggin <nickpiggin@yahoo.com.au>
Sat, 3 Sep 2005 22:54:47 +0000 (3 15:54 -0700)
committerLinus Torvalds <torvalds@evo.osdl.org>
Mon, 5 Sep 2005 07:05:43 +0000 (5 00:05 -0700)
tree6a48d5db83831b6521bbc5795a70ea5ab7446b0e
parentc3dce2d89c269d5373a120d4a22fc2426ec992b0
[PATCH] mm: micro-optimise rmap

Microoptimise page_add_anon_rmap.  Although these expressions are used only in
the taken branch of the if() statement, the compiler can't reorder them inside
because atomic_inc_and_test is a barrier.

Signed-off-by: Nick Piggin <npiggin@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/rmap.c