* [merged] thp-handle-file-cow-faults.patch removed from -mm tree
@ 2016-07-27 19:02 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2016-07-27 19:02 UTC (permalink / raw)
To: kirill.shutemov, mm-commits
The patch titled
Subject: thp: handle file COW faults
has been removed from the -mm tree. Its filename was
thp-handle-file-cow-faults.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>
Subject: thp: handle file COW faults
File COW for THP is handled on pte level: just split the pmd.
It's not clear how benefitial would be allocation of huge pages on COW
faults. And it would require some code to make them work.
I think at some point we can consider teaching khugepaged to collapse
pages in COW mappings, but allocating huge on fault is probably
overkill.
Link: http://lkml.kernel.org/r/1466021202-61880-16-git-send-email-kirill.shutemov@linux.intel.com
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
mm/memory.c | 5 +++++
1 file changed, 5 insertions(+)
diff -puN mm/memory.c~thp-handle-file-cow-faults mm/memory.c
--- a/mm/memory.c~thp-handle-file-cow-faults
+++ a/mm/memory.c
@@ -3446,6 +3446,11 @@ static int wp_huge_pmd(struct fault_env
if (fe->vma->vm_ops->pmd_fault)
return fe->vma->vm_ops->pmd_fault(fe->vma, fe->address, fe->pmd,
fe->flags);
+
+ /* COW handled on pte level: split pmd */
+ VM_BUG_ON_VMA(fe->vma->vm_flags & VM_SHARED, fe->vma);
+ split_huge_pmd(fe->vma, fe->pmd, fe->address);
+
return VM_FAULT_FALLBACK;
}
_
Patches currently in -mm which might be from kirill.shutemov@linux.intel.com are
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-07-27 19:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-27 19:02 [merged] thp-handle-file-cow-faults.patch removed from -mm tree akpm
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).