/openbmc/linux/fs/btrfs/ |
H A D | reflink.c | 620 static void btrfs_double_extent_unlock(struct inode *inode1, u64 loff1, in btrfs_double_extent_unlock() argument 623 unlock_extent(&BTRFS_I(inode1)->io_tree, loff1, loff1 + len - 1, NULL); in btrfs_double_extent_unlock() 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() 649 static void btrfs_double_mmap_lock(struct inode *inode1, struct inode *inode2) in btrfs_double_mmap_lock() argument 651 if (inode1 < inode2) in btrfs_double_mmap_lock() [all …]
|
/openbmc/linux/fs/ |
H A D | inode.c | 1147 void lock_two_inodes(struct inode *inode1, struct inode *inode2, in lock_two_inodes() argument 1150 if (!inode1 || !inode2) { in lock_two_inodes() 1156 if (!inode1) in lock_two_inodes() 1157 swap(inode1, inode2); in lock_two_inodes() 1165 if (S_ISDIR(inode2->i_mode) == S_ISDIR(inode1->i_mode)) { in lock_two_inodes() 1166 if (inode1 > inode2) in lock_two_inodes() 1167 swap(inode1, inode2); in lock_two_inodes() 1168 } else if (!S_ISDIR(inode1->i_mode)) in lock_two_inodes() 1169 swap(inode1, inode2); in lock_two_inodes() 1171 if (inode1) in lock_two_inodes() [all …]
|
H A D | internal.h | 191 void lock_two_inodes(struct inode *inode1, struct inode *inode2,
|
/openbmc/linux/fs/ext4/ |
H A D | move_extent.c | 123 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 D | ioctl.c | 309 static void swap_inode_data(struct inode *inode1, struct inode *inode2) in swap_inode_data() argument 317 ei1 = EXT4_I(inode1); in swap_inode_data() 320 swap(inode1->i_version, inode2->i_version); in swap_inode_data() 322 ts1 = inode_get_atime(inode1); in swap_inode_data() 324 inode_set_atime_to_ts(inode1, ts2); in swap_inode_data() 327 ts1 = inode_get_mtime(inode1); in swap_inode_data() 329 inode_set_mtime_to_ts(inode1, ts2); in swap_inode_data() 338 ext4_es_remove_extent(inode1, 0, EXT_MAX_BLOCKS); in swap_inode_data() 341 isize = i_size_read(inode1); in swap_inode_data() 342 i_size_write(inode1, i_size_read(inode2)); in swap_inode_data()
|
H A D | extents.c | 5641 ext4_swap_extents(handle_t *handle, struct inode *inode1, in ext4_swap_extents() argument 5649 BUG_ON(!rwsem_is_locked(&EXT4_I(inode1)->i_data_sem)); in ext4_swap_extents() 5651 BUG_ON(!inode_is_locked(inode1)); in ext4_swap_extents() 5654 ext4_es_remove_extent(inode1, lblk1, count); in ext4_swap_extents() 5663 path1 = ext4_find_extent(inode1, lblk1, NULL, EXT4_EX_NOCACHE); in ext4_swap_extents() 5719 *erp = ext4_force_split_extent_at(handle, inode1, in ext4_swap_extents() 5745 *erp = ext4_force_split_extent_at(handle, inode1, in ext4_swap_extents() 5763 *erp = ext4_ext_get_access(handle, inode1, path1 + path1->p_depth); in ext4_swap_extents() 5782 ext4_ext_try_to_merge(handle, inode1, path1, ex1); in ext4_swap_extents() 5787 *erp = ext4_ext_dirty(handle, inode1, path1 + in ext4_swap_extents()
|
H A D | ext4.h | 3705 extern int ext4_swap_extents(handle_t *handle, struct inode *inode1,
|
/openbmc/linux/fs/ubifs/ |
H A D | dir.c | 405 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 D | ubifs.h | 1824 int ubifs_jnl_change_xattr(struct ubifs_info *c, const struct inode *inode1,
|
/openbmc/linux/fs/ocfs2/ |
H A D | namei.c | 87 struct inode *inode1, 92 static void ocfs2_double_unlock(struct inode *inode1, struct inode *inode2); 1114 struct inode *inode1, in ocfs2_double_lock() argument 1121 struct ocfs2_inode_info *oi1 = OCFS2_I(inode1); in ocfs2_double_lock() 1154 swap(inode2, inode1); in ocfs2_double_lock() 1167 status = ocfs2_inode_lock_nested(inode1, bh1, 1, in ocfs2_double_lock() 1194 static void ocfs2_double_unlock(struct inode *inode1, struct inode *inode2) in ocfs2_double_unlock() argument 1196 ocfs2_inode_unlock(inode1, 1); in ocfs2_double_unlock() 1198 if (inode1 != inode2) in ocfs2_double_unlock()
|
H A D | refcounttree.c | 4713 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 D | ubifs.h | 2155 int ubifs_jnl_change_xattr(struct ubifs_info *c, const struct inode *inode1,
|
/openbmc/linux/Documentation/filesystems/ |
H A D | xfs-online-fsck-design.rst | 4114 offset ranges: ``(inode1, startoff1, blockcount)`` and ``(inode2, startoff2,
|