Searched refs:invalidate_lock (Results 1 – 17 of 17) sorted by relevance
/linux-6.6.21/drivers/gpu/drm/i915/gt/ |
D | intel_tlb.c | 134 mutex_lock(>->tlb.invalidate_lock); in intel_gt_invalidate_tlb_full() 142 mutex_unlock(>->tlb.invalidate_lock); in intel_gt_invalidate_tlb_full() 148 mutex_init(>->tlb.invalidate_lock); in intel_gt_init_tlb() 149 seqcount_mutex_init(>->tlb.seqno, >->tlb.invalidate_lock); in intel_gt_init_tlb() 154 mutex_destroy(>->tlb.invalidate_lock); in intel_gt_fini_tlb()
|
D | intel_gt_types.h | 111 struct mutex invalidate_lock; member
|
/linux-6.6.21/arch/powerpc/sysdev/ |
D | dart_iommu.c | 57 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/ |
D | xfs_inode.c | 203 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/ |
D | locking.rst | 276 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
|
D | xfs-online-fsck-design.rst | 3337 4. Inode ``MMAPLOCK`` (page cache ``invalidate_lock``) lock for operations that
|
/linux-6.6.21/drivers/gpu/drm/amd/amdgpu/ |
D | gmc_v11_0.c | 209 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()
|
D | gmc_v10_0.c | 248 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()
|
D | amdgpu_gmc.h | 274 spinlock_t invalidate_lock; member
|
D | gmc_v9_0.c | 859 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/ |
D | fs.h | 475 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/ |
D | filemap.c | 995 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/ |
D | inode.c | 214 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/ |
D | dm-cache-target.c | 1523 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/ |
D | inode.c | 1179 WARN_ON(!rwsem_is_locked(&inode->i_mapping->invalidate_lock)); in __ext2_truncate_blocks()
|
/linux-6.6.21/fs/btrfs/ |
D | free-space-cache.c | 1012 lockdep_set_class(&(&inode->i_data)->invalidate_lock, in load_free_space_cache()
|
/linux-6.6.21/fs/ext4/ |
D | inode.c | 3875 if (WARN_ON_ONCE(!rwsem_is_locked(&inode->i_mapping->invalidate_lock))) in ext4_break_layouts()
|