/fs/ext4/ |
D | ioctl.c | 59 static void swap_inode_data(struct inode *inode1, struct inode *inode2) in swap_inode_data() argument 66 ei2 = EXT4_I(inode2); in swap_inode_data() 68 memswap(&inode1->i_flags, &inode2->i_flags, sizeof(inode1->i_flags)); in swap_inode_data() 69 memswap(&inode1->i_version, &inode2->i_version, in swap_inode_data() 71 memswap(&inode1->i_blocks, &inode2->i_blocks, in swap_inode_data() 73 memswap(&inode1->i_bytes, &inode2->i_bytes, sizeof(inode1->i_bytes)); in swap_inode_data() 74 memswap(&inode1->i_atime, &inode2->i_atime, sizeof(inode1->i_atime)); in swap_inode_data() 75 memswap(&inode1->i_mtime, &inode2->i_mtime, sizeof(inode1->i_mtime)); in swap_inode_data() 81 ext4_es_remove_extent(inode2, 0, EXT_MAX_BLOCKS); in swap_inode_data() 83 ext4_es_lru_del(inode2); in swap_inode_data() [all …]
|
D | move_extent.c | 134 mext_page_double_lock(struct inode *inode1, struct inode *inode2, in mext_page_double_lock() argument 140 BUG_ON(!inode1 || !inode2); in mext_page_double_lock() 141 if (inode1 < inode2) { in mext_page_double_lock() 143 mapping[1] = inode2->i_mapping; in mext_page_double_lock() 148 mapping[0] = inode2->i_mapping; in mext_page_double_lock() 169 if (inode1 > inode2) { in mext_page_double_lock()
|
D | extents.c | 5546 struct inode *inode2, ext4_lblk_t lblk1, ext4_lblk_t lblk2, in ext4_swap_extents() argument 5554 BUG_ON(!rwsem_is_locked(&EXT4_I(inode2)->i_data_sem)); in ext4_swap_extents() 5561 *erp = ext4_es_remove_extent(inode2, lblk2, count); in ext4_swap_extents() 5579 path2 = ext4_find_extent(inode2, lblk2, NULL, EXT4_EX_NOCACHE); in ext4_swap_extents() 5634 *erp = ext4_force_split_extent_at(handle, inode2, in ext4_swap_extents() 5660 *erp = ext4_force_split_extent_at(handle, inode2, in ext4_swap_extents() 5674 *erp = ext4_ext_get_access(handle, inode2, path2 + path2->p_depth); in ext4_swap_extents() 5689 ext4_ext_try_to_merge(handle, inode2, path2, ex2); in ext4_swap_extents() 5691 *erp = ext4_ext_dirty(handle, inode2, path2 + in ext4_swap_extents()
|
D | ext4.h | 2966 struct inode *inode2, ext4_lblk_t lblk1,
|
/fs/ubifs/ |
D | dir.c | 478 static void lock_2_inodes(struct inode *inode1, struct inode *inode2) in lock_2_inodes() argument 481 mutex_lock_nested(&ubifs_inode(inode2)->ui_mutex, WB_MUTEX_2); in lock_2_inodes() 489 static void unlock_2_inodes(struct inode *inode1, struct inode *inode2) in unlock_2_inodes() argument 491 mutex_unlock(&ubifs_inode(inode2)->ui_mutex); in unlock_2_inodes() 926 static void lock_3_inodes(struct inode *inode1, struct inode *inode2, in lock_3_inodes() argument 930 if (inode2 != inode1) in lock_3_inodes() 931 mutex_lock_nested(&ubifs_inode(inode2)->ui_mutex, WB_MUTEX_2); in lock_3_inodes() 942 static void unlock_3_inodes(struct inode *inode1, struct inode *inode2, in unlock_3_inodes() argument 947 if (inode1 != inode2) in unlock_3_inodes() 948 mutex_unlock(&ubifs_inode(inode2)->ui_mutex); in unlock_3_inodes()
|
D | ubifs.h | 1550 const struct inode *inode2);
|
/fs/ |
D | inode.c | 957 void lock_two_nondirectories(struct inode *inode1, struct inode *inode2) in lock_two_nondirectories() argument 959 if (inode1 > inode2) in lock_two_nondirectories() 960 swap(inode1, inode2); in lock_two_nondirectories() 964 if (inode2 && !S_ISDIR(inode2->i_mode) && inode2 != inode1) in lock_two_nondirectories() 965 mutex_lock_nested(&inode2->i_mutex, I_MUTEX_NONDIR2); in lock_two_nondirectories() 974 void unlock_two_nondirectories(struct inode *inode1, struct inode *inode2) in unlock_two_nondirectories() argument 978 if (inode2 && !S_ISDIR(inode2->i_mode) && inode2 != inode1) in unlock_two_nondirectories() 979 mutex_unlock(&inode2->i_mutex); in unlock_two_nondirectories()
|
/fs/ocfs2/ |
D | namei.c | 101 struct inode *inode2, 104 static void ocfs2_double_unlock(struct inode *inode1, struct inode *inode2); 1088 struct inode *inode2, in ocfs2_double_lock() argument 1094 struct ocfs2_inode_info *oi2 = OCFS2_I(inode2); in ocfs2_double_lock() 1131 tmpinode = inode2; in ocfs2_double_lock() 1132 inode2 = inode1; in ocfs2_double_lock() 1136 status = ocfs2_inode_lock_nested(inode2, bh2, 1, in ocfs2_double_lock() 1154 ocfs2_inode_unlock(inode2, 1); in ocfs2_double_lock() 1165 (unsigned long long)OCFS2_I(inode2)->ip_blkno); in ocfs2_double_lock() 1173 static void ocfs2_double_unlock(struct inode *inode1, struct inode *inode2) in ocfs2_double_unlock() argument [all …]
|
/fs/btrfs/ |
D | ioctl.c | 2843 struct inode *inode2, u64 loff2, u64 len) in btrfs_double_unlock() argument 2846 unlock_extent(&BTRFS_I(inode2)->io_tree, loff2, loff2 + len - 1); in btrfs_double_unlock() 2849 mutex_unlock(&inode2->i_mutex); in btrfs_double_unlock() 2853 struct inode *inode2, u64 loff2, u64 len) in btrfs_double_lock() argument 2855 if (inode1 < inode2) { in btrfs_double_lock() 2856 swap(inode1, inode2); in btrfs_double_lock() 2862 if (inode1 != inode2) { in btrfs_double_lock() 2863 mutex_lock_nested(&inode2->i_mutex, I_MUTEX_CHILD); in btrfs_double_lock() 2864 lock_extent_range(inode2, loff2, len); in btrfs_double_lock()
|