Home
last modified time | relevance | path

Searched refs:XFS_IOLOCK_SHARED (Results 1 – 9 of 9) sorted by relevance

/linux-6.1.9/fs/xfs/scrub/
Dparent.c191 if (xfs_ilock_nowait(dp, XFS_IOLOCK_SHARED)) { in xchk_parent_validate()
209 error = xchk_ilock_inverted(dp, XFS_IOLOCK_SHARED); in xchk_parent_validate()
219 xfs_iunlock(dp, XFS_IOLOCK_SHARED); in xchk_parent_validate()
254 xfs_iunlock(dp, XFS_IOLOCK_SHARED); in xchk_parent_validate()
/linux-6.1.9/fs/xfs/
Dxfs_file.c232 ret = xfs_ilock_iocb(iocb, XFS_IOLOCK_SHARED); in xfs_file_dio_read()
236 xfs_iunlock(ip, XFS_IOLOCK_SHARED); in xfs_file_dio_read()
254 ret = xfs_ilock_iocb(iocb, XFS_IOLOCK_SHARED); in xfs_file_dax_read()
258 xfs_iunlock(ip, XFS_IOLOCK_SHARED); in xfs_file_dax_read()
274 ret = xfs_ilock_iocb(iocb, XFS_IOLOCK_SHARED); in xfs_file_buffered_read()
278 xfs_iunlock(ip, XFS_IOLOCK_SHARED); in xfs_file_buffered_read()
350 if (*iolock == XFS_IOLOCK_SHARED && !IS_NOSEC(inode)) { in xfs_file_write_checks()
393 if (*iolock == XFS_IOLOCK_SHARED) { in xfs_file_write_checks()
523 unsigned int iolock = XFS_IOLOCK_SHARED; in xfs_file_dio_write_aligned()
540 iolock = XFS_IOLOCK_SHARED; in xfs_file_dio_write_aligned()
[all …]
Dxfs_inode.h351 #define XFS_IOLOCK_SHARED (1u << 1) macro
357 #define XFS_LOCK_MASK (XFS_IOLOCK_EXCL | XFS_IOLOCK_SHARED \
363 { XFS_IOLOCK_SHARED, "IOLOCK_SHARED" }, \
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()
197 } else if (lock_flags & XFS_IOLOCK_SHARED) { in xfs_ilock()
240 } else if (lock_flags & XFS_IOLOCK_SHARED) { in xfs_ilock_nowait()
270 else if (lock_flags & XFS_IOLOCK_SHARED) in xfs_ilock_nowait()
297 else if (lock_flags & XFS_IOLOCK_SHARED) in xfs_iunlock()
373 if (lock_flags & (XFS_IOLOCK_EXCL | XFS_IOLOCK_SHARED)) { in xfs_isilocked()
375 (lock_flags & XFS_IOLOCK_SHARED)); in xfs_isilocked()
417 if (lock_mode & (XFS_IOLOCK_SHARED|XFS_IOLOCK_EXCL)) { in xfs_lock_inumorder()
472 ASSERT(!(lock_mode & (XFS_IOLOCK_SHARED | XFS_MMAPLOCK_SHARED | in xfs_lock_inodes()
[all …]
Dxfs_pnfs.c40 *iolock &= ~XFS_IOLOCK_SHARED; in xfs_break_leased_layouts()
Dxfs_dir2_readdir.c524 ASSERT(xfs_isilocked(dp, XFS_IOLOCK_SHARED | XFS_IOLOCK_EXCL)); in xfs_readdir()
Dxfs_iops.c1077 xfs_ilock(XFS_I(inode), XFS_IOLOCK_SHARED); in xfs_vn_fiemap()
1086 xfs_iunlock(XFS_I(inode), XFS_IOLOCK_SHARED); in xfs_vn_fiemap()
Dxfs_bmap_util.c443 xfs_ilock(ip, XFS_IOLOCK_SHARED); in xfs_getbmap()
580 xfs_iunlock(ip, XFS_IOLOCK_SHARED); in xfs_getbmap()
Dxfs_icache.c716 ASSERT((lock_flags & (XFS_IOLOCK_EXCL | XFS_IOLOCK_SHARED)) == 0); in xfs_iget()