mm-proc-pid-pagemap-inspect-_page_soft_dirty-only-on-present-pages.patch removed from -mm tree
Subsystems (2)
[email protected]
maintainerSubject: [merged] mm-proc-pid-pagemap-inspect-_page_soft_dirty-only-on-present-pages.patch removed from -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Thu, 17 Oct 2013 11:13:07 -0700
The patch titled
Subject: mm: /proc/pid/pagemap: inspect _PAGE_SOFT_DIRTY only on present pages
has been removed from the -mm tree. Its filename was
mm-proc-pid-pagemap-inspect-_page_soft_dirty-only-on-present-pages.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Cyrill Gorcunov <[email protected]>
Subject: mm: /proc/pid/pagemap: inspect _PAGE_SOFT_DIRTY only on present pages
If a page we are inspecting is in swap we may occasionally report it as having soft dirty bit (even if it is clean). The pte_soft_dirty helper should be called on present pte only.
---
fs/proc/task_mmu.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
fs/proc/task_mmu.c renamed from fs/proc/task_mmu.c~mm-proc-pid-pagemap-inspect-_page_soft_dirty-only-on-present-pages +3 -1
@@ -941,6 +941,8 @@ static void pte_to_pagemap_entry(pagemap frame =pte_pfn (pte); flags =PM_PRESENT ; page =vm_normal_page (vma, addr, pte); +if (pte_soft_dirty (pte)) + flags2 |= __PM_SOFT_DIRTY; }else if (is_swap_pte (pte)) {swp_entry_t entry;if (pte_swp_soft_dirty (pte))
@@ -960,7 +962,7 @@ static void pte_to_pagemap_entry(pagemapif (page && !PageAnon (page)) flags |=PM_FILE ; -if ((vma->vm_flags &VM_SOFTDIRTY ) ||pte_soft_dirty (pte)) +if ((vma->vm_flags &VM_SOFTDIRTY )) flags2 |= __PM_SOFT_DIRTY; *pme =make_pme (PM_PFRAME (frame) |PM_STATUS2 (pm->v2, flags2) | flags);
_
Patches currently in -mm which might be from [email protected] are
origin.patch arch-x86-mnify-pte_to_pgoff-and-pgoff_to_pte-helpers.patch