diff options
author | David Hildenbrand <[email protected]> | 2022-11-16 11:26:46 +0100 |
---|---|---|
committer | Andrew Morton <[email protected]> | 2022-11-30 15:58:58 -0800 |
commit | aea06577a9005ca81c35196d6171cac346d3b251 (patch) | |
tree | 4b85baac7d202c287e6d66da5b2b8f45761ec79f /lib/mpi/mpiutil.c | |
parent | b9086fde6d44e8a95dc95b822bd87386129b832d (diff) |
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/[email protected]
Signed-off-by: David Hildenbrand <[email protected]>
Reviewed-by: Vlastimil Babka <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions