]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] mm: batch updating mm_counters
authorHugh Dickins <hugh@veritas.com>
Sun, 30 Oct 2005 01:16:05 +0000 (18:16 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 30 Oct 2005 04:40:38 +0000 (21:40 -0700)
commit6841da5cab5edc05133bb457b2fee0b4f1b7c6a0
tree4f21583bb1441e5555ed199a40d5f679bb4506e9
parentefe946b87e4d1e139e03445f3de1cc226a9e6814
[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