oldmm             249 arch/powerpc/include/asm/mmu_context.h void arch_dup_pkeys(struct mm_struct *oldmm, struct mm_struct *mm);
oldmm             262 arch/powerpc/include/asm/mmu_context.h #define arch_dup_pkeys(oldmm, mm)
oldmm             271 arch/powerpc/include/asm/mmu_context.h static inline int arch_dup_mmap(struct mm_struct *oldmm,
oldmm             274 arch/powerpc/include/asm/mmu_context.h 	arch_dup_pkeys(oldmm, mm);
oldmm             420 arch/powerpc/mm/book3s64/pkeys.c void arch_dup_pkeys(struct mm_struct *oldmm, struct mm_struct *mm)
oldmm             426 arch/powerpc/mm/book3s64/pkeys.c 	mm_pkey_allocation_map(mm) = mm_pkey_allocation_map(oldmm);
oldmm             427 arch/powerpc/mm/book3s64/pkeys.c 	mm->context.execute_only_pkey = oldmm->context.execute_only_pkey;
oldmm              18 arch/um/include/asm/mmu_context.h static inline int arch_dup_mmap(struct mm_struct *oldmm, struct mm_struct *mm)
oldmm              81 arch/unicore32/include/asm/mmu_context.h static inline int arch_dup_mmap(struct mm_struct *oldmm,
oldmm              86 arch/x86/include/asm/mmu_context.h int ldt_dup_context(struct mm_struct *oldmm, struct mm_struct *mm);
oldmm              91 arch/x86/include/asm/mmu_context.h static inline int ldt_dup_context(struct mm_struct *oldmm,
oldmm             236 arch/x86/include/asm/mmu_context.h static inline void arch_dup_pkeys(struct mm_struct *oldmm,
oldmm             244 arch/x86/include/asm/mmu_context.h 	mm->context.pkey_allocation_map = oldmm->context.pkey_allocation_map;
oldmm             245 arch/x86/include/asm/mmu_context.h 	mm->context.execute_only_pkey   = oldmm->context.execute_only_pkey;
oldmm             249 arch/x86/include/asm/mmu_context.h static inline int arch_dup_mmap(struct mm_struct *oldmm, struct mm_struct *mm)
oldmm             251 arch/x86/include/asm/mmu_context.h 	arch_dup_pkeys(oldmm, mm);
oldmm             252 arch/x86/include/asm/mmu_context.h 	paravirt_arch_dup_mmap(oldmm, mm);
oldmm             253 arch/x86/include/asm/mmu_context.h 	return ldt_dup_context(oldmm, mm);
oldmm             308 arch/x86/include/asm/paravirt.h static inline void paravirt_arch_dup_mmap(struct mm_struct *oldmm,
oldmm             311 arch/x86/include/asm/paravirt.h 	PVOP_VCALL2(mmu.dup_mmap, oldmm, mm);
oldmm             936 arch/x86/include/asm/paravirt.h static inline void paravirt_arch_dup_mmap(struct mm_struct *oldmm,
oldmm             227 arch/x86/include/asm/paravirt_types.h 	void (*dup_mmap)(struct mm_struct *oldmm,
oldmm             984 arch/x86/xen/mmu_pv.c static void xen_dup_mmap(struct mm_struct *oldmm, struct mm_struct *mm)
oldmm             496 drivers/oprofile/buffer_sync.c 	struct mm_struct *oldmm;
oldmm             537 drivers/oprofile/buffer_sync.c 				oldmm = mm;
oldmm             538 drivers/oprofile/buffer_sync.c 				release_mm(oldmm);
oldmm             540 drivers/oprofile/buffer_sync.c 				if (mm != oldmm)
oldmm              10 include/asm-generic/mm_hooks.h static inline int arch_dup_mmap(struct mm_struct *oldmm,
oldmm              41 include/linux/khugepaged.h static inline int khugepaged_fork(struct mm_struct *mm, struct mm_struct *oldmm)
oldmm              43 include/linux/khugepaged.h 	if (test_bit(MMF_VM_HUGEPAGE, &oldmm->flags))
oldmm              67 include/linux/khugepaged.h static inline int khugepaged_fork(struct mm_struct *mm, struct mm_struct *oldmm)
oldmm              27 include/linux/ksm.h static inline int ksm_fork(struct mm_struct *mm, struct mm_struct *oldmm)
oldmm              29 include/linux/ksm.h 	if (test_bit(MMF_VM_MERGEABLE, &oldmm->flags))
oldmm              61 include/linux/ksm.h static inline int ksm_fork(struct mm_struct *mm, struct mm_struct *oldmm)
oldmm             121 include/linux/uprobes.h extern void uprobe_dup_mmap(struct mm_struct *oldmm, struct mm_struct *newmm);
oldmm             184 include/linux/uprobes.h uprobe_dup_mmap(struct mm_struct *oldmm, struct mm_struct *newmm)
oldmm            1578 kernel/events/uprobes.c void uprobe_dup_mmap(struct mm_struct *oldmm, struct mm_struct *newmm)
oldmm            1580 kernel/events/uprobes.c 	if (test_bit(MMF_HAS_UPROBES, &oldmm->flags)) {
oldmm             479 kernel/fork.c  					struct mm_struct *oldmm)
oldmm             488 kernel/fork.c  	if (down_write_killable(&oldmm->mmap_sem)) {
oldmm             492 kernel/fork.c  	flush_cache_dup_mm(oldmm);
oldmm             493 kernel/fork.c  	uprobe_dup_mmap(oldmm, mm);
oldmm             500 kernel/fork.c  	RCU_INIT_POINTER(mm->exe_file, get_mm_exe_file(oldmm));
oldmm             502 kernel/fork.c  	mm->total_vm = oldmm->total_vm;
oldmm             503 kernel/fork.c  	mm->data_vm = oldmm->data_vm;
oldmm             504 kernel/fork.c  	mm->exec_vm = oldmm->exec_vm;
oldmm             505 kernel/fork.c  	mm->stack_vm = oldmm->stack_vm;
oldmm             510 kernel/fork.c  	retval = ksm_fork(mm, oldmm);
oldmm             513 kernel/fork.c  	retval = khugepaged_fork(mm, oldmm);
oldmm             518 kernel/fork.c  	for (mpnt = oldmm->mmap; mpnt; mpnt = mpnt->vm_next) {
oldmm             537 kernel/fork.c  			if (security_vm_enough_memory_mm(oldmm, len)) /* sic */
oldmm             601 kernel/fork.c  			retval = copy_page_range(mm, oldmm, mpnt);
oldmm             610 kernel/fork.c  	retval = arch_dup_mmap(oldmm, mm);
oldmm             613 kernel/fork.c  	flush_tlb_mm(oldmm);
oldmm             614 kernel/fork.c  	up_write(&oldmm->mmap_sem);
oldmm             642 kernel/fork.c  static int dup_mmap(struct mm_struct *mm, struct mm_struct *oldmm)
oldmm             644 kernel/fork.c  	down_write(&oldmm->mmap_sem);
oldmm             645 kernel/fork.c  	RCU_INIT_POINTER(mm->exe_file, get_mm_exe_file(oldmm));
oldmm             646 kernel/fork.c  	up_write(&oldmm->mmap_sem);
oldmm            1343 kernel/fork.c  				struct mm_struct *oldmm)
oldmm            1352 kernel/fork.c  	memcpy(mm, oldmm, sizeof(*mm));
oldmm            1357 kernel/fork.c  	err = dup_mmap(mm, oldmm);
oldmm            1381 kernel/fork.c  	struct mm_struct *mm, *oldmm;
oldmm            1399 kernel/fork.c  	oldmm = current->mm;
oldmm            1400 kernel/fork.c  	if (!oldmm)
oldmm            1407 kernel/fork.c  		mmget(oldmm);
oldmm            1408 kernel/fork.c  		mm = oldmm;