summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDavid Hildenbrand <david@redhat.com>2022-11-16 13:26:46 +0300
committerAndrew Morton <akpm@linux-foundation.org>2022-12-01 02:58:58 +0300
commitaea06577a9005ca81c35196d6171cac346d3b251 (patch)
tree4b85baac7d202c287e6d66da5b2b8f45761ec79f /include
parentb9086fde6d44e8a95dc95b822bd87386129b832d (diff)
downloadlinux-aea06577a9005ca81c35196d6171cac346d3b251.tar.xz
mm: don't call vm_ops->huge_fault() in wp_huge_pmd()/wp_huge_pud() for private mappings
If we already have a PMD/PUD mapped write-protected in a private mapping and we want to break COW either due to FAULT_FLAG_WRITE or FAULT_FLAG_UNSHARE, there is no need to inform the file system just like on the PTE path. Let's just split (->zap) + fallback in that case. This is a preparation for more generic FAULT_FLAG_UNSHARE support in COW mappings. Link: https://lkml.kernel.org/r/20221116102659.70287-8-david@redhat.com Signed-off-by: David Hildenbrand <david@redhat.com> Reviewed-by: Vlastimil Babka <vbabka@suse.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions