Searched refs:inode1 (Results 1 - 10 of 10) sorted by relevance

/linux-master/fs/btrfs/
H A Dreflink.c619 static void btrfs_double_extent_unlock(struct inode *inode1, u64 loff1, argument
622 unlock_extent(&BTRFS_I(inode1)->io_tree, loff1, loff1 + len - 1, NULL);
626 static void btrfs_double_extent_lock(struct inode *inode1, u64 loff1, argument
632 if (inode1 < inode2) {
633 swap(inode1, inode2);
636 } else if (inode1 == inode2 && loff2 < loff1) {
641 lock_extent(&BTRFS_I(inode1)->io_tree, loff1, range1_end, NULL);
644 btrfs_assert_inode_range_clean(BTRFS_I(inode1), loff1, range1_end);
648 static void btrfs_double_mmap_lock(struct inode *inode1, struct inode *inode2) argument
650 if (inode1 < inode
656 btrfs_double_mmap_unlock(struct inode *inode1, struct inode *inode2) argument
[all...]
/linux-master/fs/ext4/
H A Dmove_extent.c113 * mext_folio_double_lock - Grab and lock folio on both @inode1 and @inode2
115 * @inode1: the inode structure
124 mext_folio_double_lock(struct inode *inode1, struct inode *inode2, argument
130 BUG_ON(!inode1 || !inode2);
131 if (inode1 < inode2) {
132 mapping[0] = inode1->i_mapping;
137 mapping[1] = inode1->i_mapping;
163 if (inode1 > inode2)
H A Dioctl.c299 * Swap i_data and associated attributes between @inode1 and @inode2.
300 * This function is used for the primary swap between inode1 and inode2
306 * @inode1: pointer to first inode
309 static void swap_inode_data(struct inode *inode1, struct inode *inode2) argument
317 ei1 = EXT4_I(inode1);
320 swap(inode1->i_version, inode2->i_version);
322 ts1 = inode_get_atime(inode1);
324 inode_set_atime_to_ts(inode1, ts2);
327 ts1 = inode_get_mtime(inode1);
329 inode_set_mtime_to_ts(inode1, ts
[all...]
H A Dextents.c5598 * @inode1: First inode
5616 ext4_swap_extents(handle_t *handle, struct inode *inode1, argument
5624 BUG_ON(!rwsem_is_locked(&EXT4_I(inode1)->i_data_sem));
5626 BUG_ON(!inode_is_locked(inode1));
5629 ext4_es_remove_extent(inode1, lblk1, count);
5638 path1 = ext4_find_extent(inode1, lblk1, NULL, EXT4_EX_NOCACHE);
5694 *erp = ext4_force_split_extent_at(handle, inode1,
5720 *erp = ext4_force_split_extent_at(handle, inode1,
5738 *erp = ext4_ext_get_access(handle, inode1, path1 + path1->p_depth);
5757 ext4_ext_try_to_merge(handle, inode1, path
[all...]
H A Dext4.h3716 extern int ext4_swap_extents(handle_t *handle, struct inode *inode1,
/linux-master/fs/
H A Dinode.c1099 * @inode1: first inode to lock
1102 void lock_two_nondirectories(struct inode *inode1, struct inode *inode2) argument
1104 if (inode1)
1105 WARN_ON_ONCE(S_ISDIR(inode1->i_mode));
1108 if (inode1 > inode2)
1109 swap(inode1, inode2);
1110 if (inode1)
1111 inode_lock(inode1);
1112 if (inode2 && inode2 != inode1)
1119 * @inode1
1122 unlock_two_nondirectories(struct inode *inode1, struct inode *inode2) argument
[all...]
/linux-master/fs/ubifs/
H A Ddir.c398 * @inode1: first inode
405 static void lock_2_inodes(struct inode *inode1, struct inode *inode2) argument
407 mutex_lock_nested(&ubifs_inode(inode1)->ui_mutex, WB_MUTEX_1);
413 * @inode1: first inode
416 static void unlock_2_inodes(struct inode *inode1, struct inode *inode2) argument
419 mutex_unlock(&ubifs_inode(inode1)->ui_mutex);
1251 * @inode1: first inode
1256 * This function is used for 'ubifs_rename()' and @inode1 may be the same as
1263 static void lock_4_inodes(struct inode *inode1, struct inode *inode2, argument
1266 mutex_lock_nested(&ubifs_inode(inode1)
1282 unlock_4_inodes(struct inode *inode1, struct inode *inode2, struct inode *inode3, struct inode *inode4) argument
[all...]
H A Dubifs.h1828 int ubifs_jnl_change_xattr(struct ubifs_info *c, const struct inode *inode1,
/linux-master/fs/ocfs2/
H A Dnamei.c87 struct inode *inode1,
92 static void ocfs2_double_unlock(struct inode *inode1, struct inode *inode2);
1110 struct inode *inode1,
1117 struct ocfs2_inode_info *oi1 = OCFS2_I(inode1);
1150 swap(inode2, inode1);
1163 status = ocfs2_inode_lock_nested(inode1, bh1, 1,
1190 static void ocfs2_double_unlock(struct inode *inode1, struct inode *inode2) argument
1192 ocfs2_inode_unlock(inode1, 1);
1194 if (inode1 != inode2)
1108 ocfs2_double_lock(struct ocfs2_super *osb, struct buffer_head **bh1, struct inode *inode1, struct buffer_head **bh2, struct inode *inode2, int rename) argument
H A Drefcounttree.c4691 struct inode *inode1 = s_inode; local
4698 bool need_swap = (inode1->i_ino > inode2->i_ino);
4704 swap(inode1, inode2);
4706 status = ocfs2_rw_lock(inode1, 1);
4720 oi1 = OCFS2_I(inode1);
4731 status = ocfs2_inode_lock_nested(inode1, &bh1, 1,
4768 ocfs2_inode_unlock(inode1, 1);
4773 ocfs2_rw_unlock(inode1, 1);

Completed in 192 milliseconds