mincore: do nested page table walks
authorJohannes Weiner <hannes@cmpxchg.org>
Mon, 24 May 2010 21:32:11 +0000 (14:32 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 25 May 2010 15:06:58 +0000 (08:06 -0700)
commite48293fd75b3aa67f43ad6e3d2ff397caa55d58b
tree8f163687833fb5e1fa84f72e2e72e1ab83aca91e
parent25ef0e50cca790370ad7838e3ad74db6a6a2d829
mincore: do nested page table walks

Do page table walks with the well-known nested loops we use in several
other places already.

This avoids doing full page table walks after every pte range and also
allows to handle unmapped areas bigger than one pte range in one go.

Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/mincore.c