diff --git a/include/linux/mm.h b/include/linux/mm.h index 4082f86f8f9f..a17bd3a6413f 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -780,6 +780,11 @@ static inline void vma_assert_write_locked(struct vm_area_struct *vma) static inline void vma_mark_detached(struct vm_area_struct *vma, bool detached) {} +static inline void vma_assert_locked(struct vm_area_struct *vma) +{ + mmap_assert_locked(vma->vm_mm); +} + static inline void release_fault_lock(struct vm_fault *vmf) { mmap_read_unlock(vmf->vma->vm_mm);