Home
last modified time | relevance | path

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

/fs/xfs/
Dxfs_file.c269 ret = xfs_ilock_iocb(iocb, XFS_IOLOCK_SHARED); in xfs_file_dio_read()
273 xfs_iunlock(ip, XFS_IOLOCK_SHARED); in xfs_file_dio_read()
291 ret = xfs_ilock_iocb(iocb, XFS_IOLOCK_SHARED); in xfs_file_dax_read()
295 xfs_iunlock(ip, XFS_IOLOCK_SHARED); in xfs_file_dax_read()
311 ret = xfs_ilock_iocb(iocb, XFS_IOLOCK_SHARED); in xfs_file_buffered_read()
315 xfs_iunlock(ip, XFS_IOLOCK_SHARED); in xfs_file_buffered_read()
366 xfs_ilock(ip, XFS_IOLOCK_SHARED); in xfs_file_splice_read()
368 xfs_iunlock(ip, XFS_IOLOCK_SHARED); in xfs_file_splice_read()
415 if (*iolock == XFS_IOLOCK_SHARED && !IS_NOSEC(inode)) { in xfs_file_write_checks()
458 if (*iolock == XFS_IOLOCK_SHARED) { in xfs_file_write_checks()
[all …]
Dxfs_inode.h380 #define XFS_IOLOCK_SHARED (1u << 1) macro
386 #define XFS_LOCK_MASK (XFS_IOLOCK_EXCL | XFS_IOLOCK_SHARED \
392 { 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_iops.c1088 xfs_ilock(XFS_I(inode), XFS_IOLOCK_SHARED); in xfs_vn_fiemap()
1097 xfs_iunlock(XFS_I(inode), XFS_IOLOCK_SHARED); in xfs_vn_fiemap()
Dxfs_dir2_readdir.c524 ASSERT(xfs_isilocked(dp, XFS_IOLOCK_SHARED | XFS_IOLOCK_EXCL)); in xfs_readdir()
Dxfs_bmap_util.c441 xfs_ilock(ip, XFS_IOLOCK_SHARED); in xfs_getbmap()
580 xfs_iunlock(ip, XFS_IOLOCK_SHARED); in xfs_getbmap()
Dxfs_icache.c748 ASSERT((lock_flags & (XFS_IOLOCK_EXCL | XFS_IOLOCK_SHARED)) == 0); in xfs_iget()