Lines Matching refs:old_dir
756 inline void presto_triple_unlock(struct inode *old_dir, struct inode *new_dir, in presto_triple_unlock() argument
763 triple_up(&old_dir->i_zombie, in presto_triple_unlock()
767 double_up(&old_dir->i_zombie, in presto_triple_unlock()
770 up(&old_dir->i_sb->s_vfs_rename_sem); in presto_triple_unlock()
772 double_up(&old_dir->i_zombie, &new_dir->i_zombie); in presto_triple_unlock()
775 double_up(&old_dir->i_sem, &new_dir->i_sem); in presto_triple_unlock()
778 inline void presto_triple_fulllock(struct inode *old_dir, in presto_triple_fulllock() argument
784 double_down(&old_dir->i_sem, &new_dir->i_sem); in presto_triple_fulllock()
788 down(&old_dir->i_sb->s_vfs_rename_sem); in presto_triple_fulllock()
790 triple_down(&old_dir->i_zombie, in presto_triple_fulllock()
794 double_down(&old_dir->i_zombie, in presto_triple_fulllock()
798 double_down(&old_dir->i_zombie, &new_dir->i_zombie); in presto_triple_fulllock()
801 inline void presto_triple_relock_sem(struct inode *old_dir, in presto_triple_relock_sem() argument
807 double_down(&old_dir->i_sem, &new_dir->i_sem); in presto_triple_relock_sem()
811 inline void presto_triple_relock_other(struct inode *old_dir, in presto_triple_relock_other() argument
818 down(&old_dir->i_sb->s_vfs_rename_sem); in presto_triple_relock_other()
820 triple_down(&old_dir->i_zombie, in presto_triple_relock_other()
824 double_down(&old_dir->i_zombie, in presto_triple_relock_other()
828 double_down(&old_dir->i_zombie, &new_dir->i_zombie); in presto_triple_relock_other()
834 int presto_rename(struct inode *old_dir, struct dentry *old_dentry, in presto_rename() argument
869 presto_triple_unlock(old_dir, new_dir, old_dentry, new_dentry, triple); in presto_rename()
871 if ( presto_get_permit(old_dir) < 0 ) { in presto_rename()
873 presto_triple_fulllock(old_dir, new_dir, old_dentry, new_dentry, triple); in presto_rename()
878 presto_triple_fulllock(old_dir, new_dir, old_dentry, new_dentry, triple); in presto_rename()
882 presto_triple_relock_sem(old_dir, new_dir, old_dentry, new_dentry, triple); in presto_rename()
889 presto_triple_relock_other(old_dir, new_dir, old_dentry, new_dentry, triple); in presto_rename()
892 presto_put_permit(old_dir); in presto_rename()