[PATCH] mm: batch updating mm_counters
commitae859762332f19bfc06f4c4a1b1fefb41e9e1084
authorHugh Dickins <hugh@veritas.com>
Sun, 30 Oct 2005 01:16:05 +0000 (29 18:16 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 30 Oct 2005 04:40:38 +0000 (29 21:40 -0700)
tree4f21583bb1441e5555ed199a40d5f679bb4506e9
parent4294621f41a85497019fae64341aa5351a1921b7
[PATCH] mm: batch updating mm_counters

tlb_finish_mmu used to batch zap_pte_range's update of mm rss, which may be
worthwhile if the mm is contended, and would reduce atomic operations if the
counts were atomic.  Let zap_pte_range now batch its updates to file_rss and
anon_rss, per page-table in case we drop the lock outside; and copy_pte_range
batch them too.

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/memory.c