Home
last modified time | relevance | path

Searched refs:oldmm (Results 1 – 12 of 12) sorted by relevance

/linux-3.4.99/include/linux/
Dkhugepaged.h25 static inline int khugepaged_fork(struct mm_struct *mm, struct mm_struct *oldmm) in khugepaged_fork() argument
27 if (test_bit(MMF_VM_HUGEPAGE, &oldmm->flags)) in khugepaged_fork()
50 static inline int khugepaged_fork(struct mm_struct *mm, struct mm_struct *oldmm) in khugepaged_fork() argument
Dksm.h28 static inline int ksm_fork(struct mm_struct *mm, struct mm_struct *oldmm) in ksm_fork() argument
30 if (test_bit(MMF_VM_MERGEABLE, &oldmm->flags)) in ksm_fork()
95 static inline int ksm_fork(struct mm_struct *mm, struct mm_struct *oldmm) in ksm_fork() argument
/linux-3.4.99/kernel/
Dfork.c313 static int dup_mmap(struct mm_struct *mm, struct mm_struct *oldmm) in dup_mmap() argument
321 down_write(&oldmm->mmap_sem); in dup_mmap()
322 flush_cache_dup_mm(oldmm); in dup_mmap()
331 mm->free_area_cache = oldmm->mmap_base; in dup_mmap()
339 retval = ksm_fork(mm, oldmm); in dup_mmap()
342 retval = khugepaged_fork(mm, oldmm); in dup_mmap()
347 for (mpnt = oldmm->mmap; mpnt; mpnt = mpnt->vm_next) { in dup_mmap()
361 if (security_vm_enough_memory_mm(oldmm, len)) /* sic */ in dup_mmap()
419 retval = copy_page_range(mm, oldmm, mpnt); in dup_mmap()
428 arch_dup_mmap(oldmm, mm); in dup_mmap()
[all …]
/linux-3.4.99/arch/s390/include/asm/
Dmmu_context.h95 static inline void arch_dup_mmap(struct mm_struct *oldmm, in arch_dup_mmap() argument
99 if (oldmm->context.asce_limit < mm->context.asce_limit) in arch_dup_mmap()
100 crst_table_downgrade(mm, oldmm->context.asce_limit); in arch_dup_mmap()
/linux-3.4.99/drivers/oprofile/
Dbuffer_sync.c503 struct mm_struct *oldmm; in sync_buffer() local
544 oldmm = mm; in sync_buffer()
545 release_mm(oldmm); in sync_buffer()
547 if (mm != oldmm) in sync_buffer()
/linux-3.4.99/include/asm-generic/
Dmm_hooks.h9 static inline void arch_dup_mmap(struct mm_struct *oldmm, in arch_dup_mmap() argument
/linux-3.4.99/arch/um/include/asm/
Dmmu_context.h44 static inline void arch_dup_mmap(struct mm_struct *oldmm, struct mm_struct *mm) in arch_dup_mmap() argument
/linux-3.4.99/arch/unicore32/include/asm/
Dmmu_context.h82 static inline void arch_dup_mmap(struct mm_struct *oldmm, in arch_dup_mmap() argument
/linux-3.4.99/arch/x86/include/asm/
Dparavirt.h374 static inline void arch_dup_mmap(struct mm_struct *oldmm, in arch_dup_mmap() argument
377 PVOP_VCALL2(pv_mmu_ops.dup_mmap, oldmm, mm); in arch_dup_mmap()
Dparavirt_types.h243 void (*dup_mmap)(struct mm_struct *oldmm,
/linux-3.4.99/kernel/sched/
Dcore.c2052 struct mm_struct *mm, *oldmm; in context_switch() local
2057 oldmm = prev->active_mm; in context_switch()
2066 next->active_mm = oldmm; in context_switch()
2067 atomic_inc(&oldmm->mm_count); in context_switch()
2068 enter_lazy_tlb(oldmm, next); in context_switch()
2070 switch_mm(oldmm, mm, next); in context_switch()
2074 rq->prev_mm = oldmm; in context_switch()
/linux-3.4.99/arch/x86/xen/
Dmmu.c1063 static void xen_dup_mmap(struct mm_struct *oldmm, struct mm_struct *mm) in xen_dup_mmap() argument