Home
last modified time | relevance | path

Searched refs:invalidate_lock (Results 1 – 16 of 16) sorted by relevance

/linux-6.3-rc2/arch/powerpc/sysdev/
A Ddart_iommu.c57 static DEFINE_SPINLOCK(invalidate_lock);
66 spin_lock_irqsave(&invalidate_lock, flags); in dart_tlb_invalidate_all()
100 spin_unlock_irqrestore(&invalidate_lock, flags); in dart_tlb_invalidate_all()
109 spin_lock_irqsave(&invalidate_lock, flags); in dart_tlb_invalidate_one()
132 spin_unlock_irqrestore(&invalidate_lock, flags); in dart_tlb_invalidate_one()
/linux-6.3-rc2/drivers/gpu/drm/i915/gt/
A Dintel_gt.c54 mutex_init(&gt->tlb.invalidate_lock); in intel_gt_common_init_early()
55 seqcount_mutex_init(&gt->tlb.seqno, &gt->tlb.invalidate_lock); in intel_gt_common_init_early()
827 mutex_destroy(&gt->tlb.invalidate_lock); in intel_gt_driver_late_release_all()
1197 mutex_lock(&gt->tlb.invalidate_lock); in intel_gt_invalidate_tlb()
1205 mutex_unlock(&gt->tlb.invalidate_lock); in intel_gt_invalidate_tlb()
A Dintel_gt_types.h108 struct mutex invalidate_lock; member
/linux-6.3-rc2/fs/xfs/
A Dxfs_inode.c203 down_write_nested(&VFS_I(ip)->i_mapping->invalidate_lock, in xfs_ilock()
206 down_read_nested(&VFS_I(ip)->i_mapping->invalidate_lock, in xfs_ilock()
246 if (!down_write_trylock(&VFS_I(ip)->i_mapping->invalidate_lock)) in xfs_ilock_nowait()
249 if (!down_read_trylock(&VFS_I(ip)->i_mapping->invalidate_lock)) in xfs_ilock_nowait()
264 up_write(&VFS_I(ip)->i_mapping->invalidate_lock); in xfs_ilock_nowait()
266 up_read(&VFS_I(ip)->i_mapping->invalidate_lock); in xfs_ilock_nowait()
301 up_write(&VFS_I(ip)->i_mapping->invalidate_lock); in xfs_iunlock()
303 up_read(&VFS_I(ip)->i_mapping->invalidate_lock); in xfs_iunlock()
329 downgrade_write(&VFS_I(ip)->i_mapping->invalidate_lock); in xfs_ilock_demote()
369 return __xfs_rwsem_islocked(&VFS_I(ip)->i_mapping->invalidate_lock, in xfs_isilocked()
/linux-6.3-rc2/Documentation/filesystems/
A Dlocking.rst271 ops folio locked i_rwsem invalidate_lock
373 invalidate_lock before invalidating page cache in truncate / hole punch
585 cache contents from the disk. Since VFS acquires mapping->invalidate_lock in
587 readahead paths), the fallocate implementation must take the invalidate_lock to
594 operation, the filesystem must take mapping->invalidate_lock to coordinate
657 truncated and/or invalidated, then the filesystem must lock invalidate_lock,
658 then ensure the page is not already truncated (invalidate_lock will block
675 mapping->invalidate_lock is suitable for proper serialization. If the page has
/linux-6.3-rc2/drivers/gpu/drm/amd/amdgpu/
A Dgmc_v11_0.c206 spin_lock(&adev->gmc.invalidate_lock); in gmc_v11_0_flush_vm_hub()
264 spin_unlock(&adev->gmc.invalidate_lock); in gmc_v11_0_flush_vm_hub()
761 spin_lock_init(&adev->gmc.invalidate_lock); in gmc_v11_0_sw_init()
A Dgmc_v10_0.c255 spin_lock(&adev->gmc.invalidate_lock); in gmc_v10_0_flush_vm_hub()
313 spin_unlock(&adev->gmc.invalidate_lock); in gmc_v10_0_flush_vm_hub()
905 spin_lock_init(&adev->gmc.invalidate_lock); in gmc_v10_0_sw_init()
A Damdgpu_gmc.h238 spinlock_t invalidate_lock; member
A Dgmc_v9_0.c818 spin_lock(&adev->gmc.invalidate_lock); in gmc_v9_0_flush_gpu_tlb()
888 spin_unlock(&adev->gmc.invalidate_lock); in gmc_v9_0_flush_gpu_tlb()
1650 spin_lock_init(&adev->gmc.invalidate_lock); in gmc_v9_0_sw_init()
/linux-6.3-rc2/include/linux/
A Dfs.h429 struct rw_semaphore invalidate_lock; member
803 down_write(&mapping->invalidate_lock); in filemap_invalidate_lock()
808 up_write(&mapping->invalidate_lock); in filemap_invalidate_unlock()
813 down_read(&mapping->invalidate_lock); in filemap_invalidate_lock_shared()
819 return down_read_trylock(&mapping->invalidate_lock); in filemap_invalidate_trylock_shared()
825 up_read(&mapping->invalidate_lock); in filemap_invalidate_unlock_shared()
/linux-6.3-rc2/mm/
A Dfilemap.c995 down_write(&mapping1->invalidate_lock); in filemap_invalidate_lock_two()
997 down_write_nested(&mapping2->invalidate_lock, 1); in filemap_invalidate_lock_two()
1013 up_write(&mapping1->invalidate_lock); in filemap_invalidate_unlock_two()
1015 up_write(&mapping2->invalidate_lock); in filemap_invalidate_unlock_two()
/linux-6.3-rc2/fs/
A Dinode.c215 init_rwsem(&mapping->invalidate_lock); in inode_init_always()
216 lockdep_set_class_and_name(&mapping->invalidate_lock, in inode_init_always()
/linux-6.3-rc2/drivers/md/
A Ddm-cache-target.c1523 static int invalidate_lock(struct dm_cache_migration *mg) in invalidate_lock() function
1573 return invalidate_lock(mg); in invalidate_start()
/linux-6.3-rc2/fs/ext2/
A Dinode.c1160 WARN_ON(!rwsem_is_locked(&inode->i_mapping->invalidate_lock)); in __ext2_truncate_blocks()
/linux-6.3-rc2/fs/btrfs/
A Dfree-space-cache.c1026 lockdep_set_class(&(&inode->i_data)->invalidate_lock, in load_free_space_cache()
/linux-6.3-rc2/fs/ext4/
A Dinode.c4040 if (WARN_ON_ONCE(!rwsem_is_locked(&inode->i_mapping->invalidate_lock))) in ext4_break_layouts()

Completed in 110 milliseconds