]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commitf4ada996313811d23b680a5e99531e97ed74eed0
tree6a48d5db83831b6521bbc5795a70ea5ab7446b0e
parent6133d3be85ab851e65f66603b83f5733fa6c45e1
[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