Lines Matching refs:orphan_dir_inode

77 			    struct inode *orphan_dir_inode,
2095 struct inode *orphan_dir_inode; in ocfs2_lookup_lock_orphan_dir() local
2099 orphan_dir_inode = ocfs2_get_system_file_inode(osb, in ocfs2_lookup_lock_orphan_dir()
2102 if (!orphan_dir_inode) { in ocfs2_lookup_lock_orphan_dir()
2108 inode_lock(orphan_dir_inode); in ocfs2_lookup_lock_orphan_dir()
2110 ret = ocfs2_inode_lock(orphan_dir_inode, &orphan_dir_bh, 1); in ocfs2_lookup_lock_orphan_dir()
2112 inode_unlock(orphan_dir_inode); in ocfs2_lookup_lock_orphan_dir()
2113 iput(orphan_dir_inode); in ocfs2_lookup_lock_orphan_dir()
2119 *ret_orphan_dir = orphan_dir_inode; in ocfs2_lookup_lock_orphan_dir()
2125 static int __ocfs2_prepare_orphan_dir(struct inode *orphan_dir_inode, in __ocfs2_prepare_orphan_dir() argument
2133 struct ocfs2_super *osb = OCFS2_SB(orphan_dir_inode->i_sb); in __ocfs2_prepare_orphan_dir()
2156 ret = ocfs2_prepare_dir_for_insert(osb, orphan_dir_inode, in __ocfs2_prepare_orphan_dir()
2188 struct inode *orphan_dir_inode = NULL; in ocfs2_prepare_orphan_dir() local
2192 ret = ocfs2_lookup_lock_orphan_dir(osb, &orphan_dir_inode, in ocfs2_prepare_orphan_dir()
2199 ret = __ocfs2_prepare_orphan_dir(orphan_dir_inode, orphan_dir_bh, in ocfs2_prepare_orphan_dir()
2206 *ret_orphan_dir = orphan_dir_inode; in ocfs2_prepare_orphan_dir()
2212 ocfs2_inode_unlock(orphan_dir_inode, 1); in ocfs2_prepare_orphan_dir()
2213 inode_unlock(orphan_dir_inode); in ocfs2_prepare_orphan_dir()
2214 iput(orphan_dir_inode); in ocfs2_prepare_orphan_dir()
2228 struct inode *orphan_dir_inode, in ocfs2_orphan_add() argument
2242 status = ocfs2_read_inode_block(orphan_dir_inode, &orphan_dir_bh); in ocfs2_orphan_add()
2249 INODE_CACHE(orphan_dir_inode), in ocfs2_orphan_add()
2277 set_nlink(orphan_dir_inode, ocfs2_read_links_count(orphan_fe)); in ocfs2_orphan_add()
2280 status = __ocfs2_add_entry(handle, orphan_dir_inode, name, in ocfs2_orphan_add()
2314 set_nlink(orphan_dir_inode, ocfs2_read_links_count(orphan_fe)); in ocfs2_orphan_add()
2326 struct inode *orphan_dir_inode, in ocfs2_orphan_del() argument
2355 (unsigned long long)OCFS2_I(orphan_dir_inode)->ip_blkno, in ocfs2_orphan_del()
2359 INODE_CACHE(orphan_dir_inode), in ocfs2_orphan_del()
2368 status = ocfs2_find_entry(name, strlen(name), orphan_dir_inode, in ocfs2_orphan_del()
2376 status = ocfs2_delete_entry(handle, orphan_dir_inode, &lookup); in ocfs2_orphan_del()
2386 set_nlink(orphan_dir_inode, ocfs2_read_links_count(orphan_fe)); in ocfs2_orphan_del()
2614 struct inode *orphan_dir_inode = NULL; in ocfs2_add_inode_to_orphan() local
2647 status = ocfs2_prepare_orphan_dir(osb, &orphan_dir_inode, in ocfs2_add_inode_to_orphan()
2665 &orphan_insert, orphan_dir_inode, true); in ocfs2_add_inode_to_orphan()
2672 ocfs2_inode_unlock(orphan_dir_inode, 1); in ocfs2_add_inode_to_orphan()
2673 inode_unlock(orphan_dir_inode); in ocfs2_add_inode_to_orphan()
2674 iput(orphan_dir_inode); in ocfs2_add_inode_to_orphan()
2690 struct inode *orphan_dir_inode = NULL; in ocfs2_del_inode_from_orphan() local
2696 orphan_dir_inode = ocfs2_get_system_file_inode(osb, in ocfs2_del_inode_from_orphan()
2699 if (!orphan_dir_inode) { in ocfs2_del_inode_from_orphan()
2705 inode_lock(orphan_dir_inode); in ocfs2_del_inode_from_orphan()
2706 status = ocfs2_inode_lock(orphan_dir_inode, &orphan_dir_bh, 1); in ocfs2_del_inode_from_orphan()
2708 inode_unlock(orphan_dir_inode); in ocfs2_del_inode_from_orphan()
2709 iput(orphan_dir_inode); in ocfs2_del_inode_from_orphan()
2723 status = ocfs2_orphan_del(osb, handle, orphan_dir_inode, in ocfs2_del_inode_from_orphan()
2753 ocfs2_inode_unlock(orphan_dir_inode, 1); in ocfs2_del_inode_from_orphan()
2754 inode_unlock(orphan_dir_inode); in ocfs2_del_inode_from_orphan()
2756 iput(orphan_dir_inode); in ocfs2_del_inode_from_orphan()
2771 struct inode *orphan_dir_inode = NULL; in ocfs2_mv_orphaned_inode_to_new() local
2809 orphan_dir_inode = ocfs2_get_system_file_inode(osb, in ocfs2_mv_orphaned_inode_to_new()
2812 if (!orphan_dir_inode) { in ocfs2_mv_orphaned_inode_to_new()
2818 inode_lock(orphan_dir_inode); in ocfs2_mv_orphaned_inode_to_new()
2820 status = ocfs2_inode_lock(orphan_dir_inode, &orphan_dir_bh, 1); in ocfs2_mv_orphaned_inode_to_new()
2823 inode_unlock(orphan_dir_inode); in ocfs2_mv_orphaned_inode_to_new()
2824 iput(orphan_dir_inode); in ocfs2_mv_orphaned_inode_to_new()
2849 status = ocfs2_orphan_del(osb, handle, orphan_dir_inode, inode, in ocfs2_mv_orphaned_inode_to_new()
2884 ocfs2_inode_unlock(orphan_dir_inode, 1); in ocfs2_mv_orphaned_inode_to_new()
2885 inode_unlock(orphan_dir_inode); in ocfs2_mv_orphaned_inode_to_new()
2886 iput(orphan_dir_inode); in ocfs2_mv_orphaned_inode_to_new()