Lines Matching refs:old_dir
497 static int hpfs_rename(struct mnt_idmap *idmap, struct inode *old_dir,
532 if (!(dep = map_dirent(old_dir, hpfs_i(old_dir)->i_dno, old_name, old_len, &dno, &qbh))) {
542 if ((r = hpfs_remove_dirent(old_dir, dno, dep, &qbh, 1)) != 2) {
559 if (new_dir == old_dir) hpfs_brelse4(&qbh);
564 if (new_dir != old_dir) hpfs_brelse4(&qbh);
568 if (new_dir == old_dir)
569 if (!(dep = map_dirent(old_dir, hpfs_i(old_dir)->i_dno, old_name, old_len, &dno, &qbh))) {
575 if ((r = hpfs_remove_dirent(old_dir, dno, dep, &qbh, 0))) {
585 drop_nlink(old_dir);
597 hpfs_update_directory_times(old_dir);