Home
last modified time | relevance | path

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

/openbmc/linux/fs/xfs/scrub/
H A Dparent.c74 if (!xfs_ilock_nowait(dp, XFS_ILOCK_SHARED)) in xchk_parent_ilock_dir()
78 return XFS_ILOCK_SHARED; in xchk_parent_ilock_dir()
80 xfs_iunlock(dp, XFS_ILOCK_SHARED); in xchk_parent_ilock_dir()
H A Drtbitmap.c149 xfs_ilock(sc->mp->m_rbmip, XFS_ILOCK_SHARED | XFS_ILOCK_RTBITMAP); in xchk_xref_is_used_rt_space()
157 xfs_iunlock(sc->mp->m_rbmip, XFS_ILOCK_SHARED | XFS_ILOCK_RTBITMAP); in xchk_xref_is_used_rt_space()
H A Drtsummary.c73 xfs_ilock(mp->m_rbmip, XFS_ILOCK_SHARED | XFS_ILOCK_RTBITMAP); in xchk_setup_rtsummary()
263 xfs_iunlock(mp->m_rbmip, XFS_ILOCK_SHARED | XFS_ILOCK_RTBITMAP); in xchk_rtsummary()
H A Dreaddir.c286 ASSERT(xfs_isilocked(dp, XFS_ILOCK_SHARED | XFS_ILOCK_EXCL)); in xchk_dir_walk()
337 ASSERT(xfs_isilocked(dp, XFS_ILOCK_SHARED | XFS_ILOCK_EXCL)); in xchk_dir_lookup()
H A Dfscounters.c421 xfs_ilock(sc->mp->m_rbmip, XFS_ILOCK_SHARED | XFS_ILOCK_RTBITMAP); in xchk_fscount_count_frextents()
430 xfs_iunlock(sc->mp->m_rbmip, XFS_ILOCK_SHARED | XFS_ILOCK_RTBITMAP); in xchk_fscount_count_frextents()
/openbmc/linux/fs/xfs/
H A Dxfs_inode.c115 uint lock_mode = XFS_ILOCK_SHARED; in xfs_ilock_data_map_shared()
127 uint lock_mode = XFS_ILOCK_SHARED; in xfs_ilock_attr_map_shared()
150 (XFS_ILOCK_SHARED | XFS_ILOCK_EXCL)); in xfs_lock_flags_assert()
212 else if (lock_flags & XFS_ILOCK_SHARED) in xfs_ilock()
363 if (!(lock_flags & XFS_ILOCK_SHARED)) in xfs_isilocked()
473 XFS_ILOCK_SHARED))); in xfs_lock_inodes()
3443 xfs_iunlock(ip, XFS_ILOCK_SHARED); in xfs_iflush_cluster()
3493 xfs_ilock(ip, XFS_ILOCK_SHARED); in xfs_log_force_inode()
3496 xfs_iunlock(ip, XFS_ILOCK_SHARED); in xfs_log_force_inode()
3773 xfs_ilock(ip, XFS_ILOCK_SHARED); in xfs_inode_reload_unlinked()
[all …]
H A Dxfs_aops.c287 xfs_ilock(ip, XFS_ILOCK_SHARED); in xfs_map_blocks()
299 xfs_iunlock(ip, XFS_ILOCK_SHARED); in xfs_map_blocks()
310 xfs_iunlock(ip, XFS_ILOCK_SHARED); in xfs_map_blocks()
322 xfs_iunlock(ip, XFS_ILOCK_SHARED); in xfs_map_blocks()
H A Dxfs_inode.h382 #define XFS_ILOCK_SHARED (1u << 3) macro
387 | XFS_ILOCK_EXCL | XFS_ILOCK_SHARED \
394 { XFS_ILOCK_SHARED, "ILOCK_SHARED" }, \
H A Dxfs_itable.c77 XFS_ILOCK_SHARED, &ip); in xfs_bulkstat_one_int()
87 xfs_iunlock(ip, XFS_ILOCK_SHARED); in xfs_bulkstat_one_int()
158 xfs_iunlock(ip, XFS_ILOCK_SHARED); in xfs_bulkstat_one_int()
H A Dxfs_symlink.c46 ASSERT(xfs_isilocked(ip, XFS_ILOCK_SHARED | XFS_ILOCK_EXCL)); in xfs_readlink_bmap_ilocked()
112 xfs_ilock(ip, XFS_ILOCK_SHARED); in xfs_readlink()
141 xfs_iunlock(ip, XFS_ILOCK_SHARED); in xfs_readlink()
H A Dxfs_pnfs.c234 xfs_ilock(ip, XFS_ILOCK_SHARED); in xfs_pnfs_validate_isize()
237 xfs_iunlock(ip, XFS_ILOCK_SHARED); in xfs_pnfs_validate_isize()
H A Dxfs_attr_inactive.c332 int lock_mode = XFS_ILOCK_SHARED; in xfs_attr_inactive()
H A Dxfs_iomap.c738 if (mode == XFS_ILOCK_SHARED && is_write && xfs_is_cow_inode(ip)) { in xfs_ilock_for_iomap()
782 unsigned int lockmode = XFS_ILOCK_SHARED; in xfs_direct_write_iomap_begin()
1256 unsigned int lockmode = XFS_ILOCK_SHARED; in xfs_read_iomap_begin()
H A Dxfs_ioctl.c1032 xfs_ilock(ip, XFS_ILOCK_SHARED); in xfs_ioc_fsgetxattra()
1034 xfs_iunlock(ip, XFS_ILOCK_SHARED); in xfs_ioc_fsgetxattra()
1049 xfs_ilock(ip, XFS_ILOCK_SHARED); in xfs_fileattr_get()
1051 xfs_iunlock(ip, XFS_ILOCK_SHARED); in xfs_fileattr_get()
H A Dxfs_qm.c1725 lockflags = XFS_ILOCK_SHARED; in xfs_qm_vop_dqalloc()
1747 lockflags = XFS_ILOCK_SHARED; in xfs_qm_vop_dqalloc()
1765 lockflags = XFS_ILOCK_SHARED; in xfs_qm_vop_dqalloc()
H A Dxfs_fsmap.c536 xfs_ilock(mp->m_rbmip, XFS_ILOCK_SHARED | XFS_ILOCK_RTBITMAP); in xfs_getfsmap_rtdev_rtbitmap()
563 xfs_iunlock(mp->m_rbmip, XFS_ILOCK_SHARED | XFS_ILOCK_RTBITMAP); in xfs_getfsmap_rtdev_rtbitmap()
H A Dxfs_bmap_util.c451 lock = XFS_ILOCK_SHARED; in xfs_getbmap()
700 xfs_ilock(ip, XFS_ILOCK_SHARED); in xfs_can_free_eofblocks()
703 xfs_iunlock(ip, XFS_ILOCK_SHARED); in xfs_can_free_eofblocks()
H A Dxfs_attr_list.c511 ASSERT(xfs_isilocked(dp, XFS_ILOCK_SHARED | XFS_ILOCK_EXCL)); in xfs_attr_list_ilocked()
H A Dxfs_file.c123 xfs_ilock(ip, XFS_ILOCK_SHARED); in xfs_fsync_flush_log()
133 xfs_iunlock(ip, XFS_ILOCK_SHARED); in xfs_fsync_flush_log()
H A Dxfs_rtalloc.c1341 xfs_ilock(mp->m_rbmip, XFS_ILOCK_SHARED | XFS_ILOCK_RTBITMAP); in xfs_rtalloc_reinit_frextents()
1344 xfs_iunlock(mp->m_rbmip, XFS_ILOCK_SHARED | XFS_ILOCK_RTBITMAP); in xfs_rtalloc_reinit_frextents()
/openbmc/linux/fs/xfs/libxfs/
H A Dxfs_inode_fork.c566 ASSERT(xfs_isilocked(ip, XFS_ILOCK_EXCL | XFS_ILOCK_SHARED)); in xfs_iextents_copy()
H A Dxfs_attr.c227 ASSERT(xfs_isilocked(args->dp, XFS_ILOCK_SHARED | XFS_ILOCK_EXCL)); in xfs_attr_get_ilocked()
H A Dxfs_bmap.c3891 ASSERT(xfs_isilocked(ip, XFS_ILOCK_SHARED|XFS_ILOCK_EXCL)); in xfs_bmapi_read()