mirror of
https://github.com/torvalds/linux.git
synced 2026-11-26 00:12:52 +00:00
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 commit092b50bacd("pagemap: introduce data structure for pagemap entry") Reporting for holes was broken in commit5aaabe831e("pagemap: avoid splitting thp when reading /proc/pid/pagemap") Signed-off-by: Konstantin Khlebnikov <[email protected]> Reported-by: Pavel Emelyanov <[email protected]> Cc: Naoya Horiguchi <[email protected]> Cc: KAMEZAWA Hiroyuki <[email protected]> Cc: Andi Kleen <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>