Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/gpu/drm/i915/gt/
Dintel_tlb.c134 mutex_lock(&gt->tlb.invalidate_lock); in intel_gt_invalidate_tlb_full()
142 mutex_unlock(&gt->tlb.invalidate_lock); in intel_gt_invalidate_tlb_full()
148 mutex_init(&gt->tlb.invalidate_lock); in intel_gt_init_tlb()
149 seqcount_mutex_init(&gt->tlb.seqno, &gt->tlb.invalidate_lock); in intel_gt_init_tlb()
154 mutex_destroy(&gt->tlb.invalidate_lock); in intel_gt_fini_tlb()
Dintel_gt_types.h111 struct mutex invalidate_lock; member
/linux-6.6.21/arch/powerpc/sysdev/
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.6.21/fs/xfs/
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.6.21/Documentation/filesystems/
Dlocking.rst276 ops folio locked i_rwsem invalidate_lock
378 invalidate_lock before invalidating page cache in truncate / hole punch
593 cache contents from the disk. Since VFS acquires mapping->invalidate_lock in
595 readahead paths), the fallocate implementation must take the invalidate_lock to
602 operation, the filesystem must take mapping->invalidate_lock to coordinate
668 truncated and/or invalidated, then the filesystem must lock invalidate_lock,
669 then ensure the page is not already truncated (invalidate_lock will block
693 mapping->invalidate_lock is suitable for proper serialization. If the page has
Dxfs-online-fsck-design.rst3337 4. Inode ``MMAPLOCK`` (page cache ``invalidate_lock``) lock for operations that
/linux-6.6.21/drivers/gpu/drm/amd/amdgpu/
Dgmc_v11_0.c209 spin_lock(&adev->gmc.invalidate_lock); in gmc_v11_0_flush_vm_hub()
267 spin_unlock(&adev->gmc.invalidate_lock); in gmc_v11_0_flush_vm_hub()
769 spin_lock_init(&adev->gmc.invalidate_lock); in gmc_v11_0_sw_init()
Dgmc_v10_0.c248 spin_lock(&adev->gmc.invalidate_lock); in gmc_v10_0_flush_vm_hub()
306 spin_unlock(&adev->gmc.invalidate_lock); in gmc_v10_0_flush_vm_hub()
878 spin_lock_init(&adev->gmc.invalidate_lock); in gmc_v10_0_sw_init()
Damdgpu_gmc.h274 spinlock_t invalidate_lock; member
Dgmc_v9_0.c859 spin_lock(&adev->gmc.invalidate_lock); in gmc_v9_0_flush_gpu_tlb()
927 spin_unlock(&adev->gmc.invalidate_lock); in gmc_v9_0_flush_gpu_tlb()
2024 spin_lock_init(&adev->gmc.invalidate_lock); in gmc_v9_0_sw_init()
/linux-6.6.21/include/linux/
Dfs.h475 struct rw_semaphore invalidate_lock; member
849 down_write(&mapping->invalidate_lock); in filemap_invalidate_lock()
854 up_write(&mapping->invalidate_lock); in filemap_invalidate_unlock()
859 down_read(&mapping->invalidate_lock); in filemap_invalidate_lock_shared()
865 return down_read_trylock(&mapping->invalidate_lock); in filemap_invalidate_trylock_shared()
871 up_read(&mapping->invalidate_lock); in filemap_invalidate_unlock_shared()
/linux-6.6.21/mm/
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.6.21/fs/
Dinode.c214 init_rwsem(&mapping->invalidate_lock); in inode_init_always()
215 lockdep_set_class_and_name(&mapping->invalidate_lock, in inode_init_always()
/linux-6.6.21/drivers/md/
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.6.21/fs/ext2/
Dinode.c1179 WARN_ON(!rwsem_is_locked(&inode->i_mapping->invalidate_lock)); in __ext2_truncate_blocks()
/linux-6.6.21/fs/btrfs/
Dfree-space-cache.c1012 lockdep_set_class(&(&inode->i_data)->invalidate_lock, in load_free_space_cache()
/linux-6.6.21/fs/ext4/
Dinode.c3875 if (WARN_ON_ONCE(!rwsem_is_locked(&inode->i_mapping->invalidate_lock))) in ext4_break_layouts()