active_mm 56 arch/alpha/include/asm/cacheflush.h if (current->active_mm == mm) active_mm 194 arch/alpha/include/asm/mmu_context.h struct mm_struct * mm = current->active_mm; \ active_mm 85 arch/alpha/include/asm/tlbflush.h flush_tlb_current(current->active_mm); active_mm 110 arch/alpha/include/asm/tlbflush.h if (mm == current->active_mm) active_mm 122 arch/alpha/include/asm/tlbflush.h if (mm == current->active_mm) active_mm 149 arch/alpha/kernel/smp.c current->active_mm = &init_mm; active_mm 169 arch/alpha/kernel/smp.c cpuid, current, current->active_mm)); active_mm 641 arch/alpha/kernel/smp.c if (mm == current->active_mm && !asn_locked()) active_mm 652 arch/alpha/kernel/smp.c if (mm == current->active_mm) { active_mm 685 arch/alpha/kernel/smp.c if (mm == current->active_mm && !asn_locked()) active_mm 699 arch/alpha/kernel/smp.c if (mm == current->active_mm) { active_mm 736 arch/alpha/kernel/smp.c if (mm == current->active_mm && !asn_locked()) active_mm 753 arch/alpha/kernel/smp.c if (mm == current->active_mm) { active_mm 243 arch/alpha/mm/fault.c pgd = current->active_mm->pgd + index; active_mm 35 arch/arc/kernel/asm-offsets.c DEFINE(TASK_ACT_MM, offsetof(struct task_struct, active_mm)); active_mm 176 arch/arc/kernel/smp.c current->active_mm = mm; active_mm 87 arch/arc/kernel/troubleshoot.c struct mm_struct *active_mm = current->active_mm; active_mm 92 arch/arc/kernel/troubleshoot.c down_read(&active_mm->mmap_sem); active_mm 93 arch/arc/kernel/troubleshoot.c vma = find_vma(active_mm, address); active_mm 115 arch/arc/kernel/troubleshoot.c up_read(&active_mm->mmap_sem); active_mm 36 arch/arc/mm/fault.c pgd = pgd_offset_fast(current->active_mm, address); active_mm 547 arch/arc/mm/tlb.c if (current->active_mm != vma->vm_mm) active_mm 49 arch/arm/kernel/asm-offsets.c DEFINE(TSK_ACTIVE_MM, offsetof(struct task_struct, active_mm)); active_mm 406 arch/arm/kernel/smp.c current->active_mm = mm; active_mm 22 arch/arm/kernel/suspend.c struct mm_struct *mm = current->active_mm; active_mm 248 arch/arm/mach-rpc/ecard.c struct mm_struct *active_mm = current->active_mm; active_mm 254 arch/arm/mach-rpc/ecard.c current->active_mm = mm; active_mm 255 arch/arm/mach-rpc/ecard.c activate_mm(active_mm, mm); active_mm 256 arch/arm/mach-rpc/ecard.c mmdrop(active_mm); active_mm 169 arch/arm/mm/fault.c struct mm_struct *mm = tsk->active_mm; active_mm 239 arch/arm/mm/flush.c struct mm_struct *mm = current->active_mm; active_mm 639 arch/arm/mm/init.c set_section_perms(perms, n, true, current->active_mm); active_mm 675 arch/arm/mm/init.c current->active_mm); active_mm 684 arch/arm/mm/init.c current->active_mm); active_mm 181 arch/arm/mm/ioremap.c if (current->active_mm->context.vmalloc_seq != init_mm.context.vmalloc_seq) active_mm 182 arch/arm/mm/ioremap.c __check_vmalloc_seq(current->active_mm); active_mm 141 arch/arm64/include/asm/efi.h if (mm != current->active_mm) { active_mm 159 arch/arm64/include/asm/efi.h update_saved_ttbr0(current, current->active_mm); active_mm 115 arch/arm64/include/asm/mmu_context.h struct mm_struct *mm = current->active_mm; active_mm 255 arch/arm64/include/asm/pgtable.h if (mm != current->active_mm && atomic_read(&mm->mm_users) <= 1) active_mm 29 arch/arm64/kernel/asm-offsets.c DEFINE(TSK_ACTIVE_MM, offsetof(struct task_struct, active_mm)); active_mm 207 arch/arm64/kernel/smp.c current->active_mm = mm; active_mm 136 arch/arm64/mm/fault.c mm = current->active_mm; active_mm 18 arch/csky/kernel/asm-offsets.c DEFINE(TASK_ACTIVE_MM, offsetof(struct task_struct, active_mm)); active_mm 229 arch/csky/kernel/smp.c current->active_mm = mm; active_mm 31 arch/h8300/kernel/asm-offsets.c OFFSET(TASK_ACTIVE_MM, task_struct, active_mm); active_mm 79 arch/hexagon/include/asm/pgalloc.h current->active_mm->context.generation = kmap_generation; active_mm 89 arch/hexagon/include/asm/pgalloc.h ppmd = (pmd_t *)current->active_mm->pgd + pmdindex; active_mm 154 arch/hexagon/kernel/smp.c current->active_mm = &init_mm; active_mm 30 arch/hexagon/mm/vm_tlb.c if (mm->context.ptbase == current->active_mm->context.ptbase) active_mm 59 arch/hexagon/mm/vm_tlb.c if (current->active_mm->context.ptbase == mm->context.ptbase) active_mm 70 arch/hexagon/mm/vm_tlb.c if (mm->context.ptbase == current->active_mm->context.ptbase) active_mm 67 arch/ia64/include/asm/tlbflush.h if (mm == current->active_mm) active_mm 106 arch/ia64/include/asm/tlbflush.h if (vma->vm_mm == current->active_mm) active_mm 1023 arch/ia64/kernel/setup.c current->active_mm = &init_mm; active_mm 298 arch/ia64/kernel/smp.c if (likely(mm == current->active_mm && atomic_read(&mm->mm_users) == 1)) active_mm 253 arch/ia64/mm/tlb.c struct mm_struct *active_mm = current->active_mm; active_mm 257 arch/ia64/mm/tlb.c if (mm != active_mm) { active_mm 259 arch/ia64/mm/tlb.c if (mm && active_mm) { active_mm 282 arch/ia64/mm/tlb.c if (mm != active_mm) { active_mm 283 arch/ia64/mm/tlb.c activate_context(active_mm); active_mm 320 arch/ia64/mm/tlb.c if (mm != current->active_mm) { active_mm 336 arch/ia64/mm/tlb.c if (mm != current->active_mm || cpumask_weight(mm_cpumask(mm)) != 1) { active_mm 86 arch/m68k/include/asm/mmu_context.h static inline void activate_mm(struct mm_struct *active_mm, active_mm 81 arch/m68k/include/asm/tlbflush.h if (mm == current->active_mm) active_mm 87 arch/m68k/include/asm/tlbflush.h if (vma->vm_mm == current->active_mm) { active_mm 98 arch/m68k/include/asm/tlbflush.h if (vma->vm_mm == current->active_mm) active_mm 132 arch/microblaze/include/asm/mmu_context_mm.h static inline void activate_mm(struct mm_struct *active_mm, active_mm 79 arch/microblaze/kernel/asm-offsets.c DEFINE(TASK_ACTIVE_MM, offsetof(struct task_struct, active_mm)); active_mm 2218 arch/mips/kernel/traps.c current->active_mm = &init_mm; active_mm 643 arch/mips/kvm/tlb.c cpumask_clear_cpu(cpu, mm_cpumask(current->active_mm)); active_mm 644 arch/mips/kvm/tlb.c current->active_mm = &init_mm; active_mm 658 arch/mips/kvm/tlb.c current->active_mm = current->mm; active_mm 678 arch/mips/mm/c-r4k.c if ((mm == current->active_mm) && (pte_val(*ptep) & _PAGE_VALID)) active_mm 702 arch/mips/mm/c-r4k.c if (vaddr && cpu_has_vtag_icache && mm == current->active_mm) { active_mm 203 arch/mips/mm/c-tx39.c if ((mm == current->active_mm) && (pte_val(*ptep) & _PAGE_VALID)) { active_mm 191 arch/mips/mm/tlb-r3k.c if (current->active_mm != vma->vm_mm) active_mm 306 arch/mips/mm/tlb-r4k.c if (current->active_mm != vma->vm_mm) active_mm 59 arch/nds32/mm/cacheflush.c if (vma->vm_mm == current->active_mm) { active_mm 307 arch/nds32/mm/cacheflush.c if (vma->vm_mm != current->active_mm) active_mm 75 arch/nios2/mm/cacheflush.c struct mm_struct *mm = current->active_mm; active_mm 46 arch/openrisc/kernel/asm-offsets.c DEFINE(TASK_ACTIVE_MM, offsetof(struct task_struct, active_mm)); active_mm 117 arch/openrisc/kernel/smp.c current->active_mm = mm; active_mm 58 arch/parisc/include/asm/tlbflush.h if (mm == current->active_mm) active_mm 281 arch/parisc/kernel/smp.c current->active_mm = &init_mm; active_mm 1237 arch/powerpc/kernel/smp.c current->active_mm = &init_mm; active_mm 31 arch/powerpc/kernel/swsusp.c switch_mmu_context(current->active_mm, current->active_mm, NULL); active_mm 645 arch/powerpc/mm/book3s64/radix_tlb.c if (current->active_mm == mm) { active_mm 652 arch/powerpc/mm/book3s64/radix_tlb.c current->active_mm = &init_mm; active_mm 176 arch/powerpc/mm/slice.c if (mm != current->active_mm) active_mm 179 arch/powerpc/mm/slice.c copy_mm_to_paca(current->active_mm); active_mm 170 arch/powerpc/platforms/powernv/smp.c current->active_mm = NULL; /* for sanity */ active_mm 3136 arch/powerpc/xmon/xmon.c mm = tsk->active_mm; active_mm 142 arch/riscv/kernel/smpboot.c current->active_mm = mm; active_mm 50 arch/riscv/mm/cacheflush.c if (mm != current->active_mm || !local) { active_mm 89 arch/s390/kernel/processor.c current->active_mm = &init_mm; active_mm 74 arch/s390/mm/pgalloc.c if (current->active_mm == mm) { active_mm 138 arch/s390/mm/pgalloc.c if (current->active_mm == mm) { active_mm 151 arch/s390/mm/pgalloc.c if (current->active_mm == mm) active_mm 181 arch/sh/kernel/smp.c current->active_mm = mm; active_mm 235 arch/sh/mm/cache-sh4.c if ((vma->vm_mm == current->active_mm)) active_mm 25 arch/sh/mm/tlb-pteaex.c if (vma && current->active_mm != vma->vm_mm) active_mm 35 arch/sh/mm/tlb-sh3.c if (vma && current->active_mm != vma->vm_mm) active_mm 23 arch/sh/mm/tlb-sh4.c if (vma && current->active_mm != vma->vm_mm) active_mm 32 arch/sparc/include/asm/mmu_context_32.h #define activate_mm(active_mm, mm) switch_mm((active_mm), (mm), NULL) active_mm 140 arch/sparc/include/asm/mmu_context_64.h #define activate_mm(active_mm, mm) switch_mm(active_mm, mm, NULL) active_mm 61 arch/sparc/include/asm/switch_to_32.h cpumask_set_cpu(smp_processor_id(), mm_cpumask(next->active_mm)); \ active_mm 98 arch/sparc/kernel/leon_smp.c current->active_mm = &init_mm; active_mm 131 arch/sparc/kernel/smp_64.c current->active_mm = &init_mm; active_mm 98 arch/sparc/kernel/sun4d_smp.c current->active_mm = &init_mm; active_mm 64 arch/sparc/kernel/sun4m_smp.c current->active_mm = &init_mm; active_mm 391 arch/sparc/kernel/traps_32.c current->active_mm = &init_mm; active_mm 2934 arch/sparc/kernel/traps_64.c current->active_mm = &init_mm; active_mm 228 arch/sparc/kernel/unaligned_32.c current->active_mm->context)); active_mm 231 arch/sparc/kernel/unaligned_32.c (unsigned long) current->active_mm->pgd)); active_mm 280 arch/sparc/kernel/unaligned_64.c CTX_HWBITS(current->active_mm->context))); active_mm 283 arch/sparc/kernel/unaligned_64.c (unsigned long) current->active_mm->pgd)); active_mm 51 arch/sparc/mm/fault_32.c (tsk->mm ? tsk->mm->context : tsk->active_mm->context)); active_mm 54 arch/sparc/mm/fault_32.c (unsigned long) tsk->active_mm->pgd)); active_mm 356 arch/sparc/mm/fault_32.c pgd = tsk->active_mm->pgd + offset; active_mm 55 arch/sparc/mm/fault_64.c CTX_HWBITS(tsk->active_mm->context))); active_mm 58 arch/sparc/mm/fault_64.c (unsigned long) tsk->active_mm->pgd)); active_mm 1693 arch/sparc/mm/srmmu.c if (atomic_read(&mm->mm_users) == 1 && current->active_mm == mm) active_mm 37 arch/sparc/power/hibernate.c struct mm_struct *mm = current->active_mm; active_mm 36 arch/unicore32/kernel/asm-offsets.c DEFINE(TSK_ACTIVE_MM, offsetof(struct task_struct, active_mm)); active_mm 130 arch/unicore32/mm/fault.c struct mm_struct *mm = tsk->active_mm; active_mm 460 arch/unicore32/mm/mmu.c pgd = current->active_mm->pgd; active_mm 2407 arch/x86/events/core.c ldt = READ_ONCE(current->active_mm->context.ldt); active_mm 1921 arch/x86/kernel/cpu/common.c me->active_mm = &init_mm; active_mm 1973 arch/x86/kernel/cpu/common.c curr->active_mm = &init_mm; active_mm 586 arch/x86/lib/insn-eval.c mutex_lock(¤t->active_mm->context.lock); active_mm 587 arch/x86/lib/insn-eval.c ldt = current->active_mm->context.ldt; active_mm 593 arch/x86/lib/insn-eval.c mutex_unlock(¤t->active_mm->context.lock); active_mm 630 arch/x86/platform/efi/efi_64.c efi_scratch.prev_mm = current->active_mm; active_mm 631 arch/x86/platform/efi/efi_64.c current->active_mm = mm; active_mm 177 arch/x86/power/cpu.c load_mm_ldt(current->active_mm); /* This does lldt */ active_mm 75 arch/xtensa/kernel/asm-offsets.c DEFINE(TASK_ACTIVE_MM, offsetof (struct task_struct, active_mm)); active_mm 148 arch/xtensa/kernel/smp.c current->active_mm = mm; active_mm 197 arch/xtensa/mm/fault.c struct mm_struct *act_mm = current->active_mm; active_mm 67 arch/xtensa/mm/tlb.c if (mm == current->active_mm) { active_mm 176 arch/xtensa/mm/tlb.c mm = task->active_mm; active_mm 299 drivers/cpufreq/pmac32-cpufreq.c switch_mmu_context(NULL, current->active_mm, NULL); active_mm 157 drivers/firmware/efi/arm-runtime.c efi_set_pgd(current->active_mm); active_mm 1934 drivers/macintosh/via-pmu.c switch_mmu_context(NULL, current->active_mm, NULL); active_mm 2023 drivers/macintosh/via-pmu.c switch_mmu_context(NULL, current->active_mm, NULL); active_mm 1013 fs/exec.c struct mm_struct *old_mm, *active_mm; active_mm 1035 fs/exec.c active_mm = tsk->active_mm; active_mm 1038 fs/exec.c tsk->active_mm = mm; active_mm 1039 fs/exec.c activate_mm(active_mm, mm); active_mm 1045 fs/exec.c BUG_ON(active_mm != old_mm); active_mm 1051 fs/exec.c mmdrop(active_mm); active_mm 728 include/linux/sched.h struct mm_struct *active_mm; active_mm 77 init/init_task.c .active_mm = &init_mm, active_mm 477 kernel/exit.c BUG_ON(mm != current->active_mm); active_mm 689 kernel/fork.c WARN_ON_ONCE(mm == current->active_mm); active_mm 1392 kernel/fork.c tsk->active_mm = NULL; active_mm 1419 kernel/fork.c tsk->active_mm = mm; active_mm 3349 kernel/sched/core.c enter_lazy_tlb(prev->active_mm, next); active_mm 3351 kernel/sched/core.c next->active_mm = prev->active_mm; active_mm 3353 kernel/sched/core.c mmgrab(prev->active_mm); active_mm 3355 kernel/sched/core.c prev->active_mm = NULL; active_mm 3357 kernel/sched/core.c membarrier_switch_mm(rq, prev->active_mm, next->mm); active_mm 3366 kernel/sched/core.c switch_mm_irqs_off(prev->active_mm, next->mm, next); active_mm 3370 kernel/sched/core.c rq->prev_mm = prev->active_mm; active_mm 3371 kernel/sched/core.c prev->active_mm = NULL; active_mm 6177 kernel/sched/core.c struct mm_struct *mm = current->active_mm; active_mm 6183 kernel/sched/core.c current->active_mm = &init_mm; active_mm 24 mm/mmu_context.c struct mm_struct *active_mm; active_mm 28 mm/mmu_context.c active_mm = tsk->active_mm; active_mm 29 mm/mmu_context.c if (active_mm != mm) { active_mm 31 mm/mmu_context.c tsk->active_mm = mm; active_mm 34 mm/mmu_context.c switch_mm(active_mm, mm, tsk); active_mm 40 mm/mmu_context.c if (active_mm != mm) active_mm 41 mm/mmu_context.c mmdrop(active_mm);