Lines Matching refs:old_dir
432 int hpfs_rename(struct inode *old_dir, struct dentry *old_dentry, in hpfs_rename() argument
453 hpfs_lock_3inodes(old_dir, new_dir, i); in hpfs_rename()
461 if (!(dep = map_dirent(old_dir, old_dir->i_hpfs_dno, (char *)old_name, old_len, &dno, &qbh))) { in hpfs_rename()
471 if ((r = hpfs_remove_dirent(old_dir, dno, dep, &qbh, 1)) != 2) { in hpfs_rename()
488 if (new_dir == old_dir) hpfs_brelse4(&qbh); in hpfs_rename()
495 if (new_dir != old_dir) hpfs_brelse4(&qbh); in hpfs_rename()
499 if (new_dir == old_dir) in hpfs_rename()
500 if (!(dep = map_dirent(old_dir, old_dir->i_hpfs_dno, (char *)old_name, old_len, &dno, &qbh))) { in hpfs_rename()
507 if ((r = hpfs_remove_dirent(old_dir, dno, dep, &qbh, 0))) { in hpfs_rename()
519 old_dir->i_nlink--; in hpfs_rename()
532 hpfs_unlock_3inodes(old_dir, new_dir, i); in hpfs_rename()