Searched refs:oldmm (Results 1 - 16 of 16) sorted by relevance

/linux-4.1.27/include/linux/
H A Dkhugepaged.h26 static inline int khugepaged_fork(struct mm_struct *mm, struct mm_struct *oldmm) khugepaged_fork() argument
28 if (test_bit(MMF_VM_HUGEPAGE, &oldmm->flags)) khugepaged_fork()
51 static inline int khugepaged_fork(struct mm_struct *mm, struct mm_struct *oldmm) khugepaged_fork() argument
H A Dksm.h25 static inline int ksm_fork(struct mm_struct *mm, struct mm_struct *oldmm) ksm_fork() argument
27 if (test_bit(MMF_VM_MERGEABLE, &oldmm->flags)) ksm_fork()
69 static inline int ksm_fork(struct mm_struct *mm, struct mm_struct *oldmm) ksm_fork() argument
H A Duprobes.h115 extern void uprobe_dup_mmap(struct mm_struct *oldmm, struct mm_struct *newmm);
169 uprobe_dup_mmap(struct mm_struct *oldmm, struct mm_struct *newmm) uprobe_dup_mmap() argument
/linux-4.1.27/include/asm-generic/
H A Dmm_hooks.h9 static inline void arch_dup_mmap(struct mm_struct *oldmm, arch_dup_mmap() argument
/linux-4.1.27/kernel/
H A Dfork.c390 static int dup_mmap(struct mm_struct *mm, struct mm_struct *oldmm) dup_mmap() argument
398 down_write(&oldmm->mmap_sem); dup_mmap()
399 flush_cache_dup_mm(oldmm); dup_mmap()
400 uprobe_dup_mmap(oldmm, mm); dup_mmap()
407 RCU_INIT_POINTER(mm->exe_file, get_mm_exe_file(oldmm)); dup_mmap()
409 mm->total_vm = oldmm->total_vm; dup_mmap()
410 mm->shared_vm = oldmm->shared_vm; dup_mmap()
411 mm->exec_vm = oldmm->exec_vm; dup_mmap()
412 mm->stack_vm = oldmm->stack_vm; dup_mmap()
417 retval = ksm_fork(mm, oldmm); dup_mmap()
420 retval = khugepaged_fork(mm, oldmm); dup_mmap()
425 for (mpnt = oldmm->mmap; mpnt; mpnt = mpnt->vm_next) { dup_mmap()
437 if (security_vm_enough_memory_mm(oldmm, len)) /* sic */ dup_mmap()
494 retval = copy_page_range(mm, oldmm, mpnt); dup_mmap()
503 arch_dup_mmap(oldmm, mm); dup_mmap()
507 flush_tlb_mm(oldmm); dup_mmap()
508 up_write(&oldmm->mmap_sem); dup_mmap()
534 static int dup_mmap(struct mm_struct *mm, struct mm_struct *oldmm) dup_mmap() argument
536 down_write(&oldmm->mmap_sem); dup_mmap()
537 RCU_INIT_POINTER(mm->exe_file, get_mm_exe_file(oldmm)); dup_mmap()
538 up_write(&oldmm->mmap_sem); dup_mmap()
906 struct mm_struct *mm, *oldmm = current->mm; dup_mm() local
913 memcpy(mm, oldmm, sizeof(*mm)); dup_mm()
918 err = dup_mmap(mm, oldmm); dup_mm()
941 struct mm_struct *mm, *oldmm; copy_mm() local
958 oldmm = current->mm; copy_mm()
959 if (!oldmm) copy_mm()
966 atomic_inc(&oldmm->mm_users); copy_mm()
967 mm = oldmm; copy_mm()
/linux-4.1.27/arch/um/include/asm/
H A Dmmu_context.h16 static inline void arch_dup_mmap(struct mm_struct *oldmm, struct mm_struct *mm) arch_dup_mmap() argument
/linux-4.1.27/drivers/oprofile/
H A Dbuffer_sync.c494 struct mm_struct *oldmm; sync_buffer() local
535 oldmm = mm; sync_buffer()
536 release_mm(oldmm); sync_buffer()
538 if (mm != oldmm) sync_buffer()
/linux-4.1.27/arch/unicore32/include/asm/
H A Dmmu_context.h84 static inline void arch_dup_mmap(struct mm_struct *oldmm, arch_dup_mmap() argument
/linux-4.1.27/arch/s390/include/asm/
H A Dmmu_context.h119 static inline void arch_dup_mmap(struct mm_struct *oldmm, arch_dup_mmap() argument
/linux-4.1.27/arch/x86/include/asm/
H A Dmmu_context.h210 static inline void arch_dup_mmap(struct mm_struct *oldmm, arch_dup_mmap() argument
213 paravirt_arch_dup_mmap(oldmm, mm); arch_dup_mmap()
H A Dparavirt.h333 static inline void paravirt_arch_dup_mmap(struct mm_struct *oldmm, paravirt_arch_dup_mmap() argument
336 PVOP_VCALL2(pv_mmu_ops.dup_mmap, oldmm, mm); paravirt_arch_dup_mmap()
985 static inline void paravirt_arch_dup_mmap(struct mm_struct *oldmm, paravirt_arch_dup_mmap() argument
H A Dparavirt_types.h241 void (*dup_mmap)(struct mm_struct *oldmm,
/linux-4.1.27/drivers/staging/lustre/lustre/libcfs/linux/
H A Dlinux-tcpip.c49 mm_segment_t oldmm = get_fs(); libcfs_sock_ioctl() local
70 set_fs(oldmm); libcfs_sock_ioctl()
/linux-4.1.27/kernel/events/
H A Duprobes.c1245 void uprobe_dup_mmap(struct mm_struct *oldmm, struct mm_struct *newmm) uprobe_dup_mmap() argument
1249 if (test_bit(MMF_HAS_UPROBES, &oldmm->flags)) { uprobe_dup_mmap()
/linux-4.1.27/kernel/sched/
H A Dcore.c2303 struct mm_struct *mm, *oldmm; context_switch() local
2308 oldmm = prev->active_mm; context_switch()
2317 next->active_mm = oldmm; context_switch()
2318 atomic_inc(&oldmm->mm_count); context_switch()
2319 enter_lazy_tlb(oldmm, next); context_switch()
2321 switch_mm(oldmm, mm, next); context_switch()
2325 rq->prev_mm = oldmm; context_switch()
/linux-4.1.27/arch/x86/xen/
H A Dmmu.c992 static void xen_dup_mmap(struct mm_struct *oldmm, struct mm_struct *mm) xen_dup_mmap() argument

Completed in 187 milliseconds