Home
last modified time | relevance | path

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

/linux-5.19.10/fs/xfs/
Dxfs_pnfs.c41 *iolock |= XFS_IOLOCK_EXCL; in xfs_break_leased_layouts()
154 xfs_ilock(ip, XFS_IOLOCK_EXCL); in xfs_fs_map_blocks()
210 xfs_iunlock(ip, XFS_IOLOCK_EXCL); in xfs_fs_map_blocks()
216 xfs_iunlock(ip, XFS_IOLOCK_EXCL); in xfs_fs_map_blocks()
272 xfs_ilock(ip, XFS_IOLOCK_EXCL); in xfs_fs_commit_blocks()
333 xfs_iunlock(ip, XFS_IOLOCK_EXCL); in xfs_fs_commit_blocks()
Dxfs_file.c345 *iolock = XFS_IOLOCK_EXCL; in xfs_file_write_checks()
388 *iolock = XFS_IOLOCK_EXCL; in xfs_file_write_checks()
531 if (iolock == XFS_IOLOCK_EXCL) { in xfs_file_dio_write_aligned()
532 xfs_ilock_demote(ip, XFS_IOLOCK_EXCL); in xfs_file_dio_write_aligned()
582 iolock = XFS_IOLOCK_EXCL; in xfs_file_dio_write_unaligned()
658 unsigned int iolock = XFS_IOLOCK_EXCL; in xfs_file_dax_write()
707 iolock = XFS_IOLOCK_EXCL; in xfs_file_buffered_write()
838 ASSERT(xfs_isilocked(XFS_I(inode), XFS_IOLOCK_SHARED|XFS_IOLOCK_EXCL)); in xfs_break_layouts()
890 uint iolock = XFS_IOLOCK_EXCL | XFS_MMAPLOCK_EXCL; in xfs_file_fallocate()
Dxfs_inode.c144 ASSERT((lock_flags & (XFS_IOLOCK_SHARED | XFS_IOLOCK_EXCL)) != in xfs_lock_flags_assert()
145 (XFS_IOLOCK_SHARED | XFS_IOLOCK_EXCL)); in xfs_lock_flags_assert()
193 if (lock_flags & XFS_IOLOCK_EXCL) { in xfs_ilock()
236 if (lock_flags & XFS_IOLOCK_EXCL) { in xfs_ilock_nowait()
267 if (lock_flags & XFS_IOLOCK_EXCL) in xfs_ilock_nowait()
294 if (lock_flags & XFS_IOLOCK_EXCL) in xfs_iunlock()
321 ASSERT(lock_flags & (XFS_IOLOCK_EXCL|XFS_MMAPLOCK_EXCL|XFS_ILOCK_EXCL)); in xfs_ilock_demote()
323 ~(XFS_IOLOCK_EXCL|XFS_MMAPLOCK_EXCL|XFS_ILOCK_EXCL)) == 0); in xfs_ilock_demote()
329 if (lock_flags & XFS_IOLOCK_EXCL) in xfs_ilock_demote()
372 if (lock_flags & (XFS_IOLOCK_EXCL | XFS_IOLOCK_SHARED)) { in xfs_isilocked()
[all …]
Dxfs_inode.h286 #define XFS_IOLOCK_EXCL (1u << 0) macro
293 #define XFS_LOCK_MASK (XFS_IOLOCK_EXCL | XFS_IOLOCK_SHARED \
298 { 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.c715 ASSERT((lock_flags & (XFS_IOLOCK_EXCL | XFS_IOLOCK_SHARED)) == 0); in xfs_iget()
1148 if (!xfs_ilock_nowait(ip, XFS_IOLOCK_EXCL)) { in xfs_inode_free_eofblocks()
1153 *lockflags |= XFS_IOLOCK_EXCL; in xfs_inode_free_eofblocks()
1307 if (!(*lockflags & XFS_IOLOCK_EXCL) && in xfs_inode_free_cowblocks()
1308 !xfs_ilock_nowait(ip, XFS_IOLOCK_EXCL)) { in xfs_inode_free_cowblocks()
1313 *lockflags |= XFS_IOLOCK_EXCL; in xfs_inode_free_cowblocks()
Dxfs_bmap_util.c655 ASSERT(xfs_isilocked(ip, XFS_IOLOCK_EXCL) || in xfs_can_free_eofblocks()
1112 ASSERT(xfs_isilocked(ip, XFS_IOLOCK_EXCL)); in xfs_collapse_file_space()
1182 ASSERT(xfs_isilocked(ip, XFS_IOLOCK_EXCL)); in xfs_insert_file_space()
Dxfs_iops.c780 ASSERT(xfs_isilocked(ip, XFS_IOLOCK_EXCL)); in xfs_setattr_size()
994 iolock = XFS_IOLOCK_EXCL | XFS_MMAPLOCK_EXCL; in xfs_vn_setattr()
Dxfs_dir2_readdir.c524 ASSERT(xfs_isilocked(dp, XFS_IOLOCK_SHARED | XFS_IOLOCK_EXCL)); in xfs_readdir()
/linux-5.19.10/fs/xfs/scrub/
Dparent.c220 error = xchk_ilock_inverted(sc->ip, XFS_IOLOCK_EXCL); in xchk_parent_validate()
223 sc->ilock_flags = XFS_IOLOCK_EXCL; in xchk_parent_validate()
Dinode.c51 sc->ilock_flags = XFS_IOLOCK_EXCL | XFS_MMAPLOCK_EXCL; in xchk_setup_inode()
Dcommon.c717 sc->ilock_flags = XFS_IOLOCK_EXCL | XFS_MMAPLOCK_EXCL; in xchk_setup_inode_contents()
Dbmap.c38 sc->ilock_flags = XFS_IOLOCK_EXCL | XFS_MMAPLOCK_EXCL; in xchk_setup_inode_bmap()
/linux-5.19.10/fs/xfs/libxfs/
Dxfs_bmap.c5640 ASSERT(xfs_isilocked(ip, XFS_IOLOCK_EXCL)); in xfs_bmse_merge()
5769 ASSERT(xfs_isilocked(ip, XFS_IOLOCK_EXCL | XFS_ILOCK_EXCL)); in xfs_bmap_collapse_extents()
5842 ASSERT(xfs_isilocked(ip, XFS_IOLOCK_EXCL)); in xfs_bmap_can_insert_extents()
5884 ASSERT(xfs_isilocked(ip, XFS_IOLOCK_EXCL | XFS_ILOCK_EXCL)); in xfs_bmap_insert_extents()