]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] rmap: don't test rss
authorHugh Dickins <hugh@veritas.com>
Sat, 3 Sep 2005 22:54:43 +0000 (15:54 -0700)
committerLinus Torvalds <torvalds@evo.osdl.org>
Mon, 5 Sep 2005 07:05:42 +0000 (00:05 -0700)
commitc8db58bbdd471a15450166f1da038a23e338b6f9
tree9c46cc93d8467035419028e6e47f25a547e6ad9a
parentc13cb8e3d242739772cc56b5d07bf2e3ed4b730a
[PATCH] rmap: don't test rss

Remove the three get_mm_counter(mm, rss) tests from rmap.c: there was a
time when testing rss was important to avoid a particular race between
dup_mmap and the anonmm rmap; but now it's just a rather silly pseudo-
optimization, made even more obscure by the get_mm_counter macro.

Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/rmap.c