Lines Matching refs:old_dir
402 affs_rename(struct inode *old_dir, struct dentry *old_dentry,
405 struct super_block *sb = old_dir->i_sb;
428 affs_lock_dir(old_dir);
429 retval = affs_remove_hash(old_dir, bh);
430 affs_unlock_dir(old_dir);
440 /* TODO: move it back to old_dir, if error? */
443 mark_buffer_dirty_inode(bh, retval ? old_dir : new_dir);
449 affs_xrename(struct inode *old_dir, struct dentry *old_dentry,
453 struct super_block *sb = old_dir->i_sb;
469 affs_lock_dir(old_dir);
470 retval = affs_remove_hash(old_dir, bh_old);
471 affs_unlock_dir(old_dir);
492 affs_lock_dir(old_dir);
493 retval = affs_insert_hash(old_dir, bh_new);
494 affs_unlock_dir(old_dir);
497 mark_buffer_dirty_inode(bh_new, old_dir);
503 int affs_rename2(struct inode *old_dir, struct dentry *old_dentry,
512 old_dir->i_ino, old_dentry, new_dir->i_ino, new_dentry);
515 return affs_xrename(old_dir, old_dentry, new_dir, new_dentry);
517 return affs_rename(old_dir, old_dentry, new_dir, new_dentry);