Searched refs:lock_mode (Results 1 – 13 of 13) sorted by relevance
/fs/xfs/ |
D | xfs_dir2_readdir.c | 142 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 …]
|
D | xfs_attr_inactive.c | 332 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()
|
D | xfs_inode.c | 115 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 …]
|
D | xfs_attr_list.c | 527 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()
|
D | xfs_dquot.c | 414 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()
|
D | xfs_file.c | 203 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()
|
D | xfs_reflink.c | 1373 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()
|
D | xfs_qm.c | 995 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/ |
D | parent.c | 82 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()
|
D | common.h | 150 int xchk_ilock_inverted(struct xfs_inode *ip, uint lock_mode);
|
D | common.c | 857 uint lock_mode) in xchk_ilock_inverted() argument 862 if (xfs_ilock_nowait(ip, lock_mode)) in xchk_ilock_inverted()
|
/fs/xfs/libxfs/ |
D | xfs_dir2.c | 361 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()
|
D | xfs_attr.c | 259 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()
|