Home
last modified time | relevance | path

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

/fs/xfs/
Dxfs_iget.c437 ASSERT((lock_flags & (XFS_IOLOCK_EXCL | XFS_IOLOCK_SHARED)) == 0); in xfs_iget()
564 ASSERT((lock_flags & (XFS_IOLOCK_SHARED | XFS_IOLOCK_EXCL)) != in xfs_ilock()
565 (XFS_IOLOCK_SHARED | XFS_IOLOCK_EXCL)); in xfs_ilock()
572 else if (lock_flags & XFS_IOLOCK_SHARED) in xfs_ilock()
605 ASSERT((lock_flags & (XFS_IOLOCK_SHARED | XFS_IOLOCK_EXCL)) != in xfs_ilock_nowait()
606 (XFS_IOLOCK_SHARED | XFS_IOLOCK_EXCL)); in xfs_ilock_nowait()
614 } else if (lock_flags & XFS_IOLOCK_SHARED) { in xfs_ilock_nowait()
631 else if (lock_flags & XFS_IOLOCK_SHARED) in xfs_ilock_nowait()
659 ASSERT((lock_flags & (XFS_IOLOCK_SHARED | XFS_IOLOCK_EXCL)) != in xfs_iunlock()
660 (XFS_IOLOCK_SHARED | XFS_IOLOCK_EXCL)); in xfs_iunlock()
[all …]
Dxfs_file.c298 xfs_rw_ilock(ip, XFS_IOLOCK_SHARED); in xfs_file_aio_read()
300 xfs_rw_iunlock(ip, XFS_IOLOCK_SHARED); in xfs_file_aio_read()
321 xfs_rw_iunlock(ip, XFS_IOLOCK_SHARED); in xfs_file_aio_read()
345 xfs_rw_ilock(ip, XFS_IOLOCK_SHARED); in xfs_file_splice_read()
353 xfs_rw_iunlock(ip, XFS_IOLOCK_SHARED); in xfs_file_splice_read()
614 if (*iolock == XFS_IOLOCK_SHARED) { in xfs_file_aio_write_checks()
708 iolock = XFS_IOLOCK_SHARED; in xfs_file_dio_aio_write()
716 if (mapping->nrpages && iolock == XFS_IOLOCK_SHARED) { in xfs_file_dio_aio_write()
741 iolock = XFS_IOLOCK_SHARED; in xfs_file_dio_aio_write()
Dxfs_inode.h436 #define XFS_IOLOCK_SHARED (1<<1) macro
440 #define XFS_LOCK_MASK (XFS_IOLOCK_EXCL | XFS_IOLOCK_SHARED \
445 { XFS_IOLOCK_SHARED, "IOLOCK_SHARED" }, \
Dxfs_sync.c232 if (!xfs_ilock_nowait(ip, XFS_IOLOCK_SHARED)) { in xfs_sync_inode_data()
235 xfs_ilock(ip, XFS_IOLOCK_SHARED); in xfs_sync_inode_data()
240 xfs_iunlock(ip, XFS_IOLOCK_SHARED); in xfs_sync_inode_data()
Dxfs_aops.c1481 xfs_ilock(ip, XFS_IOLOCK_SHARED); in xfs_vm_bmap()
1483 xfs_iunlock(ip, XFS_IOLOCK_SHARED); in xfs_vm_bmap()
Dxfs_vnodeops.c1043 if (lock_mode & (XFS_IOLOCK_SHARED|XFS_IOLOCK_EXCL)) in xfs_lock_inumorder()
1178 if (lock_mode & (XFS_IOLOCK_SHARED|XFS_IOLOCK_EXCL)) in xfs_lock_two_inodes()
Dxfs_bmap.c5555 xfs_ilock(ip, XFS_IOLOCK_SHARED); in xfs_getbmap()
5666 xfs_iunlock(ip, XFS_IOLOCK_SHARED); in xfs_getbmap()