Searched refs:lock_mode (Results 1 – 12 of 12) sorted by relevance
/Linux-v5.4/fs/xfs/ |
D | xfs_attr_inactive.c | 380 int lock_mode = XFS_ILOCK_SHARED; in xfs_attr_inactive() local 386 xfs_ilock(dp, lock_mode); in xfs_attr_inactive() 389 xfs_iunlock(dp, lock_mode); in xfs_attr_inactive() 391 lock_mode = 0; in xfs_attr_inactive() 397 lock_mode = XFS_ILOCK_EXCL; in xfs_attr_inactive() 398 xfs_ilock(dp, lock_mode); in xfs_attr_inactive() 430 xfs_iunlock(dp, lock_mode); in xfs_attr_inactive() 439 if (lock_mode) in xfs_attr_inactive() 440 xfs_iunlock(dp, lock_mode); in xfs_attr_inactive()
|
D | xfs_dir2_readdir.c | 148 int lock_mode; in xfs_dir2_block_getdents() local 156 lock_mode = xfs_ilock_data_map_shared(dp); in xfs_dir2_block_getdents() 158 xfs_iunlock(dp, lock_mode); in xfs_dir2_block_getdents() 356 int lock_mode; in xfs_dir2_leaf_getdents() local 389 lock_mode = xfs_ilock_data_map_shared(dp); in xfs_dir2_leaf_getdents() 392 xfs_iunlock(dp, lock_mode); in xfs_dir2_leaf_getdents()
|
D | xfs_inode.c | 107 uint lock_mode = XFS_ILOCK_SHARED; in xfs_ilock_data_map_shared() local 111 lock_mode = XFS_ILOCK_EXCL; in xfs_ilock_data_map_shared() 112 xfs_ilock(ip, lock_mode); in xfs_ilock_data_map_shared() 113 return lock_mode; in xfs_ilock_data_map_shared() 120 uint lock_mode = XFS_ILOCK_SHARED; in xfs_ilock_attr_map_shared() local 124 lock_mode = XFS_ILOCK_EXCL; in xfs_ilock_attr_map_shared() 125 xfs_ilock(ip, lock_mode); in xfs_ilock_attr_map_shared() 126 return lock_mode; in xfs_ilock_attr_map_shared() 395 xfs_lock_inumorder(int lock_mode, int subclass) in xfs_lock_inumorder() argument 399 ASSERT(!(lock_mode & (XFS_ILOCK_PARENT | XFS_ILOCK_RTBITMAP | in xfs_lock_inumorder() [all …]
|
D | xfs_attr_list.c | 517 uint lock_mode; in xfs_attr_list_int() local 524 lock_mode = xfs_ilock_attr_map_shared(dp); in xfs_attr_list_int() 526 xfs_iunlock(dp, lock_mode); in xfs_attr_list_int()
|
D | xfs_dquot.c | 382 uint lock_mode; in xfs_dquot_disk_read() local 386 lock_mode = xfs_ilock_data_map_shared(quotip); in xfs_dquot_disk_read() 392 xfs_iunlock(quotip, lock_mode); in xfs_dquot_disk_read() 401 xfs_iunlock(quotip, lock_mode); in xfs_dquot_disk_read()
|
D | xfs_reflink.c | 1135 uint lock_mode; in xfs_reflink_remap_blocks() local 1142 lock_mode = xfs_ilock_data_map_shared(src); in xfs_reflink_remap_blocks() 1144 xfs_iunlock(src, lock_mode); in xfs_reflink_remap_blocks()
|
D | xfs_qm.c | 986 uint lock_mode; in xfs_qm_reset_dqcounts_buf() local 994 lock_mode = xfs_ilock_data_map_shared(qip); in xfs_qm_reset_dqcounts_buf() 997 xfs_iunlock(qip, lock_mode); in xfs_qm_reset_dqcounts_buf()
|
/Linux-v5.4/fs/xfs/scrub/ |
D | parent.c | 72 uint lock_mode; in xchk_parent_count_parent_dentries() local 81 lock_mode = xfs_ilock_data_map_shared(parent); in xchk_parent_count_parent_dentries() 84 xfs_iunlock(parent, lock_mode); in xchk_parent_count_parent_dentries()
|
D | common.h | 141 int xchk_ilock_inverted(struct xfs_inode *ip, uint lock_mode);
|
D | common.c | 887 uint lock_mode) in xchk_ilock_inverted() argument 892 if (xfs_ilock_nowait(ip, lock_mode)) in xchk_ilock_inverted()
|
/Linux-v5.4/fs/xfs/libxfs/ |
D | xfs_dir2.c | 343 int lock_mode; in xfs_dir_lookup() local 369 lock_mode = xfs_ilock_data_map_shared(dp); in xfs_dir_lookup() 402 xfs_iunlock(dp, lock_mode); in xfs_dir_lookup()
|
D | xfs_attr.c | 147 uint lock_mode; in xfs_attr_get() local 169 lock_mode = xfs_ilock_attr_map_shared(ip); in xfs_attr_get() 171 xfs_iunlock(ip, lock_mode); in xfs_attr_get()
|