• Home
  • Raw
  • Download

Lines Matching refs:new

1344 	struct dx_entry *old = frame->at, *new = old + 1;  in dx_insert_block()  local
1349 memmove(new + 1, new, (char *)(entries + count) - (char *)(new)); in dx_insert_block()
1350 dx_set_hash(new, hash); in dx_insert_block()
1351 dx_set_block(new, block); in dx_insert_block()
3931 struct ext4_renament new = { in ext4_rename() local
3942 if (new.inode && new.inode->i_nlink == 0) { in ext4_rename()
3943 EXT4_ERROR_INODE(new.inode, in ext4_rename()
3959 retval = dquot_initialize(new.dir); in ext4_rename()
3965 if (new.inode) { in ext4_rename()
3966 retval = dquot_initialize(new.inode); in ext4_rename()
3986 new.bh = ext4_find_entry(new.dir, &new.dentry->d_name, in ext4_rename()
3987 &new.de, &new.inlined, NULL); in ext4_rename()
3988 if (IS_ERR(new.bh)) { in ext4_rename()
3989 retval = PTR_ERR(new.bh); in ext4_rename()
3990 new.bh = NULL; in ext4_rename()
3993 if (new.bh) { in ext4_rename()
3994 if (!new.inode) { in ext4_rename()
3995 brelse(new.bh); in ext4_rename()
3996 new.bh = NULL; in ext4_rename()
3999 if (new.inode && !test_opt(new.dir->i_sb, NO_AUTO_DA_ALLOC)) in ext4_rename()
4019 if (IS_DIRSYNC(old.dir) || IS_DIRSYNC(new.dir)) in ext4_rename()
4023 if (new.inode) { in ext4_rename()
4025 if (!ext4_empty_dir(new.inode)) in ext4_rename()
4029 if (new.dir != old.dir && EXT4_DIR_LINK_MAX(new.dir)) in ext4_rename()
4043 force_reread = (new.dir->i_ino == old.dir->i_ino && in ext4_rename()
4044 ext4_test_inode_flag(new.dir, EXT4_INODE_INLINE_DATA)); in ext4_rename()
4060 if (!new.bh) { in ext4_rename()
4061 retval = ext4_add_entry(handle, new.dentry, old.inode); in ext4_rename()
4065 retval = ext4_setent(handle, &new, in ext4_rename()
4071 force_reread = !ext4_test_inode_flag(new.dir, in ext4_rename()
4090 if (new.inode) { in ext4_rename()
4091 ext4_dec_count(new.inode); in ext4_rename()
4092 new.inode->i_ctime = current_time(new.inode); in ext4_rename()
4097 retval = ext4_rename_dir_finish(handle, &old, new.dir->i_ino); in ext4_rename()
4102 if (new.inode) { in ext4_rename()
4106 clear_nlink(new.inode); in ext4_rename()
4108 ext4_inc_count(new.dir); in ext4_rename()
4109 ext4_update_dx_flag(new.dir); in ext4_rename()
4110 retval = ext4_mark_inode_dirty(handle, new.dir); in ext4_rename()
4128 if (new.inode) in ext4_rename()
4129 ext4_fc_track_unlink(handle, new.dentry); in ext4_rename()
4130 __ext4_fc_track_link(handle, old.inode, new.dentry); in ext4_rename()
4136 if (new.inode) { in ext4_rename()
4137 retval = ext4_mark_inode_dirty(handle, new.inode); in ext4_rename()
4140 if (!new.inode->i_nlink) in ext4_rename()
4141 ext4_orphan_add(handle, new.inode); in ext4_rename()
4162 brelse(new.bh); in ext4_rename()
4176 struct ext4_renament new = { in ext4_cross_rename() local
4196 retval = dquot_initialize(new.dir); in ext4_cross_rename()
4214 new.bh = ext4_find_entry(new.dir, &new.dentry->d_name, in ext4_cross_rename()
4215 &new.de, &new.inlined, NULL); in ext4_cross_rename()
4216 if (IS_ERR(new.bh)) { in ext4_cross_rename()
4217 retval = PTR_ERR(new.bh); in ext4_cross_rename()
4218 new.bh = NULL; in ext4_cross_rename()
4223 if (!new.bh || le32_to_cpu(new.de->inode) != new.inode->i_ino) in ext4_cross_rename()
4235 if (IS_DIRSYNC(old.dir) || IS_DIRSYNC(new.dir)) in ext4_cross_rename()
4244 if (S_ISDIR(new.inode->i_mode)) { in ext4_cross_rename()
4245 new.is_dir = true; in ext4_cross_rename()
4246 retval = ext4_rename_dir_prepare(handle, &new); in ext4_cross_rename()
4255 if (old.dir != new.dir && old.is_dir != new.is_dir) { in ext4_cross_rename()
4257 new.dir_nlink_delta = -old.dir_nlink_delta; in ext4_cross_rename()
4260 (new.dir_nlink_delta > 0 && EXT4_DIR_LINK_MAX(new.dir))) in ext4_cross_rename()
4264 new_file_type = new.de->file_type; in ext4_cross_rename()
4265 retval = ext4_setent(handle, &new, old.inode->i_ino, old.de->file_type); in ext4_cross_rename()
4269 retval = ext4_setent(handle, &old, new.inode->i_ino, new_file_type); in ext4_cross_rename()
4279 new.inode->i_ctime = ctime; in ext4_cross_rename()
4283 retval = ext4_mark_inode_dirty(handle, new.inode); in ext4_cross_rename()
4286 ext4_fc_mark_ineligible(new.inode->i_sb, in ext4_cross_rename()
4289 retval = ext4_rename_dir_finish(handle, &old, new.dir->i_ino); in ext4_cross_rename()
4293 if (new.dir_bh) { in ext4_cross_rename()
4294 retval = ext4_rename_dir_finish(handle, &new, old.dir->i_ino); in ext4_cross_rename()
4299 ext4_update_dir_count(handle, &new); in ext4_cross_rename()
4304 brelse(new.dir_bh); in ext4_cross_rename()
4306 brelse(new.bh); in ext4_cross_rename()