memory.c (4af6600fd793023c01634cca5abfe4a2b707788f) memory.c (64e455079e1bd7787cc47be30b7f601ce682a5f6)
1/*
2 * linux/mm/memory.c
3 *
4 * Copyright (C) 1991, 1992, 1993, 1994 Linus Torvalds
5 */
6
7/*
8 * demand-loading started 01.12.91 - seems it is high on the list of

--- 2039 unchanged lines hidden (view full) ---

2048 struct page *dirty_page = NULL;
2049 unsigned long mmun_start = 0; /* For mmu_notifiers */
2050 unsigned long mmun_end = 0; /* For mmu_notifiers */
2051 struct mem_cgroup *memcg;
2052
2053 old_page = vm_normal_page(vma, address, orig_pte);
2054 if (!old_page) {
2055 /*
1/*
2 * linux/mm/memory.c
3 *
4 * Copyright (C) 1991, 1992, 1993, 1994 Linus Torvalds
5 */
6
7/*
8 * demand-loading started 01.12.91 - seems it is high on the list of

--- 2039 unchanged lines hidden (view full) ---

2048 struct page *dirty_page = NULL;
2049 unsigned long mmun_start = 0; /* For mmu_notifiers */
2050 unsigned long mmun_end = 0; /* For mmu_notifiers */
2051 struct mem_cgroup *memcg;
2052
2053 old_page = vm_normal_page(vma, address, orig_pte);
2054 if (!old_page) {
2055 /*
2056 * VM_MIXEDMAP !pfn_valid() case
2056 * VM_MIXEDMAP !pfn_valid() case, or VM_SOFTDIRTY clear on a
2057 * VM_PFNMAP VMA.
2057 *
2058 * We should not cow pages in a shared writeable mapping.
2059 * Just mark the pages writable as we can't do any dirty
2060 * accounting on raw pfn maps.
2061 */
2062 if ((vma->vm_flags & (VM_WRITE|VM_SHARED)) ==
2063 (VM_WRITE|VM_SHARED))
2064 goto reuse;

--- 1760 unchanged lines hidden ---
2058 *
2059 * We should not cow pages in a shared writeable mapping.
2060 * Just mark the pages writable as we can't do any dirty
2061 * accounting on raw pfn maps.
2062 */
2063 if ((vma->vm_flags & (VM_WRITE|VM_SHARED)) ==
2064 (VM_WRITE|VM_SHARED))
2065 goto reuse;

--- 1760 unchanged lines hidden ---