Home
last modified time | relevance | path

Searched refs:lock_mode (Results 1 – 12 of 12) sorted by relevance

/kernel/linux/linux-5.10/fs/xfs/
Dxfs_attr_inactive.c334 int lock_mode = XFS_ILOCK_SHARED; in xfs_attr_inactive() local
340 xfs_ilock(dp, lock_mode); in xfs_attr_inactive()
343 xfs_iunlock(dp, lock_mode); in xfs_attr_inactive()
345 lock_mode = 0; in xfs_attr_inactive()
351 lock_mode = XFS_ILOCK_EXCL; in xfs_attr_inactive()
352 xfs_ilock(dp, lock_mode); in xfs_attr_inactive()
384 xfs_iunlock(dp, lock_mode); in xfs_attr_inactive()
396 if (lock_mode) in xfs_attr_inactive()
397 xfs_iunlock(dp, lock_mode); in xfs_attr_inactive()
Dxfs_dir2_readdir.c149 int lock_mode; in xfs_dir2_block_getdents() local
159 lock_mode = xfs_ilock_data_map_shared(dp); in xfs_dir2_block_getdents()
161 xfs_iunlock(dp, lock_mode); in xfs_dir2_block_getdents()
361 int lock_mode; in xfs_dir2_leaf_getdents() local
395 lock_mode = xfs_ilock_data_map_shared(dp); in xfs_dir2_leaf_getdents()
398 xfs_iunlock(dp, lock_mode); in xfs_dir2_leaf_getdents()
Dxfs_inode.c112 uint lock_mode = XFS_ILOCK_SHARED; in xfs_ilock_data_map_shared() local
116 lock_mode = XFS_ILOCK_EXCL; in xfs_ilock_data_map_shared()
117 xfs_ilock(ip, lock_mode); in xfs_ilock_data_map_shared()
118 return lock_mode; in xfs_ilock_data_map_shared()
125 uint lock_mode = XFS_ILOCK_SHARED; in xfs_ilock_attr_map_shared() local
130 lock_mode = XFS_ILOCK_EXCL; in xfs_ilock_attr_map_shared()
131 xfs_ilock(ip, lock_mode); in xfs_ilock_attr_map_shared()
132 return lock_mode; in xfs_ilock_attr_map_shared()
401 xfs_lock_inumorder(int lock_mode, int subclass) in xfs_lock_inumorder() argument
405 ASSERT(!(lock_mode & (XFS_ILOCK_PARENT | XFS_ILOCK_RTBITMAP | in xfs_lock_inumorder()
[all …]
Dxfs_attr_list.c527 uint lock_mode; in xfs_attr_list() local
535 lock_mode = xfs_ilock_attr_map_shared(dp); in xfs_attr_list()
537 xfs_iunlock(dp, lock_mode); in xfs_attr_list()
Dxfs_dquot.c394 uint lock_mode; in xfs_dquot_disk_read() local
398 lock_mode = xfs_ilock_data_map_shared(quotip); in xfs_dquot_disk_read()
404 xfs_iunlock(quotip, lock_mode); in xfs_dquot_disk_read()
413 xfs_iunlock(quotip, lock_mode); in xfs_dquot_disk_read()
Dxfs_reflink.c1182 unsigned int lock_mode; in xfs_reflink_remap_blocks() local
1186 lock_mode = xfs_ilock_data_map_shared(src); in xfs_reflink_remap_blocks()
1188 xfs_iunlock(src, lock_mode); in xfs_reflink_remap_blocks()
Dxfs_qm.c1002 uint lock_mode; in xfs_qm_reset_dqcounts_buf() local
1010 lock_mode = xfs_ilock_data_map_shared(qip); in xfs_qm_reset_dqcounts_buf()
1013 xfs_iunlock(qip, lock_mode); in xfs_qm_reset_dqcounts_buf()
/kernel/linux/linux-5.10/fs/xfs/scrub/
Dparent.c83 uint lock_mode; in xchk_parent_count_parent_dentries() local
92 lock_mode = xfs_ilock_data_map_shared(parent); in xchk_parent_count_parent_dentries()
95 xfs_iunlock(parent, lock_mode); in xchk_parent_count_parent_dentries()
Dcommon.h148 int xchk_ilock_inverted(struct xfs_inode *ip, uint lock_mode);
Dcommon.c887 uint lock_mode) in xchk_ilock_inverted() argument
892 if (xfs_ilock_nowait(ip, lock_mode)) in xchk_ilock_inverted()
/kernel/linux/linux-5.10/fs/xfs/libxfs/
Dxfs_dir2.c349 int lock_mode; in xfs_dir_lookup() local
375 lock_mode = xfs_ilock_data_map_shared(dp); in xfs_dir_lookup()
408 xfs_iunlock(dp, lock_mode); in xfs_dir_lookup()
Dxfs_attr.c117 uint lock_mode; in xfs_attr_get() local
132 lock_mode = xfs_ilock_attr_map_shared(args->dp); in xfs_attr_get()
134 xfs_iunlock(args->dp, lock_mode); in xfs_attr_get()