Lines Matching refs:new_dir
4756 struct inode *old_dir = rd->old_dir, *new_dir = rd->new_dir;
4765 unsigned max_links = new_dir->i_sb->s_max_links;
4777 error = may_create(rd->new_mnt_idmap, new_dir, new_dentry);
4782 error = may_delete(rd->new_mnt_idmap, new_dir,
4785 error = may_delete(rd->new_mnt_idmap, new_dir,
4798 if (new_dir != old_dir) {
4813 error = security_inode_rename(old_dir, old_dentry, new_dir, new_dentry,
4833 lock_old_subdir = new_dir != old_dir;
4834 lock_new_subdir = new_dir != old_dir || !(flags & RENAME_EXCHANGE);
4856 if (max_links && new_dir != old_dir) {
4858 if (is_dir && !new_is_dir && new_dir->i_nlink >= max_links)
4875 new_dir, new_dentry, flags);
4900 fsnotify_move(old_dir, new_dir, &old_name.name, is_dir,
4903 fsnotify_move(new_dir, old_dir, &old_dentry->d_name,
5022 rd.new_dir = new_path.dentry->d_inode;