Home
last modified time | relevance | path

Searched refs:inode1 (Results 1 – 13 of 13) sorted by relevance

/openbmc/linux/fs/btrfs/
H A Dreflink.c620 static void btrfs_double_extent_unlock(struct inode *inode1, u64 loff1, in btrfs_double_extent_unlock() argument
627 static void btrfs_double_extent_lock(struct inode *inode1, u64 loff1, in btrfs_double_extent_lock() argument
633 if (inode1 < inode2) { in btrfs_double_extent_lock()
634 swap(inode1, inode2); in btrfs_double_extent_lock()
637 } else if (inode1 == inode2 && loff2 < loff1) { in btrfs_double_extent_lock()
642 lock_extent(&BTRFS_I(inode1)->io_tree, loff1, range1_end, NULL); in btrfs_double_extent_lock()
645 btrfs_assert_inode_range_clean(BTRFS_I(inode1), loff1, range1_end); in btrfs_double_extent_lock()
651 if (inode1 < inode2) in btrfs_double_mmap_lock()
652 swap(inode1, inode2); in btrfs_double_mmap_lock()
653 down_write(&BTRFS_I(inode1)->i_mmap_lock); in btrfs_double_mmap_lock()
[all …]
/openbmc/linux/fs/
H A Dinode.c1146 if (!inode1 || !inode2) { in lock_two_inodes()
1152 if (!inode1) in lock_two_inodes()
1153 swap(inode1, inode2); in lock_two_inodes()
1162 if (inode1 > inode2) in lock_two_inodes()
1163 swap(inode1, inode2); in lock_two_inodes()
1165 swap(inode1, inode2); in lock_two_inodes()
1167 if (inode1) in lock_two_inodes()
1169 if (inode2 && inode2 != inode1) in lock_two_inodes()
1184 if (inode1) in lock_two_nondirectories()
1199 if (inode1) { in unlock_two_nondirectories()
[all …]
H A Dinternal.h191 void lock_two_inodes(struct inode *inode1, struct inode *inode2,
/openbmc/linux/fs/ext4/
H A Dmove_extent.c123 mext_folio_double_lock(struct inode *inode1, struct inode *inode2, in mext_folio_double_lock() argument
129 BUG_ON(!inode1 || !inode2); in mext_folio_double_lock()
130 if (inode1 < inode2) { in mext_folio_double_lock()
131 mapping[0] = inode1->i_mapping; in mext_folio_double_lock()
136 mapping[1] = inode1->i_mapping; in mext_folio_double_lock()
162 if (inode1 > inode2) in mext_folio_double_lock()
H A Dioctl.c309 static void swap_inode_data(struct inode *inode1, struct inode *inode2) in swap_inode_data() argument
316 ei1 = EXT4_I(inode1); in swap_inode_data()
319 swap(inode1->i_version, inode2->i_version); in swap_inode_data()
320 swap(inode1->i_atime, inode2->i_atime); in swap_inode_data()
321 swap(inode1->i_mtime, inode2->i_mtime); in swap_inode_data()
329 ext4_es_remove_extent(inode1, 0, EXT_MAX_BLOCKS); in swap_inode_data()
332 isize = i_size_read(inode1); in swap_inode_data()
333 i_size_write(inode1, i_size_read(inode2)); in swap_inode_data()
H A Dextents.c5635 ext4_swap_extents(handle_t *handle, struct inode *inode1, in ext4_swap_extents() argument
5643 BUG_ON(!rwsem_is_locked(&EXT4_I(inode1)->i_data_sem)); in ext4_swap_extents()
5645 BUG_ON(!inode_is_locked(inode1)); in ext4_swap_extents()
5648 ext4_es_remove_extent(inode1, lblk1, count); in ext4_swap_extents()
5657 path1 = ext4_find_extent(inode1, lblk1, NULL, EXT4_EX_NOCACHE); in ext4_swap_extents()
5713 *erp = ext4_force_split_extent_at(handle, inode1, in ext4_swap_extents()
5739 *erp = ext4_force_split_extent_at(handle, inode1, in ext4_swap_extents()
5757 *erp = ext4_ext_get_access(handle, inode1, path1 + path1->p_depth); in ext4_swap_extents()
5776 ext4_ext_try_to_merge(handle, inode1, path1, ex1); in ext4_swap_extents()
5781 *erp = ext4_ext_dirty(handle, inode1, path1 + in ext4_swap_extents()
H A Dext4.h3703 extern int ext4_swap_extents(handle_t *handle, struct inode *inode1,
/openbmc/linux/fs/ubifs/
H A Ddir.c405 static void lock_2_inodes(struct inode *inode1, struct inode *inode2) in lock_2_inodes() argument
407 mutex_lock_nested(&ubifs_inode(inode1)->ui_mutex, WB_MUTEX_1); in lock_2_inodes()
416 static void unlock_2_inodes(struct inode *inode1, struct inode *inode2) in unlock_2_inodes() argument
419 mutex_unlock(&ubifs_inode(inode1)->ui_mutex); in unlock_2_inodes()
1253 static void lock_4_inodes(struct inode *inode1, struct inode *inode2, in lock_4_inodes() argument
1256 mutex_lock_nested(&ubifs_inode(inode1)->ui_mutex, WB_MUTEX_1); in lock_4_inodes()
1257 if (inode2 != inode1) in lock_4_inodes()
1272 static void unlock_4_inodes(struct inode *inode1, struct inode *inode2, in unlock_4_inodes() argument
1279 if (inode1 != inode2) in unlock_4_inodes()
1281 mutex_unlock(&ubifs_inode(inode1)->ui_mutex); in unlock_4_inodes()
H A Dubifs.h1824 int ubifs_jnl_change_xattr(struct ubifs_info *c, const struct inode *inode1,
/openbmc/linux/fs/ocfs2/
H A Dnamei.c87 struct inode *inode1,
92 static void ocfs2_double_unlock(struct inode *inode1, struct inode *inode2);
1112 struct inode *inode1, in ocfs2_double_lock() argument
1119 struct ocfs2_inode_info *oi1 = OCFS2_I(inode1); in ocfs2_double_lock()
1152 swap(inode2, inode1); in ocfs2_double_lock()
1165 status = ocfs2_inode_lock_nested(inode1, bh1, 1, in ocfs2_double_lock()
1192 static void ocfs2_double_unlock(struct inode *inode1, struct inode *inode2) in ocfs2_double_unlock() argument
1194 ocfs2_inode_unlock(inode1, 1); in ocfs2_double_unlock()
1196 if (inode1 != inode2) in ocfs2_double_unlock()
H A Drefcounttree.c4713 struct inode *inode1 = s_inode; in ocfs2_reflink_inodes_lock() local
4720 bool need_swap = (inode1->i_ino > inode2->i_ino); in ocfs2_reflink_inodes_lock()
4726 swap(inode1, inode2); in ocfs2_reflink_inodes_lock()
4728 status = ocfs2_rw_lock(inode1, 1); in ocfs2_reflink_inodes_lock()
4742 oi1 = OCFS2_I(inode1); in ocfs2_reflink_inodes_lock()
4753 status = ocfs2_inode_lock_nested(inode1, &bh1, 1, in ocfs2_reflink_inodes_lock()
4790 ocfs2_inode_unlock(inode1, 1); in ocfs2_reflink_inodes_lock()
4795 ocfs2_rw_unlock(inode1, 1); in ocfs2_reflink_inodes_lock()
/openbmc/u-boot/fs/ubifs/
H A Dubifs.h2155 int ubifs_jnl_change_xattr(struct ubifs_info *c, const struct inode *inode1,
/openbmc/linux/Documentation/filesystems/
H A Dxfs-online-fsck-design.rst4114 offset ranges: ``(inode1, startoff1, blockcount)`` and ``(inode2, startoff2,