Lines Matching refs:old_dir
2307 static int ext4_rename(struct inode *old_dir, struct dentry *old_dentry, in ext4_rename() argument
2322 handle = ext4_journal_start(old_dir, 2 * in ext4_rename()
2323 EXT4_DATA_TRANS_BLOCKS(old_dir->i_sb) + in ext4_rename()
2328 if (IS_DIRSYNC(old_dir) || IS_DIRSYNC(new_dir)) in ext4_rename()
2331 old_bh = ext4_find_entry(old_dir, &old_dentry->d_name, &old_de); in ext4_rename()
2361 if (le32_to_cpu(PARENT_INO(dir_bh->b_data)) != old_dir->i_ino) in ext4_rename()
2364 if (!new_inode && new_dir != old_dir && in ext4_rename()
2402 (retval = ext4_delete_entry(handle, old_dir, in ext4_rename()
2411 old_bh2 = ext4_find_entry(old_dir, &old_dentry->d_name, &old_de2); in ext4_rename()
2413 retval = ext4_delete_entry(handle, old_dir, in ext4_rename()
2419 ext4_warning(old_dir->i_sb, "ext4_rename", in ext4_rename()
2421 old_dir->i_ino, old_dir->i_nlink, retval); in ext4_rename()
2428 old_dir->i_ctime = old_dir->i_mtime = ext4_current_time(old_dir); in ext4_rename()
2429 ext4_update_dx_flag(old_dir); in ext4_rename()
2435 ext4_handle_dirty_metadata(handle, old_dir, dir_bh); in ext4_rename()
2436 ext4_dec_count(handle, old_dir); in ext4_rename()
2447 ext4_mark_inode_dirty(handle, old_dir); in ext4_rename()