Lines Matching refs:donor_inode
173 * @donor_inode: donor inode structure
178 double_down_write_data_sem(struct inode *orig_inode, struct inode *donor_inode)
180 struct inode *first = orig_inode, *second = donor_inode;
187 if (donor_inode->i_ino < orig_inode->i_ino) {
188 first = donor_inode;
200 * @donor_inode: donor inode structure to be released its lock second
204 double_up_write_data_sem(struct inode *orig_inode, struct inode *donor_inode)
207 up_write(&EXT4_I(donor_inode)->i_data_sem);
637 * @donor_inode: donor inode
655 struct inode *donor_inode, ext4_lblk_t from,
668 double_down_write_data_sem(orig_inode, donor_inode);
676 *err = get_ext_path(donor_inode, donor_off, &donor_path);
683 depth = ext_depth(donor_inode);
696 EXT4_ERROR_INODE(donor_inode,
701 EXT4_ERROR_INODE(donor_inode,
717 *err = mext_leaf_block(handle, donor_inode,
742 *err = get_ext_path(donor_inode, donor_off, &donor_path);
745 depth = ext_depth(donor_inode);
766 ext4_ext_invalidate_cache(donor_inode);
768 double_up_write_data_sem(orig_inode, donor_inode);
777 * @donor_inode: donor inode
790 move_extent_per_page(struct file *o_filp, struct inode *donor_inode,
813 * inode and donor_inode may change each different metadata blocks.
836 donor_inode, orig_blk_offset,
885 replaced_count = mext_replace_branches(handle, orig_inode, donor_inode,
938 * @donor_inode: donor inode
949 struct inode *donor_inode, __u64 orig_start,
956 if (donor_inode->i_mode & (S_ISUID|S_ISGID)) {
959 orig_inode->i_ino, donor_inode->i_ino);
963 if (IS_IMMUTABLE(donor_inode) || IS_APPEND(donor_inode))
967 if (IS_SWAPFILE(orig_inode) || IS_SWAPFILE(donor_inode)) {
970 orig_inode->i_ino, donor_inode->i_ino);
975 if (orig_inode->i_sb != donor_inode->i_sb) {
978 orig_inode->i_ino, donor_inode->i_ino);
987 } else if (!(ext4_test_inode_flag(donor_inode, EXT4_INODE_EXTENTS))) {
989 "based file [ino:donor %lu]\n", donor_inode->i_ino);
993 if ((!orig_inode->i_size) || (!donor_inode->i_size)) {
1002 orig_inode->i_ino, donor_inode->i_ino);
1012 orig_inode->i_ino, donor_inode->i_ino);
1016 if (orig_inode->i_size > donor_inode->i_size) {
1017 donor_blocks = (donor_inode->i_size + blocksize - 1) >> blkbits;
1024 orig_inode->i_ino, donor_inode->i_ino);
1036 orig_inode->i_ino, donor_inode->i_ino);
1046 orig_inode->i_ino, donor_inode->i_ino);
1056 orig_inode->i_ino, donor_inode->i_ino);
1064 donor_inode->i_ino);
1185 struct inode *donor_inode = d_filp->f_dentry->d_inode;
1199 if (orig_inode->i_ino == donor_inode->i_ino) {
1202 orig_inode->i_ino, donor_inode->i_ino);
1207 if (!S_ISREG(orig_inode->i_mode) || !S_ISREG(donor_inode->i_mode)) {
1210 orig_inode->i_ino, donor_inode->i_ino);
1215 ret1 = mext_inode_double_lock(orig_inode, donor_inode);
1220 double_down_write_data_sem(orig_inode, donor_inode);
1222 ret1 = mext_check_arguments(orig_inode, donor_inode, orig_start,
1344 double_up_write_data_sem(orig_inode, donor_inode);
1350 o_filp, donor_inode,
1378 double_down_write_data_sem(orig_inode, donor_inode);
1405 ext4_discard_preallocations(donor_inode);
1416 double_up_write_data_sem(orig_inode, donor_inode);
1417 ret2 = mext_inode_double_unlock(orig_inode, donor_inode);