Lines Matching refs:new_dir
546 struct inode *new_dir, struct dentry *new_dentry) in hpfs_rename() argument
572 if (new_dir != old_dir) in hpfs_rename()
573 mutex_lock(&hpfs_i(new_dir)->i_mutex); in hpfs_rename()
592 … if ((nde = map_dirent(new_dir, hpfs_i(new_dir)->i_dno, (char *)new_name, new_len, NULL, &qbh1))) { in hpfs_rename()
600 hpfs_error(new_dir->i_sb, "hpfs_rename: could not find dirent"); in hpfs_rename()
608 if (new_dir == old_dir) hpfs_brelse4(&qbh); in hpfs_rename()
611 if ((r = hpfs_add_dirent(new_dir, new_name, new_len, &de, 1))) { in hpfs_rename()
613 if (r == -1) hpfs_error(new_dir->i_sb, "hpfs_rename: dirent already exists!"); in hpfs_rename()
615 if (new_dir != old_dir) hpfs_brelse4(&qbh); in hpfs_rename()
619 if (new_dir == old_dir) in hpfs_rename()
636 hpfs_i(i)->i_parent_dir = new_dir->i_ino; in hpfs_rename()
638 inc_nlink(new_dir); in hpfs_rename()
642 fnode->up = new_dir->i_ino; in hpfs_rename()
652 if (old_dir != new_dir) in hpfs_rename()
653 mutex_unlock(&hpfs_i(new_dir)->i_mutex); in hpfs_rename()