Revert "proc: clear_refs: do not clear reserved pages"
Subsystems (3)
PATCH 1/1 Revert "proc: clear_refs: do not clear reserved pages"
This reverts commit 85e72aa5384b1a614563ad63257ded0e91d1a620, 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 f9d4861f ("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.
--- fs/proc/task_mmu.c | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-)
fs/proc/task_mmu.c +0 -3
@@ -597,9 +597,6 @@ static int clear_refs_pte_range(pmd_t *pmd, unsigned long addr,if (!page)continue ; -if (PageReserved (page)) -continue ; -/* Clear accessed and referenced bits. */ ptep_test_and_clear_young (vma, addr, pte);ClearPageReferenced (page);
Signature · 8 lines
1.7.4.1 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 4 lines · Will Deacon
This reverts commit
85e72aa5384b1a614563ad63257ded0e91d1a620, which was a quick fix suitable for -stable until ARM had been moved over to thegate_vmamechanism:
Quoted 8 lines
https://lkml.org/lkml/2012/1/14/55
With commit
f9d4861f("ARM: 7294/1: vectors: usegate_vmafor vectors user mapping"), ARM does now use thegate_vma, so the PageReserved check can be removed from the proc code.Cc Nicolas Pitre <[email protected]>Signed-off-by Will Deacon <[email protected]>
Oh, great, I'm glad that worked out: thanks a lot for looking after it, Will, and now cleaning up afterwards.
Quoted 22 lines
--- fs/proc/task_mmu.c | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-)fs/proc/task_mmu.c +0
-3@@ -597,9 +597,6 @@ static int clear_refs_pte_range(pmd_t *pmd, unsigned long addr,if (!page)continue ; -if (PageReserved (page)) -continue ; -/* Clear accessed and referenced bits. */ ptep_test_and_clear_young (vma, addr, pte);ClearPageReferenced (page);Signature · 1 line
1.7.4.1
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 12 lines · Hugh Dickins
Quoted 10 lines · Will Deacon
This reverts commit
85e72aa5384b1a614563ad63257ded0e91d1a620, which was a quick fix suitable for -stable until ARM had been moved over to thegate_vmamechanism:https://lkml.org/lkml/2012/1/14/55
With commit
f9d4861f("ARM: 7294/1: vectors: usegate_vmafor vectors user mapping"), ARM does now use thegate_vma, so the PageReserved check can be removed from the proc code.
Quoted 7 lines
Quoted 2 lines
Cc Nicolas Pitre <[email protected]>Signed-off-by Will Deacon <[email protected]>Oh, great, I'm glad that worked out: thanks a lot for looking after it, Will, and now cleaning up afterwards.
Acked-by Hugh Dickins <[email protected]>
Thanks, Hugh. I guess it's easiest if Andrew picks this one up as he took the original patch.
Will
Quoted 12 lines
Quoted 12 lines
--- fs/proc/task_mmu.c | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-)fs/proc/task_mmu.c +0
-0@@ -597,9 +597,6 @@ static int clear_refs_pte_range(pmd_t *pmd, unsigned long addr,if (!page)continue ;
Quoted 11 lines
Quoted 10 lines
fs/proc/task_mmu.c +0
-3-if (PageReserved (page)) -continue ; -/* Clear accessed and referenced bits. */ ptep_test_and_clear_young (vma, addr, pte);ClearPageReferenced (page);Signature · 1 line
1.7.4.1
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>