Home
last modified time | relevance | path

Searched refs:XFS_ILOCK_SHARED (Results 1 – 20 of 20) sorted by relevance

/Linux-v5.4/fs/xfs/
Dxfs_inode.c107 uint lock_mode = XFS_ILOCK_SHARED; in xfs_ilock_data_map_shared()
120 uint lock_mode = XFS_ILOCK_SHARED; in xfs_ilock_attr_map_shared()
175 ASSERT((lock_flags & (XFS_ILOCK_SHARED | XFS_ILOCK_EXCL)) != in xfs_ilock()
176 (XFS_ILOCK_SHARED | XFS_ILOCK_EXCL)); in xfs_ilock()
194 else if (lock_flags & XFS_ILOCK_SHARED) in xfs_ilock()
226 ASSERT((lock_flags & (XFS_ILOCK_SHARED | XFS_ILOCK_EXCL)) != in xfs_ilock_nowait()
227 (XFS_ILOCK_SHARED | XFS_ILOCK_EXCL)); in xfs_ilock_nowait()
249 } else if (lock_flags & XFS_ILOCK_SHARED) { in xfs_ilock_nowait()
295 ASSERT((lock_flags & (XFS_ILOCK_SHARED | XFS_ILOCK_EXCL)) != in xfs_iunlock()
296 (XFS_ILOCK_SHARED | XFS_ILOCK_EXCL)); in xfs_iunlock()
[all …]
Dxfs_pnfs.c160 xfs_ilock(ip, XFS_ILOCK_SHARED); in xfs_fs_map_blocks()
201 xfs_ilock(ip, XFS_ILOCK_SHARED); in xfs_pnfs_validate_isize()
204 xfs_iunlock(ip, XFS_ILOCK_SHARED); in xfs_pnfs_validate_isize()
Dxfs_export.c228 xfs_ilock(ip, XFS_ILOCK_SHARED); in xfs_fs_nfs_commit_metadata()
231 xfs_iunlock(ip, XFS_ILOCK_SHARED); in xfs_fs_nfs_commit_metadata()
Dxfs_inode.h293 #define XFS_ILOCK_SHARED (1<<3) macro
298 | XFS_ILOCK_EXCL | XFS_ILOCK_SHARED \
305 { XFS_ILOCK_SHARED, "ILOCK_SHARED" }, \
Dxfs_symlink.c43 ASSERT(xfs_isilocked(ip, XFS_ILOCK_SHARED | XFS_ILOCK_EXCL)); in xfs_readlink_bmap_ilocked()
121 xfs_ilock(ip, XFS_ILOCK_SHARED); in xfs_readlink()
140 xfs_iunlock(ip, XFS_ILOCK_SHARED); in xfs_readlink()
Dxfs_itable.c72 XFS_ILOCK_SHARED, &ip); in xfs_bulkstat_one_int()
136 xfs_iunlock(ip, XFS_ILOCK_SHARED); in xfs_bulkstat_one_int()
Dxfs_aops.c532 xfs_ilock(ip, XFS_ILOCK_SHARED); in xfs_map_blocks()
545 xfs_iunlock(ip, XFS_ILOCK_SHARED); in xfs_map_blocks()
556 xfs_iunlock(ip, XFS_ILOCK_SHARED); in xfs_map_blocks()
568 xfs_iunlock(ip, XFS_ILOCK_SHARED); in xfs_map_blocks()
Dxfs_file.c88 xfs_ilock(ip, XFS_ILOCK_SHARED); in xfs_dir_fsync()
91 xfs_iunlock(ip, XFS_ILOCK_SHARED); in xfs_dir_fsync()
147 xfs_ilock(ip, XFS_ILOCK_SHARED); in xfs_file_fsync()
158 xfs_iunlock(ip, XFS_ILOCK_SHARED); in xfs_file_fsync()
Dxfs_iomap.c192 lockmode = XFS_ILOCK_SHARED; /* locked by caller */ in xfs_iomap_write_direct()
868 unsigned mode = XFS_ILOCK_SHARED; in xfs_ilock_for_iomap()
909 if (mode == XFS_ILOCK_SHARED && is_write && xfs_is_cow_inode(ip)) { in xfs_ilock_for_iomap()
Dxfs_inode_item.c516 if (!xfs_ilock_nowait(ip, XFS_ILOCK_SHARED)) in xfs_inode_item_push()
560 xfs_iunlock(ip, XFS_ILOCK_SHARED); in xfs_inode_item_push()
Dxfs_qm.c1668 lockflags = XFS_ILOCK_SHARED; in xfs_qm_vop_dqalloc()
1688 lockflags = XFS_ILOCK_SHARED; in xfs_qm_vop_dqalloc()
1705 lockflags = XFS_ILOCK_SHARED; in xfs_qm_vop_dqalloc()
1800 ASSERT(xfs_isilocked(ip, XFS_ILOCK_EXCL|XFS_ILOCK_SHARED)); in xfs_qm_vop_chown_reserve()
Dxfs_attr_inactive.c380 int lock_mode = XFS_ILOCK_SHARED; in xfs_attr_inactive()
Dxfs_fsmap.c516 xfs_ilock(tp->t_mountp->m_rbmip, XFS_ILOCK_SHARED); in xfs_getfsmap_rtdev_rtbitmap_query()
534 xfs_iunlock(tp->t_mountp->m_rbmip, XFS_ILOCK_SHARED); in xfs_getfsmap_rtdev_rtbitmap_query()
Dxfs_bmap_util.c560 lock = XFS_ILOCK_SHARED; in xfs_getbmap()
798 xfs_ilock(ip, XFS_ILOCK_SHARED); in xfs_free_eofblocks()
800 xfs_iunlock(ip, XFS_ILOCK_SHARED); in xfs_free_eofblocks()
Dxfs_attr_list.c497 ASSERT(xfs_isilocked(dp, XFS_ILOCK_SHARED | XFS_ILOCK_EXCL)); in xfs_attr_list_int_ilocked()
Dxfs_ioctl.c1145 xfs_ilock(ip, XFS_ILOCK_SHARED); in xfs_ioc_fsgetxattr()
1147 xfs_iunlock(ip, XFS_ILOCK_SHARED); in xfs_ioc_fsgetxattr()
/Linux-v5.4/fs/xfs/scrub/
Drtbitmap.c139 xfs_ilock(sc->mp->m_rbmip, XFS_ILOCK_SHARED | XFS_ILOCK_RTBITMAP); in xchk_xref_is_used_rt_space()
147 xfs_iunlock(sc->mp->m_rbmip, XFS_ILOCK_SHARED | XFS_ILOCK_RTBITMAP); in xchk_xref_is_used_rt_space()
/Linux-v5.4/fs/xfs/libxfs/
Dxfs_inode_fork.c557 ASSERT(xfs_isilocked(ip, XFS_ILOCK_EXCL | XFS_ILOCK_SHARED)); in xfs_iextents_copy()
Dxfs_attr.c109 ASSERT(xfs_isilocked(ip, XFS_ILOCK_SHARED | XFS_ILOCK_EXCL)); in xfs_attr_get_ilocked()
Dxfs_bmap.c3816 ASSERT(xfs_isilocked(ip, XFS_ILOCK_SHARED|XFS_ILOCK_EXCL)); in xfs_bmapi_read()