/fs/ |
D | inode.c | 1030 void lock_two_inodes(struct inode *inode1, struct inode *inode2, in lock_two_inodes() argument 1033 if (!inode1 || !inode2) { in lock_two_inodes() 1040 swap(inode1, inode2); in lock_two_inodes() 1048 if (S_ISDIR(inode2->i_mode) == S_ISDIR(inode1->i_mode)) { in lock_two_inodes() 1049 if (inode1 > inode2) in lock_two_inodes() 1050 swap(inode1, inode2); in lock_two_inodes() 1052 swap(inode1, inode2); in lock_two_inodes() 1056 if (inode2 && inode2 != inode1) in lock_two_inodes() 1057 inode_lock_nested(inode2, subclass2); in lock_two_inodes() 1069 void lock_two_nondirectories(struct inode *inode1, struct inode *inode2) in lock_two_nondirectories() argument [all …]
|
D | internal.h | 153 void lock_two_inodes(struct inode *inode1, struct inode *inode2,
|
/fs/ext4/ |
D | move_extent.c | 126 mext_page_double_lock(struct inode *inode1, struct inode *inode2, in mext_page_double_lock() argument 132 BUG_ON(!inode1 || !inode2); in mext_page_double_lock() 133 if (inode1 < inode2) { in mext_page_double_lock() 135 mapping[1] = inode2->i_mapping; in mext_page_double_lock() 138 mapping[0] = inode2->i_mapping; in mext_page_double_lock() 159 if (inode1 > inode2) in mext_page_double_lock()
|
D | ioctl.c | 61 static void swap_inode_data(struct inode *inode1, struct inode *inode2) in swap_inode_data() argument 69 ei2 = EXT4_I(inode2); in swap_inode_data() 71 swap(inode1->i_version, inode2->i_version); in swap_inode_data() 72 swap(inode1->i_atime, inode2->i_atime); in swap_inode_data() 73 swap(inode1->i_mtime, inode2->i_mtime); in swap_inode_data() 82 ext4_es_remove_extent(inode2, 0, EXT_MAX_BLOCKS); in swap_inode_data() 85 i_size_write(inode1, i_size_read(inode2)); in swap_inode_data() 86 i_size_write(inode2, isize); in swap_inode_data()
|
D | extents.c | 5639 struct inode *inode2, ext4_lblk_t lblk1, ext4_lblk_t lblk2, in ext4_swap_extents() argument 5647 BUG_ON(!rwsem_is_locked(&EXT4_I(inode2)->i_data_sem)); in ext4_swap_extents() 5649 BUG_ON(!inode_is_locked(inode2)); in ext4_swap_extents() 5654 *erp = ext4_es_remove_extent(inode2, lblk2, count); in ext4_swap_extents() 5672 path2 = ext4_find_extent(inode2, lblk2, NULL, EXT4_EX_NOCACHE); in ext4_swap_extents() 5727 *erp = ext4_force_split_extent_at(handle, inode2, in ext4_swap_extents() 5753 *erp = ext4_force_split_extent_at(handle, inode2, in ext4_swap_extents() 5767 *erp = ext4_ext_get_access(handle, inode2, path2 + path2->p_depth); in ext4_swap_extents() 5782 ext4_ext_try_to_merge(handle, inode2, path2, ex2); in ext4_swap_extents() 5784 *erp = ext4_ext_dirty(handle, inode2, path2 + in ext4_swap_extents()
|
D | ext4.h | 3626 struct inode *inode2, ext4_lblk_t lblk1,
|
/fs/btrfs/ |
D | reflink.c | 601 struct inode *inode2, u64 loff2, u64 len) in btrfs_double_extent_unlock() argument 604 unlock_extent(&BTRFS_I(inode2)->io_tree, loff2, loff2 + len - 1); in btrfs_double_extent_unlock() 608 struct inode *inode2, u64 loff2, u64 len) in btrfs_double_extent_lock() argument 610 if (inode1 < inode2) { in btrfs_double_extent_lock() 611 swap(inode1, inode2); in btrfs_double_extent_lock() 613 } else if (inode1 == inode2 && loff2 < loff1) { in btrfs_double_extent_lock() 617 lock_extent(&BTRFS_I(inode2)->io_tree, loff2, loff2 + len - 1); in btrfs_double_extent_lock()
|
/fs/ubifs/ |
D | dir.c | 678 static void lock_2_inodes(struct inode *inode1, struct inode *inode2) in lock_2_inodes() argument 681 mutex_lock_nested(&ubifs_inode(inode2)->ui_mutex, WB_MUTEX_2); in lock_2_inodes() 689 static void unlock_2_inodes(struct inode *inode1, struct inode *inode2) in unlock_2_inodes() argument 691 mutex_unlock(&ubifs_inode(inode2)->ui_mutex); in unlock_2_inodes() 1227 static void lock_4_inodes(struct inode *inode1, struct inode *inode2, in lock_4_inodes() argument 1231 if (inode2 != inode1) in lock_4_inodes() 1232 mutex_lock_nested(&ubifs_inode(inode2)->ui_mutex, WB_MUTEX_2); in lock_4_inodes() 1246 static void unlock_4_inodes(struct inode *inode1, struct inode *inode2, in unlock_4_inodes() argument 1253 if (inode1 != inode2) in unlock_4_inodes() 1254 mutex_unlock(&ubifs_inode(inode2)->ui_mutex); in unlock_4_inodes()
|
D | ubifs.h | 1796 const struct inode *inode2);
|
/fs/ocfs2/ |
D | namei.c | 90 struct inode *inode2, 93 static void ocfs2_double_unlock(struct inode *inode1, struct inode *inode2); 1110 struct inode *inode2, in ocfs2_double_lock() argument 1116 struct ocfs2_inode_info *oi2 = OCFS2_I(inode2); in ocfs2_double_lock() 1148 swap(inode2, inode1); in ocfs2_double_lock() 1151 status = ocfs2_inode_lock_nested(inode2, bh2, 1, in ocfs2_double_lock() 1169 ocfs2_inode_unlock(inode2, 1); in ocfs2_double_lock() 1188 static void ocfs2_double_unlock(struct inode *inode1, struct inode *inode2) in ocfs2_double_unlock() argument 1192 if (inode1 != inode2) in ocfs2_double_unlock() 1193 ocfs2_inode_unlock(inode2, 1); in ocfs2_double_unlock()
|
D | refcounttree.c | 4721 struct inode *inode2 = t_inode; in ocfs2_reflink_inodes_lock() local 4727 bool need_swap = (inode1->i_ino > inode2->i_ino); in ocfs2_reflink_inodes_lock() 4733 swap(inode1, inode2); in ocfs2_reflink_inodes_lock() 4741 status = ocfs2_rw_lock(inode2, 1); in ocfs2_reflink_inodes_lock() 4750 oi2 = OCFS2_I(inode2); in ocfs2_reflink_inodes_lock() 4770 status = ocfs2_inode_lock_nested(inode2, &bh2, 1, in ocfs2_reflink_inodes_lock() 4800 ocfs2_rw_unlock(inode2, 1); in ocfs2_reflink_inodes_lock()
|