Lines Matching refs:orphan_dir
884 struct inode *orphan_dir = NULL; in ocfs2_unlink() local
962 status = ocfs2_prepare_orphan_dir(osb, &orphan_dir, in ocfs2_unlink()
1017 orphan_name, &orphan_insert, orphan_dir, false); in ocfs2_unlink()
1026 if (orphan_dir) { in ocfs2_unlink()
1028 ocfs2_inode_unlock(orphan_dir, 1); in ocfs2_unlink()
1029 mutex_unlock(&orphan_dir->i_mutex); in ocfs2_unlink()
1030 iput(orphan_dir); in ocfs2_unlink()
1212 struct inode *orphan_dir = NULL; in ocfs2_rename() local
1457 status = ocfs2_prepare_orphan_dir(osb, &orphan_dir, in ocfs2_rename()
1527 &orphan_insert, orphan_dir, false); in ocfs2_rename()
1645 if (orphan_dir) { in ocfs2_rename()
1647 ocfs2_inode_unlock(orphan_dir, 1); in ocfs2_rename()
1648 mutex_unlock(&orphan_dir->i_mutex); in ocfs2_rename()
1649 iput(orphan_dir); in ocfs2_rename()
2431 struct inode *orphan_dir = NULL; in ocfs2_prep_new_orphaned_file() local
2435 ret = ocfs2_lookup_lock_orphan_dir(osb, &orphan_dir, &orphan_dir_bh); in ocfs2_prep_new_orphaned_file()
2456 ret = __ocfs2_prepare_orphan_dir(orphan_dir, orphan_dir_bh, in ocfs2_prep_new_orphaned_file()
2466 *ret_orphan_dir = orphan_dir; in ocfs2_prep_new_orphaned_file()
2479 mutex_unlock(&orphan_dir->i_mutex); in ocfs2_prep_new_orphaned_file()
2480 ocfs2_inode_unlock(orphan_dir, 1); in ocfs2_prep_new_orphaned_file()
2481 iput(orphan_dir); in ocfs2_prep_new_orphaned_file()
2495 struct inode *orphan_dir = NULL; in ocfs2_create_inode_in_orphan() local
2515 orphan_name, &orphan_dir, in ocfs2_create_inode_in_orphan()
2565 &orphan_insert, orphan_dir, false); in ocfs2_create_inode_in_orphan()
2583 if (orphan_dir) { in ocfs2_create_inode_in_orphan()
2585 ocfs2_inode_unlock(orphan_dir, 1); in ocfs2_create_inode_in_orphan()
2586 mutex_unlock(&orphan_dir->i_mutex); in ocfs2_create_inode_in_orphan()
2587 iput(orphan_dir); in ocfs2_create_inode_in_orphan()