Home
last modified time | relevance | path

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

/Linux-v6.6/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.c380 *iolock = XFS_IOLOCK_EXCL; in xfs_file_write_checks()
423 *iolock = XFS_IOLOCK_EXCL; in xfs_file_write_checks()
566 if (iolock == XFS_IOLOCK_EXCL) { in xfs_file_dio_write_aligned()
567 xfs_ilock_demote(ip, XFS_IOLOCK_EXCL); in xfs_file_dio_write_aligned()
617 iolock = XFS_IOLOCK_EXCL; in xfs_file_dio_write_unaligned()
693 unsigned int iolock = XFS_IOLOCK_EXCL; in xfs_file_dax_write()
739 iolock = XFS_IOLOCK_EXCL; in xfs_file_buffered_write()
866 ASSERT(xfs_isilocked(XFS_I(inode), XFS_IOLOCK_SHARED|XFS_IOLOCK_EXCL)); in xfs_break_layouts()
918 uint iolock = XFS_IOLOCK_EXCL | XFS_MMAPLOCK_EXCL; in xfs_file_fallocate()
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.h371 #define XFS_IOLOCK_EXCL (1u << 0) macro
378 #define XFS_LOCK_MASK (XFS_IOLOCK_EXCL | XFS_IOLOCK_SHARED \
383 { 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()
1115 ASSERT(xfs_isilocked(ip, XFS_IOLOCK_EXCL)); in xfs_collapse_file_space()
1185 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()
/Linux-v6.6/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-v6.6/fs/xfs/libxfs/
Dxfs_bmap.c5651 ASSERT(xfs_isilocked(ip, XFS_IOLOCK_EXCL)); in xfs_bmse_merge()
5780 ASSERT(xfs_isilocked(ip, XFS_IOLOCK_EXCL | XFS_ILOCK_EXCL)); in xfs_bmap_collapse_extents()
5853 ASSERT(xfs_isilocked(ip, XFS_IOLOCK_EXCL)); in xfs_bmap_can_insert_extents()
5895 ASSERT(xfs_isilocked(ip, XFS_IOLOCK_EXCL | XFS_ILOCK_EXCL)); in xfs_bmap_insert_extents()