• Home
  • Raw
  • Download

Lines Matching refs:vma

466 static bool vma_lock_alloc(struct vm_area_struct *vma)  in vma_lock_alloc()  argument
468 vma->vm_lock = kmem_cache_alloc(vma_lock_cachep, GFP_KERNEL); in vma_lock_alloc()
469 if (!vma->vm_lock) in vma_lock_alloc()
472 init_rwsem(&vma->vm_lock->lock); in vma_lock_alloc()
473 vma->vm_lock_seq = -1; in vma_lock_alloc()
478 static inline void vma_lock_free(struct vm_area_struct *vma) in vma_lock_free() argument
480 kmem_cache_free(vma_lock_cachep, vma->vm_lock); in vma_lock_free()
485 static inline bool vma_lock_alloc(struct vm_area_struct *vma) { return true; } in vma_lock_alloc() argument
486 static inline void vma_lock_free(struct vm_area_struct *vma) {} in vma_lock_free() argument
492 struct vm_area_struct *vma; in vm_area_alloc() local
494 vma = kmem_cache_alloc(vm_area_cachep, GFP_KERNEL); in vm_area_alloc()
495 if (!vma) in vm_area_alloc()
498 vma_init(vma, mm); in vm_area_alloc()
499 if (!vma_lock_alloc(vma)) { in vm_area_alloc()
500 kmem_cache_free(vm_area_cachep, vma); in vm_area_alloc()
504 return vma; in vm_area_alloc()
531 void __vm_area_free(struct vm_area_struct *vma) in __vm_area_free() argument
533 free_anon_vma_name(vma); in __vm_area_free()
534 vma_lock_free(vma); in __vm_area_free()
535 kmem_cache_free(vm_area_cachep, vma); in __vm_area_free()
541 struct vm_area_struct *vma = container_of(head, struct vm_area_struct, in vm_area_free_rcu_cb() local
545 VM_BUG_ON_VMA(rwsem_is_locked(&vma->vm_lock->lock), vma); in vm_area_free_rcu_cb()
546 __vm_area_free(vma); in vm_area_free_rcu_cb()
550 void vm_area_free(struct vm_area_struct *vma) in vm_area_free() argument
553 call_rcu(&vma->vm_rcu, vm_area_free_rcu_cb); in vm_area_free()
555 __vm_area_free(vma); in vm_area_free()
1395 struct vm_area_struct *vma; in replace_mm_exe_file() local
1404 for_each_vma(vmi, vma) { in replace_mm_exe_file()
1405 if (!vma->vm_file) in replace_mm_exe_file()
1407 if (path_equal(&vma->vm_file->f_path, in replace_mm_exe_file()