Lines Matching refs:old_dir
1746 struct inode *old_dir = old_parent->d_inode; in do_rename() local
1750 presto_getversion(&src_dir_ver, old_dir); in do_rename()
1765 handle = presto_trans_start(fset, old_dir, KML_OPCODE_RENAME); in do_rename()
1776 error = iops->rename(old_dir, old_dentry, new_dir, new_dentry); in do_rename()
1829 struct inode *old_dir = old_parent->d_inode; in presto_rename_dir() local
1835 error = may_delete(old_dir, old_dentry, 1); in presto_rename_dir()
1839 if (new_dir->i_dev != old_dir->i_dev) in presto_rename_dir()
1849 if (!old_dir->i_op || !old_dir->i_op->rename) in presto_rename_dir()
1856 if (new_dir != old_dir) { in presto_rename_dir()
1862 DQUOT_INIT(old_dir); in presto_rename_dir()
1864 down(&old_dir->i_sb->s_vfs_rename_sem); in presto_rename_dir()
1870 triple_down(&old_dir->i_zombie, in presto_rename_dir()
1875 double_down(&old_dir->i_zombie, in presto_rename_dir()
1877 if (IS_DEADDIR(old_dir)||IS_DEADDIR(new_dir)) in presto_rename_dir()
1887 triple_up(&old_dir->i_zombie, in presto_rename_dir()
1894 double_up(&old_dir->i_zombie, in presto_rename_dir()
1900 up(&old_dir->i_sb->s_vfs_rename_sem); in presto_rename_dir()
1909 struct inode *old_dir = old_parent->d_inode; in presto_rename_other() local
1916 error = may_delete(old_dir, old_dentry, 0); in presto_rename_other()
1920 if (new_dir->i_dev != old_dir->i_dev) in presto_rename_other()
1930 if (!old_dir->i_op || !old_dir->i_op->rename) in presto_rename_other()
1933 DQUOT_INIT(old_dir); in presto_rename_other()
1935 double_down(&old_dir->i_zombie, &new_dir->i_zombie); in presto_rename_other()
1941 double_up(&old_dir->i_zombie, &new_dir->i_zombie); in presto_rename_other()
1945 if (!(old_dir->i_sb->s_type->fs_flags & FS_ODD_RENAME)) { in presto_rename_other()
1969 struct dentry * old_dir, * new_dir; in lento_do_rename() local
1991 old_dir = oldnd.dentry; in lento_do_rename()
2000 double_lock(new_dir, old_dir); in lento_do_rename()
2002 old_dentry = lookup_hash(&oldnd.last, old_dir); in lento_do_rename()
2031 error = presto_do_rename(fset, old_dir, old_dentry, in lento_do_rename()
2039 double_up(&new_dir->d_inode->i_sem, &old_dir->d_inode->i_sem); in lento_do_rename()