Skip to content

Commit 63f61a6

Browse files
wildea01torvalds
authored andcommitted
revert "proc: clear_refs: do not clear reserved pages"
Revert commit 85e72aa ("proc: clear_refs: do not clear reserved pages"), which was a quick fix suitable for -stable until ARM had been moved over to the gate_vma mechanism: https://lkml.org/lkml/2012/1/14/55 With commit f9d4861 ("ARM: 7294/1: vectors: use gate_vma for vectors user mapping"), ARM does now use the gate_vma, so the PageReserved check can be removed from the proc code. Signed-off-by: Will Deacon <[email protected]> Cc: Nicolas Pitre <[email protected]> Acked-by: Hugh Dickins <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 3f5ec5e commit 63f61a6

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

fs/proc/task_mmu.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -597,9 +597,6 @@ static int clear_refs_pte_range(pmd_t *pmd, unsigned long addr,
597597
if (!page)
598598
continue;
599599

600-
if (PageReserved(page))
601-
continue;
602-
603600
/* Clear accessed and referenced bits. */
604601
ptep_test_and_clear_young(vma, addr, pte);
605602
ClearPageReferenced(page);

0 commit comments

Comments
 (0)