mincore: break do_mincore() into logical pieces
authorJohannes Weiner <hannes@cmpxchg.org>
Mon, 24 May 2010 21:32:10 +0000 (14:32 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 25 May 2010 15:06:58 +0000 (08:06 -0700)
commitf488401076c5570130c018e573f450a9a6c43365
tree0e704c52a45e44ba8cbb0dac529e9ad251d9edbd
parent6a60f1b3588aef6ddceaa14192df475d430cce45
mincore: break do_mincore() into logical pieces

Split out functions to handle hugetlb ranges, pte ranges and unmapped
ranges, to improve readability but also to prepare the file structure for
nested page table walks.

No semantic changes intended.

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