/fs/ext4/ |
D | move_extent.c | 126 mext_page_double_lock(struct inode *inode1, struct inode *inode2, in mext_page_double_lock() argument 132 BUG_ON(!inode1 || !inode2); in mext_page_double_lock() 133 if (inode1 < inode2) { in mext_page_double_lock() 134 mapping[0] = inode1->i_mapping; in mext_page_double_lock() 139 mapping[1] = inode1->i_mapping; in mext_page_double_lock() 159 if (inode1 > inode2) in mext_page_double_lock()
|
D | ioctl.c | 61 static void swap_inode_data(struct inode *inode1, struct inode *inode2) in swap_inode_data() argument 68 ei1 = EXT4_I(inode1); in swap_inode_data() 71 swap(inode1->i_version, inode2->i_version); in swap_inode_data() 72 swap(inode1->i_atime, inode2->i_atime); in swap_inode_data() 73 swap(inode1->i_mtime, inode2->i_mtime); in swap_inode_data() 81 ext4_es_remove_extent(inode1, 0, EXT_MAX_BLOCKS); in swap_inode_data() 84 isize = i_size_read(inode1); in swap_inode_data() 85 i_size_write(inode1, i_size_read(inode2)); in swap_inode_data()
|
D | extents.c | 5777 ext4_swap_extents(handle_t *handle, struct inode *inode1, in ext4_swap_extents() argument 5785 BUG_ON(!rwsem_is_locked(&EXT4_I(inode1)->i_data_sem)); in ext4_swap_extents() 5787 BUG_ON(!inode_is_locked(inode1)); in ext4_swap_extents() 5790 *erp = ext4_es_remove_extent(inode1, lblk1, count); in ext4_swap_extents() 5803 path1 = ext4_find_extent(inode1, lblk1, NULL, EXT4_EX_NOCACHE); in ext4_swap_extents() 5859 *erp = ext4_force_split_extent_at(handle, inode1, in ext4_swap_extents() 5885 *erp = ext4_force_split_extent_at(handle, inode1, in ext4_swap_extents() 5903 *erp = ext4_ext_get_access(handle, inode1, path1 + path1->p_depth); in ext4_swap_extents() 5922 ext4_ext_try_to_merge(handle, inode1, path1, ex1); in ext4_swap_extents() 5927 *erp = ext4_ext_dirty(handle, inode1, path1 + in ext4_swap_extents()
|
D | ext4.h | 3297 extern int ext4_swap_extents(handle_t *handle, struct inode *inode1,
|
/fs/ |
D | inode.c | 1024 void lock_two_nondirectories(struct inode *inode1, struct inode *inode2) in lock_two_nondirectories() argument 1026 if (inode1 > inode2) in lock_two_nondirectories() 1027 swap(inode1, inode2); in lock_two_nondirectories() 1029 if (inode1 && !S_ISDIR(inode1->i_mode)) in lock_two_nondirectories() 1030 inode_lock(inode1); in lock_two_nondirectories() 1031 if (inode2 && !S_ISDIR(inode2->i_mode) && inode2 != inode1) in lock_two_nondirectories() 1041 void unlock_two_nondirectories(struct inode *inode1, struct inode *inode2) in unlock_two_nondirectories() argument 1043 if (inode1 && !S_ISDIR(inode1->i_mode)) in unlock_two_nondirectories() 1044 inode_unlock(inode1); in unlock_two_nondirectories() 1045 if (inode2 && !S_ISDIR(inode2->i_mode) && inode2 != inode1) in unlock_two_nondirectories()
|
/fs/ubifs/ |
D | dir.c | 668 static void lock_2_inodes(struct inode *inode1, struct inode *inode2) in lock_2_inodes() argument 670 mutex_lock_nested(&ubifs_inode(inode1)->ui_mutex, WB_MUTEX_1); in lock_2_inodes() 679 static void unlock_2_inodes(struct inode *inode1, struct inode *inode2) in unlock_2_inodes() argument 682 mutex_unlock(&ubifs_inode(inode1)->ui_mutex); in unlock_2_inodes() 1214 static void lock_4_inodes(struct inode *inode1, struct inode *inode2, in lock_4_inodes() argument 1217 mutex_lock_nested(&ubifs_inode(inode1)->ui_mutex, WB_MUTEX_1); in lock_4_inodes() 1218 if (inode2 != inode1) in lock_4_inodes() 1233 static void unlock_4_inodes(struct inode *inode1, struct inode *inode2, in unlock_4_inodes() argument 1240 if (inode1 != inode2) in unlock_4_inodes() 1242 mutex_unlock(&ubifs_inode(inode1)->ui_mutex); in unlock_4_inodes()
|
D | ubifs.h | 1787 int ubifs_jnl_change_xattr(struct ubifs_info *c, const struct inode *inode1,
|
/fs/ocfs2/ |
D | namei.c | 88 struct inode *inode1, 93 static void ocfs2_double_unlock(struct inode *inode1, struct inode *inode2); 1104 struct inode *inode1, in ocfs2_double_lock() argument 1111 struct ocfs2_inode_info *oi1 = OCFS2_I(inode1); in ocfs2_double_lock() 1144 swap(inode2, inode1); in ocfs2_double_lock() 1157 status = ocfs2_inode_lock_nested(inode1, bh1, 1, in ocfs2_double_lock() 1184 static void ocfs2_double_unlock(struct inode *inode1, struct inode *inode2) in ocfs2_double_unlock() argument 1186 ocfs2_inode_unlock(inode1, 1); in ocfs2_double_unlock() 1188 if (inode1 != inode2) in ocfs2_double_unlock()
|
D | refcounttree.c | 4718 struct inode *inode1 = s_inode; in ocfs2_reflink_inodes_lock() local 4725 bool need_swap = (inode1->i_ino > inode2->i_ino); in ocfs2_reflink_inodes_lock() 4731 swap(inode1, inode2); in ocfs2_reflink_inodes_lock() 4733 status = ocfs2_rw_lock(inode1, 1); in ocfs2_reflink_inodes_lock() 4747 oi1 = OCFS2_I(inode1); in ocfs2_reflink_inodes_lock() 4758 status = ocfs2_inode_lock_nested(inode1, &bh1, 1, in ocfs2_reflink_inodes_lock() 4795 ocfs2_inode_unlock(inode1, 1); in ocfs2_reflink_inodes_lock() 4800 ocfs2_rw_unlock(inode1, 1); in ocfs2_reflink_inodes_lock()
|
/fs/btrfs/ |
D | ioctl.c | 3224 static void btrfs_double_extent_unlock(struct inode *inode1, u64 loff1, in btrfs_double_extent_unlock() argument 3227 unlock_extent(&BTRFS_I(inode1)->io_tree, loff1, loff1 + len - 1); in btrfs_double_extent_unlock() 3231 static void btrfs_double_extent_lock(struct inode *inode1, u64 loff1, in btrfs_double_extent_lock() argument 3234 if (inode1 < inode2) { in btrfs_double_extent_lock() 3235 swap(inode1, inode2); in btrfs_double_extent_lock() 3237 } else if (inode1 == inode2 && loff2 < loff1) { in btrfs_double_extent_lock() 3240 lock_extent(&BTRFS_I(inode1)->io_tree, loff1, loff1 + len - 1); in btrfs_double_extent_lock()
|