/linux/fs/xfs/ |
H A D | xfs_exchrange.c | 87 struct inode *inode2 = VFS_I(ip2); in xfs_exchrange_check_freshness() local 88 struct timespec64 ctime = inode_get_ctime(inode2); in xfs_exchrange_check_freshness() 89 struct timespec64 mtime = inode_get_mtime(inode2); in xfs_exchrange_check_freshness() 95 fxr->file2_gen != inode2->i_generation || in xfs_exchrange_check_freshness() 355 struct inode *inode2 = file_inode(fxr->file2); in xfs_exchange_range_checks() local 363 if (IS_IMMUTABLE(inode1) || IS_IMMUTABLE(inode2)) in xfs_exchange_range_checks() 365 if (IS_SWAPFILE(inode1) || IS_SWAPFILE(inode2)) in xfs_exchange_range_checks() 369 size2 = i_size_read(inode2); in xfs_exchange_range_checks() 445 if (inode1 == inode2 && in xfs_exchange_range_checks() 478 struct inode *inode2 = file_inode(fxr->file2); in xfs_exchange_range_prep() local [all …]
|
H A D | xfs_trace.h | 5150 struct inode *inode2 = VFS_I(ip2); 5152 __entry->dev = inode2->i_sb->s_dev; 5155 ts64 = inode_get_ctime(inode2); 5159 ts64 = inode_get_mtime(inode2);
|
/linux/fs/ntfs3/ |
H A D | fsntfs.c | 213 struct inode *inode, *inode2; in ntfs_extend_init() local 239 inode2 = dir_search_u(inode, &NAME_OBJID, NULL); in ntfs_extend_init() 240 if (inode2 && !IS_ERR(inode2)) { in ntfs_extend_init() 241 if (is_bad_inode(inode2)) { in ntfs_extend_init() 242 iput(inode2); in ntfs_extend_init() 244 sbi->objid.ni = ntfs_i(inode2); in ntfs_extend_init() 245 sbi->objid_no = inode2->i_ino; in ntfs_extend_init() 250 inode2 = dir_search_u(inode, &NAME_QUOTA, NULL); in ntfs_extend_init() 251 if (inode2 && !IS_ERR(inode2)) { in ntfs_extend_init() 252 sbi->quota_no = inode2->i_ino; in ntfs_extend_init() [all …]
|
/linux/fs/ext4/ |
H A D | move_extent.c | 122 mext_folio_double_lock(struct inode *inode1, struct inode *inode2, in mext_folio_double_lock() argument 128 BUG_ON(!inode1 || !inode2); in mext_folio_double_lock() 129 if (inode1 < inode2) { in mext_folio_double_lock() 131 mapping[1] = inode2->i_mapping; in mext_folio_double_lock() 134 mapping[0] = inode2->i_mapping; in mext_folio_double_lock() 161 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 318 ei2 = EXT4_I(inode2); in swap_inode_data() 320 swap(inode1->i_version, inode2->i_version); in swap_inode_data() 323 ts2 = inode_get_atime(inode2); in swap_inode_data() 325 inode_set_atime_to_ts(inode2, ts1); in swap_inode_data() 328 ts2 = inode_get_mtime(inode2); in swap_inode_data() 330 inode_set_mtime_to_ts(inode2, ts1); in swap_inode_data() 339 ext4_es_remove_extent(inode2, 0, EXT_MAX_BLOCKS); in swap_inode_data() 342 i_size_write(inode1, i_size_read(inode2)); in swap_inode_data() 343 i_size_write(inode2, isize); in swap_inode_data()
|
H A D | extents.c | 5648 struct inode *inode2, ext4_lblk_t lblk1, ext4_lblk_t lblk2, in ext4_swap_extents() argument 5656 BUG_ON(!rwsem_is_locked(&EXT4_I(inode2)->i_data_sem)); in ext4_swap_extents() 5658 BUG_ON(!inode_is_locked(inode2)); in ext4_swap_extents() 5661 ext4_es_remove_extent(inode2, lblk2, count); in ext4_swap_extents() 5674 path2 = ext4_find_extent(inode2, lblk2, path2, EXT4_EX_NOCACHE); in ext4_swap_extents() 5730 path2 = ext4_force_split_extent_at(handle, inode2, in ext4_swap_extents() 5760 path2 = ext4_force_split_extent_at(handle, inode2, in ext4_swap_extents() 5776 *erp = ext4_ext_get_access(handle, inode2, path2 + path2->p_depth); in ext4_swap_extents() 5791 ext4_ext_try_to_merge(handle, inode2, path2, ex2); in ext4_swap_extents() 5793 *erp = ext4_ext_dirty(handle, inode2, path2 + in ext4_swap_extents()
|
H A D | ext4.h | 3729 struct inode *inode2, ext4_lblk_t lblk1,
|
/linux/fs/btrfs/ |
H A D | reflink.c | 620 static void btrfs_double_mmap_lock(struct inode *inode1, struct inode *inode2) in btrfs_double_mmap_lock() argument 622 if (inode1 < inode2) in btrfs_double_mmap_lock() 623 swap(inode1, inode2); in btrfs_double_mmap_lock() 625 down_write_nested(&BTRFS_I(inode2)->i_mmap_lock, SINGLE_DEPTH_NESTING); in btrfs_double_mmap_lock() 628 static void btrfs_double_mmap_unlock(struct inode *inode1, struct inode *inode2) in btrfs_double_mmap_unlock() argument 631 up_write(&BTRFS_I(inode2)->i_mmap_lock); in btrfs_double_mmap_unlock()
|
/linux/fs/ |
H A D | inode.c | 1272 void lock_two_nondirectories(struct inode *inode1, struct inode *inode2) in lock_two_nondirectories() argument 1276 if (inode2) in lock_two_nondirectories() 1277 WARN_ON_ONCE(S_ISDIR(inode2->i_mode)); in lock_two_nondirectories() 1278 if (inode1 > inode2) in lock_two_nondirectories() 1279 swap(inode1, inode2); in lock_two_nondirectories() 1282 if (inode2 && inode2 != inode1) in lock_two_nondirectories() 1283 inode_lock_nested(inode2, I_MUTEX_NONDIR2); in lock_two_nondirectories() 1292 void unlock_two_nondirectories(struct inode *inode1, struct inode *inode2) in unlock_two_nondirectories() argument 1298 if (inode2 && inode2 != inode1) { in unlock_two_nondirectories() 1299 WARN_ON_ONCE(S_ISDIR(inode2->i_mode)); in unlock_two_nondirectories() [all …]
|
/linux/fs/ubifs/ |
H A D | dir.c | 426 static void lock_2_inodes(struct inode *inode1, struct inode *inode2) in lock_2_inodes() argument 429 mutex_lock_nested(&ubifs_inode(inode2)->ui_mutex, WB_MUTEX_2); in lock_2_inodes() 437 static void unlock_2_inodes(struct inode *inode1, struct inode *inode2) in unlock_2_inodes() argument 439 mutex_unlock(&ubifs_inode(inode2)->ui_mutex); in unlock_2_inodes() 1290 static void lock_4_inodes(struct inode *inode1, struct inode *inode2, in lock_4_inodes() argument 1294 if (inode2 != inode1) in lock_4_inodes() 1295 mutex_lock_nested(&ubifs_inode(inode2)->ui_mutex, WB_MUTEX_2); in lock_4_inodes() 1309 static void unlock_4_inodes(struct inode *inode1, struct inode *inode2, in unlock_4_inodes() argument 1316 if (inode1 != inode2) in unlock_4_inodes() 1317 mutex_unlock(&ubifs_inode(inode2)->ui_mutex); in unlock_4_inodes()
|
H A D | ubifs.h | 1819 const struct inode *inode2);
|
/linux/fs/ocfs2/ |
H A D | namei.c | 89 struct inode *inode2, 92 static void ocfs2_double_unlock(struct inode *inode1, struct inode *inode2); 1116 struct inode *inode2, in ocfs2_double_lock() argument 1122 struct ocfs2_inode_info *oi2 = OCFS2_I(inode2); in ocfs2_double_lock() 1154 swap(inode2, inode1); in ocfs2_double_lock() 1157 status = ocfs2_inode_lock_nested(inode2, bh2, 1, in ocfs2_double_lock() 1175 ocfs2_inode_unlock(inode2, 1); in ocfs2_double_lock() 1194 static void ocfs2_double_unlock(struct inode *inode1, struct inode *inode2) in ocfs2_double_unlock() argument 1198 if (inode1 != inode2) in ocfs2_double_unlock() 1199 ocfs2_inode_unlock(inode2, 1); in ocfs2_double_unlock()
|
H A D | refcounttree.c | 4707 struct inode *inode2 = t_inode; in ocfs2_reflink_inodes_lock() local 4713 bool need_swap = (inode1->i_ino > inode2->i_ino); in ocfs2_reflink_inodes_lock() 4719 swap(inode1, inode2); in ocfs2_reflink_inodes_lock() 4727 status = ocfs2_rw_lock(inode2, 1); in ocfs2_reflink_inodes_lock() 4736 oi2 = OCFS2_I(inode2); in ocfs2_reflink_inodes_lock() 4756 status = ocfs2_inode_lock_nested(inode2, &bh2, 1, in ocfs2_reflink_inodes_lock() 4786 ocfs2_rw_unlock(inode2, 1); in ocfs2_reflink_inodes_lock()
|