Lines Matching refs:orphan_dir_inode

77 			    struct inode *orphan_dir_inode,
2114 struct inode *orphan_dir_inode; in ocfs2_lookup_lock_orphan_dir() local
2118 orphan_dir_inode = ocfs2_get_system_file_inode(osb, in ocfs2_lookup_lock_orphan_dir()
2121 if (!orphan_dir_inode) { in ocfs2_lookup_lock_orphan_dir()
2127 inode_lock(orphan_dir_inode); in ocfs2_lookup_lock_orphan_dir()
2129 ret = ocfs2_inode_lock(orphan_dir_inode, &orphan_dir_bh, 1); in ocfs2_lookup_lock_orphan_dir()
2131 inode_unlock(orphan_dir_inode); in ocfs2_lookup_lock_orphan_dir()
2132 iput(orphan_dir_inode); in ocfs2_lookup_lock_orphan_dir()
2138 *ret_orphan_dir = orphan_dir_inode; in ocfs2_lookup_lock_orphan_dir()
2144 static int __ocfs2_prepare_orphan_dir(struct inode *orphan_dir_inode, in __ocfs2_prepare_orphan_dir() argument
2152 struct ocfs2_super *osb = OCFS2_SB(orphan_dir_inode->i_sb); in __ocfs2_prepare_orphan_dir()
2175 ret = ocfs2_prepare_dir_for_insert(osb, orphan_dir_inode, in __ocfs2_prepare_orphan_dir()
2209 struct inode *orphan_dir_inode = NULL; in ocfs2_prepare_orphan_dir() local
2213 ret = ocfs2_lookup_lock_orphan_dir(osb, &orphan_dir_inode, in ocfs2_prepare_orphan_dir()
2220 ret = __ocfs2_prepare_orphan_dir(orphan_dir_inode, orphan_dir_bh, in ocfs2_prepare_orphan_dir()
2227 *ret_orphan_dir = orphan_dir_inode; in ocfs2_prepare_orphan_dir()
2233 ocfs2_inode_unlock(orphan_dir_inode, 1); in ocfs2_prepare_orphan_dir()
2234 inode_unlock(orphan_dir_inode); in ocfs2_prepare_orphan_dir()
2235 iput(orphan_dir_inode); in ocfs2_prepare_orphan_dir()
2249 struct inode *orphan_dir_inode, in ocfs2_orphan_add() argument
2263 status = ocfs2_read_inode_block(orphan_dir_inode, &orphan_dir_bh); in ocfs2_orphan_add()
2270 INODE_CACHE(orphan_dir_inode), in ocfs2_orphan_add()
2298 set_nlink(orphan_dir_inode, ocfs2_read_links_count(orphan_fe)); in ocfs2_orphan_add()
2301 status = __ocfs2_add_entry(handle, orphan_dir_inode, name, in ocfs2_orphan_add()
2335 set_nlink(orphan_dir_inode, ocfs2_read_links_count(orphan_fe)); in ocfs2_orphan_add()
2347 struct inode *orphan_dir_inode, in ocfs2_orphan_del() argument
2376 (unsigned long long)OCFS2_I(orphan_dir_inode)->ip_blkno, in ocfs2_orphan_del()
2380 INODE_CACHE(orphan_dir_inode), in ocfs2_orphan_del()
2389 status = ocfs2_find_entry(name, strlen(name), orphan_dir_inode, in ocfs2_orphan_del()
2397 status = ocfs2_delete_entry(handle, orphan_dir_inode, &lookup); in ocfs2_orphan_del()
2407 set_nlink(orphan_dir_inode, ocfs2_read_links_count(orphan_fe)); in ocfs2_orphan_del()
2635 struct inode *orphan_dir_inode = NULL; in ocfs2_add_inode_to_orphan() local
2668 status = ocfs2_prepare_orphan_dir(osb, &orphan_dir_inode, in ocfs2_add_inode_to_orphan()
2686 &orphan_insert, orphan_dir_inode, true); in ocfs2_add_inode_to_orphan()
2693 ocfs2_inode_unlock(orphan_dir_inode, 1); in ocfs2_add_inode_to_orphan()
2694 inode_unlock(orphan_dir_inode); in ocfs2_add_inode_to_orphan()
2695 iput(orphan_dir_inode); in ocfs2_add_inode_to_orphan()
2711 struct inode *orphan_dir_inode = NULL; in ocfs2_del_inode_from_orphan() local
2717 orphan_dir_inode = ocfs2_get_system_file_inode(osb, in ocfs2_del_inode_from_orphan()
2720 if (!orphan_dir_inode) { in ocfs2_del_inode_from_orphan()
2726 inode_lock(orphan_dir_inode); in ocfs2_del_inode_from_orphan()
2727 status = ocfs2_inode_lock(orphan_dir_inode, &orphan_dir_bh, 1); in ocfs2_del_inode_from_orphan()
2729 inode_unlock(orphan_dir_inode); in ocfs2_del_inode_from_orphan()
2730 iput(orphan_dir_inode); in ocfs2_del_inode_from_orphan()
2744 status = ocfs2_orphan_del(osb, handle, orphan_dir_inode, in ocfs2_del_inode_from_orphan()
2774 ocfs2_inode_unlock(orphan_dir_inode, 1); in ocfs2_del_inode_from_orphan()
2775 inode_unlock(orphan_dir_inode); in ocfs2_del_inode_from_orphan()
2777 iput(orphan_dir_inode); in ocfs2_del_inode_from_orphan()
2792 struct inode *orphan_dir_inode = NULL; in ocfs2_mv_orphaned_inode_to_new() local
2830 orphan_dir_inode = ocfs2_get_system_file_inode(osb, in ocfs2_mv_orphaned_inode_to_new()
2833 if (!orphan_dir_inode) { in ocfs2_mv_orphaned_inode_to_new()
2839 inode_lock(orphan_dir_inode); in ocfs2_mv_orphaned_inode_to_new()
2841 status = ocfs2_inode_lock(orphan_dir_inode, &orphan_dir_bh, 1); in ocfs2_mv_orphaned_inode_to_new()
2844 inode_unlock(orphan_dir_inode); in ocfs2_mv_orphaned_inode_to_new()
2845 iput(orphan_dir_inode); in ocfs2_mv_orphaned_inode_to_new()
2870 status = ocfs2_orphan_del(osb, handle, orphan_dir_inode, inode, in ocfs2_mv_orphaned_inode_to_new()
2905 ocfs2_inode_unlock(orphan_dir_inode, 1); in ocfs2_mv_orphaned_inode_to_new()
2906 inode_unlock(orphan_dir_inode); in ocfs2_mv_orphaned_inode_to_new()
2907 iput(orphan_dir_inode); in ocfs2_mv_orphaned_inode_to_new()