Lines Matching refs:old_dir
1741 int vfs_rename_dir(struct inode *old_dir, struct dentry *old_dentry, in vfs_rename_dir() argument
1750 error = may_delete(old_dir, old_dentry, 1); in vfs_rename_dir()
1754 if (new_dir->i_dev != old_dir->i_dev) in vfs_rename_dir()
1764 if (!old_dir->i_op || !old_dir->i_op->rename) in vfs_rename_dir()
1771 if (new_dir != old_dir) { in vfs_rename_dir()
1777 DQUOT_INIT(old_dir); in vfs_rename_dir()
1779 down(&old_dir->i_sb->s_vfs_rename_sem); in vfs_rename_dir()
1789 triple_down(&old_dir->i_zombie, in vfs_rename_dir()
1794 double_down(&old_dir->i_zombie, in vfs_rename_dir()
1799 error = old_dir->i_op->rename(old_dir, old_dentry, new_dir, new_dentry); in vfs_rename_dir()
1803 triple_up(&old_dir->i_zombie, in vfs_rename_dir()
1810 double_up(&old_dir->i_zombie, in vfs_rename_dir()
1816 up(&old_dir->i_sb->s_vfs_rename_sem); in vfs_rename_dir()
1820 int vfs_rename_other(struct inode *old_dir, struct dentry *old_dentry, in vfs_rename_other() argument
1828 error = may_delete(old_dir, old_dentry, 0); in vfs_rename_other()
1832 if (new_dir->i_dev != old_dir->i_dev) in vfs_rename_other()
1842 if (!old_dir->i_op || !old_dir->i_op->rename) in vfs_rename_other()
1845 DQUOT_INIT(old_dir); in vfs_rename_other()
1847 double_down(&old_dir->i_zombie, &new_dir->i_zombie); in vfs_rename_other()
1851 error = old_dir->i_op->rename(old_dir, old_dentry, new_dir, new_dentry); in vfs_rename_other()
1852 double_up(&old_dir->i_zombie, &new_dir->i_zombie); in vfs_rename_other()
1856 if (!(old_dir->i_sb->s_type->fs_flags & FS_ODD_RENAME)) { in vfs_rename_other()
1862 int vfs_rename(struct inode *old_dir, struct dentry *old_dentry, in vfs_rename() argument
1867 error = vfs_rename_dir(old_dir,old_dentry,new_dir,new_dentry); in vfs_rename()
1869 error = vfs_rename_other(old_dir,old_dentry,new_dir,new_dentry); in vfs_rename()
1871 if (old_dir == new_dir) in vfs_rename()
1872 inode_dir_notify(old_dir, DN_RENAME); in vfs_rename()
1874 inode_dir_notify(old_dir, DN_DELETE); in vfs_rename()
1884 struct dentry * old_dir, * new_dir; in do_rename() local
1900 old_dir = oldnd.dentry; in do_rename()
1909 double_lock(new_dir, old_dir); in do_rename()
1911 old_dentry = lookup_hash(&oldnd.last, old_dir); in do_rename()
1933 error = vfs_rename(old_dir->d_inode, old_dentry, in do_rename()
1941 double_up(&new_dir->d_inode->i_sem, &old_dir->d_inode->i_sem); in do_rename()