Home
last modified time | relevance | path

Searched refs:vma_lock (Results 1 – 4 of 4) sorted by relevance

/linux-6.1.9/mm/
Dhugetlb.c272 struct hugetlb_vma_lock *vma_lock = vma->vm_private_data; in hugetlb_vma_lock_read() local
274 down_read(&vma_lock->rw_sema); in hugetlb_vma_lock_read()
281 struct hugetlb_vma_lock *vma_lock = vma->vm_private_data; in hugetlb_vma_unlock_read() local
283 up_read(&vma_lock->rw_sema); in hugetlb_vma_unlock_read()
290 struct hugetlb_vma_lock *vma_lock = vma->vm_private_data; in hugetlb_vma_lock_write() local
292 down_write(&vma_lock->rw_sema); in hugetlb_vma_lock_write()
299 struct hugetlb_vma_lock *vma_lock = vma->vm_private_data; in hugetlb_vma_unlock_write() local
301 up_write(&vma_lock->rw_sema); in hugetlb_vma_unlock_write()
307 struct hugetlb_vma_lock *vma_lock = vma->vm_private_data; in hugetlb_vma_trylock_write() local
312 return down_write_trylock(&vma_lock->rw_sema); in hugetlb_vma_trylock_write()
[all …]
/linux-6.1.9/drivers/vfio/pci/
Dvfio_pci_core.c1551 if (!mutex_trylock(&vdev->vma_lock)) in vfio_pci_zap_and_vma_lock()
1554 mutex_lock(&vdev->vma_lock); in vfio_pci_zap_and_vma_lock()
1570 mutex_unlock(&vdev->vma_lock); in vfio_pci_zap_and_vma_lock()
1581 if (!mutex_trylock(&vdev->vma_lock)) { in vfio_pci_zap_and_vma_lock()
1587 mutex_lock(&vdev->vma_lock); in vfio_pci_zap_and_vma_lock()
1602 mutex_unlock(&vdev->vma_lock); in vfio_pci_zap_and_vma_lock()
1612 mutex_unlock(&vdev->vma_lock); in vfio_pci_zap_and_down_write_memory_lock()
1664 mutex_lock(&vdev->vma_lock); in vfio_pci_mmap_close()
1672 mutex_unlock(&vdev->vma_lock); in vfio_pci_mmap_close()
1682 mutex_lock(&vdev->vma_lock); in vfio_pci_mmap_fault()
[all …]
/linux-6.1.9/fs/hugetlbfs/
Dinode.c443 struct hugetlb_vma_lock *vma_lock; in hugetlb_unmap_file_folio() local
455 vma_lock = NULL; in hugetlb_unmap_file_folio()
464 vma_lock = vma->vm_private_data; in hugetlb_unmap_file_folio()
472 kref_get(&vma_lock->refs); in hugetlb_unmap_file_folio()
483 if (vma_lock) { in hugetlb_unmap_file_folio()
489 down_write(&vma_lock->rw_sema); in hugetlb_unmap_file_folio()
492 vma = vma_lock->vma; in hugetlb_unmap_file_folio()
499 up_write(&vma_lock->rw_sema); in hugetlb_unmap_file_folio()
500 kref_put(&vma_lock->refs, hugetlb_vma_lock_release); in hugetlb_unmap_file_folio()
515 kref_put(&vma_lock->refs, hugetlb_vma_lock_release); in hugetlb_unmap_file_folio()
/linux-6.1.9/include/linux/
Dvfio_pci_core.h96 struct mutex vma_lock; member