Home
last modified time | relevance | path

Searched refs:XFS_IOLOCK_EXCL (Results 1 – 14 of 14) sorted by relevance

/linux-6.6.21/fs/xfs/
Dxfs_pnfs.c41 *iolock |= XFS_IOLOCK_EXCL; in xfs_break_leased_layouts()
155 xfs_ilock(ip, XFS_IOLOCK_EXCL); in xfs_fs_map_blocks()
212 xfs_iunlock(ip, XFS_IOLOCK_EXCL); in xfs_fs_map_blocks()
218 xfs_iunlock(ip, XFS_IOLOCK_EXCL); in xfs_fs_map_blocks()
274 xfs_ilock(ip, XFS_IOLOCK_EXCL); in xfs_fs_commit_blocks()
335 xfs_iunlock(ip, XFS_IOLOCK_EXCL); in xfs_fs_commit_blocks()
Dxfs_file.c229 if (*lock_mode == XFS_IOLOCK_EXCL) in xfs_ilock_iocb_for_write()
235 *lock_mode = XFS_IOLOCK_EXCL; in xfs_ilock_iocb_for_write()
417 *iolock = XFS_IOLOCK_EXCL; in xfs_file_write_checks()
460 *iolock = XFS_IOLOCK_EXCL; in xfs_file_write_checks()
603 if (iolock == XFS_IOLOCK_EXCL) { in xfs_file_dio_write_aligned()
604 xfs_ilock_demote(ip, XFS_IOLOCK_EXCL); in xfs_file_dio_write_aligned()
654 iolock = XFS_IOLOCK_EXCL; in xfs_file_dio_write_unaligned()
730 unsigned int iolock = XFS_IOLOCK_EXCL; in xfs_file_dax_write()
776 iolock = XFS_IOLOCK_EXCL; in xfs_file_buffered_write()
903 ASSERT(xfs_isilocked(XFS_I(inode), XFS_IOLOCK_SHARED|XFS_IOLOCK_EXCL)); in xfs_break_layouts()
[all …]
Dxfs_inode.c145 ASSERT((lock_flags & (XFS_IOLOCK_SHARED | XFS_IOLOCK_EXCL)) != in xfs_lock_flags_assert()
146 (XFS_IOLOCK_SHARED | XFS_IOLOCK_EXCL)); in xfs_lock_flags_assert()
194 if (lock_flags & XFS_IOLOCK_EXCL) { in xfs_ilock()
237 if (lock_flags & XFS_IOLOCK_EXCL) { in xfs_ilock_nowait()
268 if (lock_flags & XFS_IOLOCK_EXCL) in xfs_ilock_nowait()
295 if (lock_flags & XFS_IOLOCK_EXCL) in xfs_iunlock()
322 ASSERT(lock_flags & (XFS_IOLOCK_EXCL|XFS_MMAPLOCK_EXCL|XFS_ILOCK_EXCL)); in xfs_ilock_demote()
324 ~(XFS_IOLOCK_EXCL|XFS_MMAPLOCK_EXCL|XFS_ILOCK_EXCL)) == 0); in xfs_ilock_demote()
330 if (lock_flags & XFS_IOLOCK_EXCL) in xfs_ilock_demote()
373 if (lock_flags & (XFS_IOLOCK_EXCL | XFS_IOLOCK_SHARED)) { in xfs_isilocked()
[all …]
Dxfs_inode.h379 #define XFS_IOLOCK_EXCL (1u << 0) macro
386 #define XFS_LOCK_MASK (XFS_IOLOCK_EXCL | XFS_IOLOCK_SHARED \
391 { XFS_IOLOCK_EXCL, "IOLOCK_EXCL" }, \
Dxfs_qm_syscalls.c69 xfs_ilock(ip, XFS_IOLOCK_EXCL); in xfs_qm_scall_trunc_qfile()
73 xfs_iunlock(ip, XFS_IOLOCK_EXCL); in xfs_qm_scall_trunc_qfile()
95 xfs_iunlock(ip, XFS_ILOCK_EXCL | XFS_IOLOCK_EXCL); in xfs_qm_scall_trunc_qfile()
Dxfs_icache.c748 ASSERT((lock_flags & (XFS_IOLOCK_EXCL | XFS_IOLOCK_SHARED)) == 0); in xfs_iget()
1145 if (!xfs_ilock_nowait(ip, XFS_IOLOCK_EXCL)) { in xfs_inode_free_eofblocks()
1150 *lockflags |= XFS_IOLOCK_EXCL; in xfs_inode_free_eofblocks()
1304 if (!(*lockflags & XFS_IOLOCK_EXCL) && in xfs_inode_free_cowblocks()
1305 !xfs_ilock_nowait(ip, XFS_IOLOCK_EXCL)) { in xfs_inode_free_cowblocks()
1310 *lockflags |= XFS_IOLOCK_EXCL; in xfs_inode_free_cowblocks()
Dxfs_bmap_util.c658 ASSERT(xfs_isilocked(ip, XFS_IOLOCK_EXCL) || in xfs_can_free_eofblocks()
1117 ASSERT(xfs_isilocked(ip, XFS_IOLOCK_EXCL)); in xfs_collapse_file_space()
1187 ASSERT(xfs_isilocked(ip, XFS_IOLOCK_EXCL)); in xfs_insert_file_space()
Dxfs_dir2_readdir.c524 ASSERT(xfs_isilocked(dp, XFS_IOLOCK_SHARED | XFS_IOLOCK_EXCL)); in xfs_readdir()
Dxfs_iops.c799 ASSERT(xfs_isilocked(ip, XFS_IOLOCK_EXCL)); in xfs_setattr_size()
1013 iolock = XFS_IOLOCK_EXCL | XFS_MMAPLOCK_EXCL; in xfs_vn_setattr()
Dxfs_reflink.c1546 xfs_ilock_demote(src, XFS_IOLOCK_EXCL | XFS_MMAPLOCK_EXCL); in xfs_reflink_remap_prep()
/linux-6.6.21/fs/xfs/scrub/
Dinode.c35 xchk_ilock(sc, XFS_IOLOCK_EXCL); in xchk_prepare_iscrub()
Dbmap.c41 xchk_ilock(sc, XFS_IOLOCK_EXCL); in xchk_setup_inode_bmap()
Dcommon.c1025 xchk_ilock(sc, XFS_IOLOCK_EXCL); in xchk_setup_inode_contents()
/linux-6.6.21/fs/xfs/libxfs/
Dxfs_bmap.c5638 ASSERT(xfs_isilocked(ip, XFS_IOLOCK_EXCL)); in xfs_bmse_merge()
5767 ASSERT(xfs_isilocked(ip, XFS_IOLOCK_EXCL | XFS_ILOCK_EXCL)); in xfs_bmap_collapse_extents()
5840 ASSERT(xfs_isilocked(ip, XFS_IOLOCK_EXCL)); in xfs_bmap_can_insert_extents()
5882 ASSERT(xfs_isilocked(ip, XFS_IOLOCK_EXCL | XFS_ILOCK_EXCL)); in xfs_bmap_insert_extents()