Searched refs:lock_mode (Results 1 - 9 of 9) sorted by relevance
/linux-4.4.14/fs/xfs/ |
H A D | xfs_attr_inactive.c | 397 int lock_mode = XFS_ILOCK_SHARED; xfs_attr_inactive() local 403 xfs_ilock(dp, lock_mode); xfs_attr_inactive() 406 xfs_iunlock(dp, lock_mode); xfs_attr_inactive() 418 lock_mode = 0; xfs_attr_inactive() 424 lock_mode = XFS_ILOCK_EXCL; xfs_attr_inactive() 425 xfs_ilock(dp, lock_mode); xfs_attr_inactive() 457 xfs_iunlock(dp, lock_mode); xfs_attr_inactive() 466 if (lock_mode) xfs_attr_inactive() 467 xfs_iunlock(dp, lock_mode); xfs_attr_inactive()
|
H A D | xfs_inode.c | 97 uint lock_mode = XFS_ILOCK_SHARED; xfs_ilock_data_map_shared() local 101 lock_mode = XFS_ILOCK_EXCL; xfs_ilock_data_map_shared() 102 xfs_ilock(ip, lock_mode); xfs_ilock_data_map_shared() 103 return lock_mode; xfs_ilock_data_map_shared() 110 uint lock_mode = XFS_ILOCK_SHARED; xfs_ilock_attr_map_shared() local 114 lock_mode = XFS_ILOCK_EXCL; xfs_ilock_attr_map_shared() 115 xfs_ilock(ip, lock_mode); xfs_ilock_attr_map_shared() 116 return lock_mode; xfs_ilock_attr_map_shared() 389 xfs_lock_inumorder(int lock_mode, int subclass) xfs_lock_inumorder() argument 393 ASSERT(!(lock_mode & (XFS_ILOCK_PARENT | XFS_ILOCK_RTBITMAP | xfs_lock_inumorder() 397 if (lock_mode & (XFS_IOLOCK_SHARED|XFS_IOLOCK_EXCL)) { xfs_lock_inumorder() 402 if (lock_mode & XFS_IOLOCK_PARENT) xfs_lock_inumorder() 406 if (lock_mode & (XFS_MMAPLOCK_SHARED|XFS_MMAPLOCK_EXCL)) { xfs_lock_inumorder() 411 if (lock_mode & (XFS_ILOCK_SHARED|XFS_ILOCK_EXCL)) { xfs_lock_inumorder() 416 return (lock_mode & ~XFS_LOCK_SUBCLASS_MASK) | class; xfs_lock_inumorder() 438 uint lock_mode) xfs_lock_inodes() 451 ASSERT(lock_mode & (XFS_IOLOCK_EXCL | XFS_MMAPLOCK_EXCL | xfs_lock_inodes() 453 ASSERT(!(lock_mode & (XFS_IOLOCK_SHARED | XFS_MMAPLOCK_SHARED | xfs_lock_inodes() 455 ASSERT(!(lock_mode & XFS_IOLOCK_EXCL) || xfs_lock_inodes() 457 ASSERT(!(lock_mode & XFS_MMAPLOCK_EXCL) || xfs_lock_inodes() 459 ASSERT(!(lock_mode & XFS_ILOCK_EXCL) || xfs_lock_inodes() 462 if (lock_mode & XFS_IOLOCK_EXCL) { xfs_lock_inodes() 463 ASSERT(!(lock_mode & (XFS_MMAPLOCK_EXCL | XFS_ILOCK_EXCL))); xfs_lock_inodes() 464 } else if (lock_mode & XFS_MMAPLOCK_EXCL) xfs_lock_inodes() 465 ASSERT(!(lock_mode & XFS_ILOCK_EXCL)); xfs_lock_inodes() 495 xfs_ilock(ips[i], xfs_lock_inumorder(lock_mode, i)); xfs_lock_inodes() 501 if (xfs_ilock_nowait(ips[i], xfs_lock_inumorder(lock_mode, i))) xfs_lock_inodes() 518 xfs_iunlock(ips[j], lock_mode); xfs_lock_inodes() 553 uint lock_mode) xfs_lock_two_inodes() 559 if (lock_mode & (XFS_IOLOCK_SHARED|XFS_IOLOCK_EXCL)) { xfs_lock_two_inodes() 560 ASSERT(!(lock_mode & (XFS_MMAPLOCK_SHARED|XFS_MMAPLOCK_EXCL))); xfs_lock_two_inodes() 561 ASSERT(!(lock_mode & (XFS_ILOCK_SHARED|XFS_ILOCK_EXCL))); xfs_lock_two_inodes() 562 } else if (lock_mode & (XFS_MMAPLOCK_SHARED|XFS_MMAPLOCK_EXCL)) xfs_lock_two_inodes() 563 ASSERT(!(lock_mode & (XFS_ILOCK_SHARED|XFS_ILOCK_EXCL))); xfs_lock_two_inodes() 574 xfs_ilock(ip0, xfs_lock_inumorder(lock_mode, 0)); xfs_lock_two_inodes() 583 if (!xfs_ilock_nowait(ip1, xfs_lock_inumorder(lock_mode, 1))) { xfs_lock_two_inodes() 584 xfs_iunlock(ip0, lock_mode); xfs_lock_two_inodes() 590 xfs_ilock(ip1, xfs_lock_inumorder(lock_mode, 1)); xfs_lock_two_inodes() 435 xfs_lock_inodes( xfs_inode_t **ips, int inodes, uint lock_mode) xfs_lock_inodes() argument 550 xfs_lock_two_inodes( xfs_inode_t *ip0, xfs_inode_t *ip1, uint lock_mode) xfs_lock_two_inodes() argument
|
H A D | xfs_dir2_readdir.c | 174 int lock_mode; xfs_dir2_block_getdents() local 182 lock_mode = xfs_ilock_data_map_shared(dp); xfs_dir2_block_getdents() 184 xfs_iunlock(dp, lock_mode); xfs_dir2_block_getdents() 535 int lock_mode; xfs_dir2_leaf_getdents() local 537 lock_mode = xfs_ilock_data_map_shared(dp); xfs_dir2_leaf_getdents() 540 xfs_iunlock(dp, lock_mode); xfs_dir2_leaf_getdents()
|
H A D | xfs_attr_list.c | 513 uint lock_mode; xfs_attr_list_int() local 523 lock_mode = xfs_ilock_attr_map_shared(dp); xfs_attr_list_int() 533 xfs_iunlock(dp, lock_mode); xfs_attr_list_int()
|
H A D | xfs_dquot.c | 470 uint lock_mode; xfs_qm_dqtobp() local 474 lock_mode = xfs_ilock_data_map_shared(quotip); xfs_qm_dqtobp() 480 xfs_iunlock(quotip, lock_mode); xfs_qm_dqtobp() 490 xfs_iunlock(quotip, lock_mode); xfs_qm_dqtobp()
|
H A D | xfs_qm.c | 968 uint lock_mode; xfs_qm_dqiterate() local 976 lock_mode = xfs_ilock_data_map_shared(qip); xfs_qm_dqiterate() 979 xfs_iunlock(qip, lock_mode); xfs_qm_dqiterate()
|
H A D | xfs_bmap_util.c | 1146 uint lock_mode; xfs_zero_remaining_bytes() local 1151 lock_mode = xfs_ilock_data_map_shared(ip); xfs_zero_remaining_bytes() 1153 xfs_iunlock(ip, lock_mode); xfs_zero_remaining_bytes()
|
/linux-4.4.14/fs/xfs/libxfs/ |
H A D | xfs_dir2.c | 365 int lock_mode; xfs_dir_lookup() local 391 lock_mode = xfs_ilock_data_map_shared(dp); xfs_dir_lookup() 424 xfs_iunlock(dp, lock_mode); xfs_dir_lookup()
|
H A D | xfs_attr.c | 125 uint lock_mode; xfs_attr_get() local 145 lock_mode = xfs_ilock_attr_map_shared(ip); xfs_attr_get() 154 xfs_iunlock(ip, lock_mode); xfs_attr_get()
|
Completed in 231 milliseconds