Home
last modified time | relevance | path

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

/Linux-v5.4/fs/xfs/
Dxfs_pnfs.c40 *iolock |= XFS_IOLOCK_EXCL; in xfs_break_leased_layouts()
120 xfs_ilock(ip, XFS_IOLOCK_EXCL); in xfs_fs_map_blocks()
179 xfs_iunlock(ip, XFS_IOLOCK_EXCL); in xfs_fs_map_blocks()
185 xfs_iunlock(ip, XFS_IOLOCK_EXCL); in xfs_fs_map_blocks()
241 xfs_ilock(ip, XFS_IOLOCK_EXCL); in xfs_fs_commit_blocks()
301 xfs_iunlock(ip, XFS_IOLOCK_EXCL); in xfs_fs_commit_blocks()
Dxfs_file.c309 *iolock = XFS_IOLOCK_EXCL; in xfs_file_aio_write_checks()
335 *iolock = XFS_IOLOCK_EXCL; in xfs_file_aio_write_checks()
515 iolock = XFS_IOLOCK_EXCL; in xfs_file_dio_aio_write()
544 } else if (iolock == XFS_IOLOCK_EXCL) { in xfs_file_dio_aio_write()
545 xfs_ilock_demote(ip, XFS_IOLOCK_EXCL); in xfs_file_dio_aio_write()
577 int iolock = XFS_IOLOCK_EXCL; in xfs_file_dax_write()
633 iolock = XFS_IOLOCK_EXCL; in xfs_file_buffered_aio_write()
769 ASSERT(xfs_isilocked(XFS_I(inode), XFS_IOLOCK_SHARED|XFS_IOLOCK_EXCL)); in xfs_break_layouts()
807 uint iolock = XFS_IOLOCK_EXCL | XFS_MMAPLOCK_EXCL; in xfs_file_fallocate()
Dxfs_inode.c171 ASSERT((lock_flags & (XFS_IOLOCK_SHARED | XFS_IOLOCK_EXCL)) != in xfs_ilock()
172 (XFS_IOLOCK_SHARED | XFS_IOLOCK_EXCL)); in xfs_ilock()
179 if (lock_flags & XFS_IOLOCK_EXCL) { in xfs_ilock()
222 ASSERT((lock_flags & (XFS_IOLOCK_SHARED | XFS_IOLOCK_EXCL)) != in xfs_ilock_nowait()
223 (XFS_IOLOCK_SHARED | XFS_IOLOCK_EXCL)); in xfs_ilock_nowait()
230 if (lock_flags & XFS_IOLOCK_EXCL) { in xfs_ilock_nowait()
261 if (lock_flags & XFS_IOLOCK_EXCL) in xfs_ilock_nowait()
291 ASSERT((lock_flags & (XFS_IOLOCK_SHARED | XFS_IOLOCK_EXCL)) != in xfs_iunlock()
292 (XFS_IOLOCK_SHARED | XFS_IOLOCK_EXCL)); in xfs_iunlock()
300 if (lock_flags & XFS_IOLOCK_EXCL) in xfs_iunlock()
[all …]
Dxfs_inode.h290 #define XFS_IOLOCK_EXCL (1<<0) macro
297 #define XFS_LOCK_MASK (XFS_IOLOCK_EXCL | XFS_IOLOCK_SHARED \
302 { XFS_IOLOCK_EXCL, "IOLOCK_EXCL" }, \
Dxfs_qm_syscalls.c221 xfs_ilock(ip, XFS_IOLOCK_EXCL); in xfs_qm_scall_trunc_qfile()
225 xfs_iunlock(ip, XFS_IOLOCK_EXCL); in xfs_qm_scall_trunc_qfile()
247 xfs_iunlock(ip, XFS_ILOCK_EXCL | XFS_IOLOCK_EXCL); in xfs_qm_scall_trunc_qfile()
Dxfs_icache.c635 ASSERT((lock_flags & (XFS_IOLOCK_EXCL | XFS_IOLOCK_SHARED)) == 0); in xfs_iget()
1495 if (!xfs_ilock_nowait(ip, XFS_IOLOCK_EXCL)) { in xfs_inode_free_eofblocks()
1501 xfs_iunlock(ip, XFS_IOLOCK_EXCL); in xfs_inode_free_eofblocks()
1770 xfs_ilock(ip, XFS_IOLOCK_EXCL); in xfs_inode_free_cowblocks()
1781 xfs_iunlock(ip, XFS_IOLOCK_EXCL); in xfs_inode_free_cowblocks()
Dxfs_ioctl.c598 uint iolock = XFS_IOLOCK_EXCL | XFS_MMAPLOCK_EXCL; in xfs_ioc_space()
1331 xfs_ilock(ip, XFS_MMAPLOCK_EXCL | XFS_IOLOCK_EXCL); in xfs_ioctl_setattr_dax_invalidate()
1339 *join_flags = XFS_MMAPLOCK_EXCL | XFS_IOLOCK_EXCL; in xfs_ioctl_setattr_dax_invalidate()
1343 xfs_iunlock(ip, XFS_MMAPLOCK_EXCL | XFS_IOLOCK_EXCL); in xfs_ioctl_setattr_dax_invalidate()
Dxfs_iops.c838 ASSERT(xfs_isilocked(ip, XFS_IOLOCK_EXCL)); in xfs_setattr_size()
1044 iolock = XFS_IOLOCK_EXCL | XFS_MMAPLOCK_EXCL; in xfs_vn_setattr()
Dxfs_bmap_util.c1237 ASSERT(xfs_isilocked(ip, XFS_IOLOCK_EXCL)); in xfs_collapse_file_space()
1305 ASSERT(xfs_isilocked(ip, XFS_IOLOCK_EXCL)); in xfs_insert_file_space()
/Linux-v5.4/fs/xfs/scrub/
Dparent.c206 error = xchk_ilock_inverted(sc->ip, XFS_IOLOCK_EXCL); in xchk_parent_validate()
209 sc->ilock_flags = XFS_IOLOCK_EXCL; in xchk_parent_validate()
Dinode.c52 sc->ilock_flags = XFS_IOLOCK_EXCL | XFS_MMAPLOCK_EXCL; in xchk_setup_inode()
Dcommon.c747 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-v5.4/fs/xfs/libxfs/
Dxfs_bmap.c5590 ASSERT(xfs_isilocked(ip, XFS_IOLOCK_EXCL)); in xfs_bmse_merge()
5719 ASSERT(xfs_isilocked(ip, XFS_IOLOCK_EXCL | XFS_ILOCK_EXCL)); in xfs_bmap_collapse_extents()
5792 ASSERT(xfs_isilocked(ip, XFS_IOLOCK_EXCL)); in xfs_bmap_can_insert_extents()
5837 ASSERT(xfs_isilocked(ip, XFS_IOLOCK_EXCL | XFS_ILOCK_EXCL)); in xfs_bmap_insert_extents()