Home
last modified time | relevance | path

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

/fs/xfs/
Dxfs_dir2_readdir.c142 unsigned int *lock_mode) in xfs_dir2_block_getdents() argument
163 xfs_iunlock(dp, *lock_mode); in xfs_dir2_block_getdents()
164 *lock_mode = 0; in xfs_dir2_block_getdents()
349 unsigned int *lock_mode) in xfs_dir2_leaf_getdents() argument
394 if (*lock_mode == 0) in xfs_dir2_leaf_getdents()
395 *lock_mode = xfs_ilock_data_map_shared(dp); in xfs_dir2_leaf_getdents()
401 xfs_iunlock(dp, *lock_mode); in xfs_dir2_leaf_getdents()
402 *lock_mode = 0; in xfs_dir2_leaf_getdents()
514 unsigned int lock_mode; in xfs_readdir() local
534 lock_mode = xfs_ilock_data_map_shared(dp); in xfs_readdir()
[all …]
Dxfs_attr_inactive.c332 int lock_mode = XFS_ILOCK_SHARED; in xfs_attr_inactive() local
338 xfs_ilock(dp, lock_mode); in xfs_attr_inactive()
341 xfs_iunlock(dp, lock_mode); in xfs_attr_inactive()
343 lock_mode = 0; in xfs_attr_inactive()
349 lock_mode = XFS_ILOCK_EXCL; in xfs_attr_inactive()
350 xfs_ilock(dp, lock_mode); in xfs_attr_inactive()
381 xfs_iunlock(dp, lock_mode); in xfs_attr_inactive()
389 if (lock_mode) in xfs_attr_inactive()
390 xfs_iunlock(dp, lock_mode); in xfs_attr_inactive()
Dxfs_inode.c115 uint lock_mode = XFS_ILOCK_SHARED; in xfs_ilock_data_map_shared() local
118 lock_mode = XFS_ILOCK_EXCL; in xfs_ilock_data_map_shared()
119 xfs_ilock(ip, lock_mode); in xfs_ilock_data_map_shared()
120 return lock_mode; in xfs_ilock_data_map_shared()
127 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()
408 uint lock_mode, in xfs_lock_inumorder() argument
413 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.c414 uint lock_mode; in xfs_dquot_disk_read() local
418 lock_mode = xfs_ilock_data_map_shared(quotip); in xfs_dquot_disk_read()
424 xfs_iunlock(quotip, lock_mode); in xfs_dquot_disk_read()
433 xfs_iunlock(quotip, lock_mode); in xfs_dquot_disk_read()
Dxfs_file.c203 unsigned int lock_mode) in xfs_ilock_iocb() argument
208 if (!xfs_ilock_nowait(ip, lock_mode)) in xfs_ilock_iocb()
211 xfs_ilock(ip, lock_mode); in xfs_ilock_iocb()
Dxfs_reflink.c1373 unsigned int lock_mode; in xfs_reflink_remap_blocks() local
1377 lock_mode = xfs_ilock_data_map_shared(src); in xfs_reflink_remap_blocks()
1379 xfs_iunlock(src, lock_mode); in xfs_reflink_remap_blocks()
Dxfs_qm.c995 uint lock_mode; in xfs_qm_reset_dqcounts_buf() local
1003 lock_mode = xfs_ilock_data_map_shared(qip); in xfs_qm_reset_dqcounts_buf()
1006 xfs_iunlock(qip, lock_mode); in xfs_qm_reset_dqcounts_buf()
/fs/xfs/scrub/
Dparent.c82 uint lock_mode; in xchk_parent_count_parent_dentries() local
91 lock_mode = xfs_ilock_data_map_shared(parent); in xchk_parent_count_parent_dentries()
94 xfs_iunlock(parent, lock_mode); in xchk_parent_count_parent_dentries()
Dcommon.h150 int xchk_ilock_inverted(struct xfs_inode *ip, uint lock_mode);
Dcommon.c857 uint lock_mode) in xchk_ilock_inverted() argument
862 if (xfs_ilock_nowait(ip, lock_mode)) in xchk_ilock_inverted()
/fs/xfs/libxfs/
Dxfs_dir2.c361 int lock_mode; in xfs_dir_lookup() local
387 lock_mode = xfs_ilock_data_map_shared(dp); in xfs_dir_lookup()
420 xfs_iunlock(dp, lock_mode); in xfs_dir_lookup()
Dxfs_attr.c259 uint lock_mode; in xfs_attr_get() local
274 lock_mode = xfs_ilock_attr_map_shared(args->dp); in xfs_attr_get()
276 xfs_iunlock(args->dp, lock_mode); in xfs_attr_get()