Home
last modified time | relevance | path

Searched refs:inode2 (Results 1 – 11 of 11) sorted by relevance

/fs/ext4/
Dmove_extent.c126 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()
Dioctl.c61 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()
Dextents.c5778 struct inode *inode2, ext4_lblk_t lblk1, ext4_lblk_t lblk2, in ext4_swap_extents() argument
5786 BUG_ON(!rwsem_is_locked(&EXT4_I(inode2)->i_data_sem)); in ext4_swap_extents()
5788 BUG_ON(!inode_is_locked(inode2)); in ext4_swap_extents()
5793 *erp = ext4_es_remove_extent(inode2, lblk2, count); in ext4_swap_extents()
5811 path2 = ext4_find_extent(inode2, lblk2, NULL, EXT4_EX_NOCACHE); in ext4_swap_extents()
5866 *erp = ext4_force_split_extent_at(handle, inode2, in ext4_swap_extents()
5892 *erp = ext4_force_split_extent_at(handle, inode2, in ext4_swap_extents()
5906 *erp = ext4_ext_get_access(handle, inode2, path2 + path2->p_depth); in ext4_swap_extents()
5921 ext4_ext_try_to_merge(handle, inode2, path2, ex2); in ext4_swap_extents()
5923 *erp = ext4_ext_dirty(handle, inode2, path2 + in ext4_swap_extents()
Dext4.h3298 struct inode *inode2, ext4_lblk_t lblk1,
/fs/
Dinode.c1024 void lock_two_nondirectories(struct inode *inode1, struct inode *inode2) in lock_two_nondirectories() argument
1026 if (inode1 > inode2) in lock_two_nondirectories()
1027 swap(inode1, inode2); in lock_two_nondirectories()
1031 if (inode2 && !S_ISDIR(inode2->i_mode) && inode2 != inode1) in lock_two_nondirectories()
1032 inode_lock_nested(inode2, I_MUTEX_NONDIR2); in lock_two_nondirectories()
1041 void unlock_two_nondirectories(struct inode *inode1, struct inode *inode2) in unlock_two_nondirectories() argument
1045 if (inode2 && !S_ISDIR(inode2->i_mode) && inode2 != inode1) in unlock_two_nondirectories()
1046 inode_unlock(inode2); in unlock_two_nondirectories()
Dnamei.c1463 struct inode *inode2 = mountpoint->d_inode; in follow_dotdot_rcu() local
1472 inode = inode2; in follow_dotdot_rcu()
/fs/ubifs/
Ddir.c668 static void lock_2_inodes(struct inode *inode1, struct inode *inode2) in lock_2_inodes() argument
671 mutex_lock_nested(&ubifs_inode(inode2)->ui_mutex, WB_MUTEX_2); in lock_2_inodes()
679 static void unlock_2_inodes(struct inode *inode1, struct inode *inode2) in unlock_2_inodes() argument
681 mutex_unlock(&ubifs_inode(inode2)->ui_mutex); in unlock_2_inodes()
1214 static void lock_4_inodes(struct inode *inode1, struct inode *inode2, in lock_4_inodes() argument
1218 if (inode2 != inode1) in lock_4_inodes()
1219 mutex_lock_nested(&ubifs_inode(inode2)->ui_mutex, WB_MUTEX_2); in lock_4_inodes()
1233 static void unlock_4_inodes(struct inode *inode1, struct inode *inode2, in unlock_4_inodes() argument
1240 if (inode1 != inode2) in unlock_4_inodes()
1241 mutex_unlock(&ubifs_inode(inode2)->ui_mutex); in unlock_4_inodes()
Dubifs.h1788 const struct inode *inode2);
/fs/ocfs2/
Dnamei.c90 struct inode *inode2,
93 static void ocfs2_double_unlock(struct inode *inode1, struct inode *inode2);
1106 struct inode *inode2, in ocfs2_double_lock() argument
1112 struct ocfs2_inode_info *oi2 = OCFS2_I(inode2); in ocfs2_double_lock()
1144 swap(inode2, inode1); in ocfs2_double_lock()
1147 status = ocfs2_inode_lock_nested(inode2, bh2, 1, in ocfs2_double_lock()
1165 ocfs2_inode_unlock(inode2, 1); in ocfs2_double_lock()
1184 static void ocfs2_double_unlock(struct inode *inode1, struct inode *inode2) in ocfs2_double_unlock() argument
1188 if (inode1 != inode2) in ocfs2_double_unlock()
1189 ocfs2_inode_unlock(inode2, 1); in ocfs2_double_unlock()
Drefcounttree.c4719 struct inode *inode2 = t_inode; in ocfs2_reflink_inodes_lock() local
4725 bool need_swap = (inode1->i_ino > inode2->i_ino); in ocfs2_reflink_inodes_lock()
4731 swap(inode1, inode2); in ocfs2_reflink_inodes_lock()
4739 status = ocfs2_rw_lock(inode2, 1); in ocfs2_reflink_inodes_lock()
4748 oi2 = OCFS2_I(inode2); in ocfs2_reflink_inodes_lock()
4768 status = ocfs2_inode_lock_nested(inode2, &bh2, 1, in ocfs2_reflink_inodes_lock()
4798 ocfs2_rw_unlock(inode2, 1); in ocfs2_reflink_inodes_lock()
/fs/btrfs/
Dioctl.c3225 struct inode *inode2, u64 loff2, u64 len) in btrfs_double_extent_unlock() argument
3228 unlock_extent(&BTRFS_I(inode2)->io_tree, loff2, loff2 + len - 1); in btrfs_double_extent_unlock()
3232 struct inode *inode2, u64 loff2, u64 len) in btrfs_double_extent_lock() argument
3234 if (inode1 < inode2) { in btrfs_double_extent_lock()
3235 swap(inode1, inode2); in btrfs_double_extent_lock()
3237 } else if (inode1 == inode2 && loff2 < loff1) { in btrfs_double_extent_lock()
3241 lock_extent(&BTRFS_I(inode2)->io_tree, loff2, loff2 + len - 1); in btrfs_double_extent_lock()