]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] mbind: check_range use standard ptwalk
authorHugh Dickins <hugh@veritas.com>
Wed, 22 Jun 2005 00:15:07 +0000 (17:15 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 22 Jun 2005 01:46:19 +0000 (18:46 -0700)
commit91612e0df20a52f61db3cac280c153311b36df7a
tree44a19e1d03147aabb842cbaac493a7213b836e4a
parent941150a326be88af245034ef4b3e9fa00229aa2d
[PATCH] mbind: check_range use standard ptwalk

Strict mbind's check for currently mapped pages being on node has been
using a slow loop which re-evaluates pgd, pud, pmd, pte for each entry:
replace that by a standard four-level page table walk like others in mm.
Since mmap_sem is held for writing, page_table_lock can be taken at the
inner level to limit latency.

Signed-off-by: Hugh Dickins <hugh@veritas.com>
Cc: Andi Kleen <ak@muc.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/mempolicy.c