Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/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.c5621 struct inode *inode2, ext4_lblk_t lblk1, ext4_lblk_t lblk2, in ext4_swap_extents() argument
5629 BUG_ON(!rwsem_is_locked(&EXT4_I(inode2)->i_data_sem)); in ext4_swap_extents()
5631 BUG_ON(!inode_is_locked(inode2)); in ext4_swap_extents()
5636 *erp = ext4_es_remove_extent(inode2, lblk2, count); in ext4_swap_extents()
5654 path2 = ext4_find_extent(inode2, lblk2, NULL, EXT4_EX_NOCACHE); in ext4_swap_extents()
5709 *erp = ext4_force_split_extent_at(handle, inode2, in ext4_swap_extents()
5735 *erp = ext4_force_split_extent_at(handle, inode2, in ext4_swap_extents()
5749 *erp = ext4_ext_get_access(handle, inode2, path2 + path2->p_depth); in ext4_swap_extents()
5764 ext4_ext_try_to_merge(handle, inode2, path2, ex2); in ext4_swap_extents()
5766 *erp = ext4_ext_dirty(handle, inode2, path2 + in ext4_swap_extents()
Dext4.h3598 struct inode *inode2, ext4_lblk_t lblk1,
/kernel/linux/linux-5.10/fs/btrfs/
Dreflink.c601 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()
/kernel/linux/linux-5.10/fs/
Dinode.c1029 void lock_two_nondirectories(struct inode *inode1, struct inode *inode2) in lock_two_nondirectories() argument
1031 if (inode1 > inode2) in lock_two_nondirectories()
1032 swap(inode1, inode2); in lock_two_nondirectories()
1036 if (inode2 && !S_ISDIR(inode2->i_mode) && inode2 != inode1) in lock_two_nondirectories()
1037 inode_lock_nested(inode2, I_MUTEX_NONDIR2); in lock_two_nondirectories()
1046 void unlock_two_nondirectories(struct inode *inode1, struct inode *inode2) in unlock_two_nondirectories() argument
1050 if (inode2 && !S_ISDIR(inode2->i_mode) && inode2 != inode1) in unlock_two_nondirectories()
1051 inode_unlock(inode2); in unlock_two_nondirectories()
/kernel/linux/linux-5.10/fs/ubifs/
Ddir.c408 static void lock_2_inodes(struct inode *inode1, struct inode *inode2) in lock_2_inodes() argument
411 mutex_lock_nested(&ubifs_inode(inode2)->ui_mutex, WB_MUTEX_2); in lock_2_inodes()
419 static void unlock_2_inodes(struct inode *inode1, struct inode *inode2) in unlock_2_inodes() argument
421 mutex_unlock(&ubifs_inode(inode2)->ui_mutex); in unlock_2_inodes()
1252 static void lock_4_inodes(struct inode *inode1, struct inode *inode2, in lock_4_inodes() argument
1256 if (inode2 != inode1) in lock_4_inodes()
1257 mutex_lock_nested(&ubifs_inode(inode2)->ui_mutex, WB_MUTEX_2); in lock_4_inodes()
1271 static void unlock_4_inodes(struct inode *inode1, struct inode *inode2, in unlock_4_inodes() argument
1278 if (inode1 != inode2) in unlock_4_inodes()
1279 mutex_unlock(&ubifs_inode(inode2)->ui_mutex); in unlock_4_inodes()
Dubifs.h1796 const struct inode *inode2);
/kernel/linux/linux-5.10/fs/ocfs2/
Dnamei.c90 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()
Drefcounttree.c4721 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()