]> git.baikalelectronics.ru Git - kernel.git/commit
proc/pid/pagemap: correctly report non-present ptes and holes between vmas
authorKonstantin Khlebnikov <khlebnikov@openvz.org>
Thu, 10 May 2012 20:01:43 +0000 (13:01 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 10 May 2012 22:06:44 +0000 (15:06 -0700)
commit7ab3f6b6f2687e348d178bb31a957e80494f47db
treeb0088af87f70ceeef0fbe55bc2200b4f1b9aa816
parenta9f2b170140cc48d6922e4d79a7b480464b93802
proc/pid/pagemap: correctly report non-present ptes and holes between vmas

Reset the current pagemap-entry if the current pte isn't present, or if
current vma is over.  Otherwise pagemap reports last entry again and
again.

Non-present pte reporting was broken in commit 84acf48831b7 ("pagemap:
introduce data structure for pagemap entry")

Reporting for holes was broken in commit 90a2b5f10c09 ("pagemap: avoid
splitting thp when reading /proc/pid/pagemap")

Signed-off-by: Konstantin Khlebnikov <khlebnikov@openvz.org>
Reported-by: Pavel Emelyanov <xemul@parallels.com>
Cc: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/proc/task_mmu.c