Skip to contentSkip to conversation

Revert "proc: clear_refs: do not clear reserved pages"

PATCH In review Will Deacon 2 participants 3 messages Apr 12, 2012 – Apr 13, 2012

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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
index 2b9a760..2d60492 100644
@@ -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>
Acked-by on v1 1/1
#1 lore raw
Quoted 4 lines · Will Deacon

This reverts commit 85e72aa5384b1a614563ad63257ded0e91d1a620, which was a quick fix suitable for -stable until ARM had been moved over to the gate_vma mechanism:

Quoted 8 lines

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.

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
index 2b9a760..2d60492 100644
@@ -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>

#2 lore raw
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 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.

Quoted 7 lines
Quoted 2 lines

Oh, great, I'm glad that worked out: thanks a lot for looking after it, Will, and now cleaning up afterwards.

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
index 2b9a760..2d60492 100644
@@ -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>