]> err.no Git - linux-2.6/commitdiff
[PATCH] mm: micro-optimise rmap
authorNick Piggin <nickpiggin@yahoo.com.au>
Sat, 3 Sep 2005 22:54:47 +0000 (15:54 -0700)
committerLinus Torvalds <torvalds@evo.osdl.org>
Mon, 5 Sep 2005 07:05:43 +0000 (00:05 -0700)
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>

No differences found