Searched refs:orphan_dir_inode (Results 1 - 4 of 4) sorted by relevance

/linux-4.1.27/fs/ocfs2/
H A Dnamei.c91 struct inode *orphan_dir_inode,
2044 struct inode *orphan_dir_inode; ocfs2_lookup_lock_orphan_dir() local
2048 orphan_dir_inode = ocfs2_get_system_file_inode(osb, ocfs2_lookup_lock_orphan_dir()
2051 if (!orphan_dir_inode) { ocfs2_lookup_lock_orphan_dir()
2057 mutex_lock(&orphan_dir_inode->i_mutex); ocfs2_lookup_lock_orphan_dir()
2059 ret = ocfs2_inode_lock(orphan_dir_inode, &orphan_dir_bh, 1); ocfs2_lookup_lock_orphan_dir()
2061 mutex_unlock(&orphan_dir_inode->i_mutex); ocfs2_lookup_lock_orphan_dir()
2062 iput(orphan_dir_inode); ocfs2_lookup_lock_orphan_dir()
2068 *ret_orphan_dir = orphan_dir_inode; ocfs2_lookup_lock_orphan_dir()
2074 static int __ocfs2_prepare_orphan_dir(struct inode *orphan_dir_inode, __ocfs2_prepare_orphan_dir() argument
2082 struct ocfs2_super *osb = OCFS2_SB(orphan_dir_inode->i_sb); __ocfs2_prepare_orphan_dir()
2105 ret = ocfs2_prepare_dir_for_insert(osb, orphan_dir_inode, __ocfs2_prepare_orphan_dir()
2137 struct inode *orphan_dir_inode = NULL; ocfs2_prepare_orphan_dir() local
2141 ret = ocfs2_lookup_lock_orphan_dir(osb, &orphan_dir_inode, ocfs2_prepare_orphan_dir()
2148 ret = __ocfs2_prepare_orphan_dir(orphan_dir_inode, orphan_dir_bh, ocfs2_prepare_orphan_dir()
2155 *ret_orphan_dir = orphan_dir_inode; ocfs2_prepare_orphan_dir()
2161 ocfs2_inode_unlock(orphan_dir_inode, 1); ocfs2_prepare_orphan_dir()
2162 mutex_unlock(&orphan_dir_inode->i_mutex); ocfs2_prepare_orphan_dir()
2163 iput(orphan_dir_inode); ocfs2_prepare_orphan_dir()
2177 struct inode *orphan_dir_inode, ocfs2_orphan_add()
2191 status = ocfs2_read_inode_block(orphan_dir_inode, &orphan_dir_bh); ocfs2_orphan_add()
2198 INODE_CACHE(orphan_dir_inode), ocfs2_orphan_add()
2226 set_nlink(orphan_dir_inode, ocfs2_read_links_count(orphan_fe)); ocfs2_orphan_add()
2229 status = __ocfs2_add_entry(handle, orphan_dir_inode, name, ocfs2_orphan_add()
2263 set_nlink(orphan_dir_inode, ocfs2_read_links_count(orphan_fe)); ocfs2_orphan_add()
2275 struct inode *orphan_dir_inode, ocfs2_orphan_del()
2305 (unsigned long long)OCFS2_I(orphan_dir_inode)->ip_blkno, ocfs2_orphan_del()
2309 status = ocfs2_find_entry(name, strlen(name), orphan_dir_inode, ocfs2_orphan_del()
2317 status = ocfs2_delete_entry(handle, orphan_dir_inode, &lookup); ocfs2_orphan_del()
2324 INODE_CACHE(orphan_dir_inode), ocfs2_orphan_del()
2336 set_nlink(orphan_dir_inode, ocfs2_read_links_count(orphan_fe)); ocfs2_orphan_del()
2586 struct inode *orphan_dir_inode = NULL; ocfs2_add_inode_to_orphan() local
2614 status = ocfs2_prepare_orphan_dir(osb, &orphan_dir_inode, ocfs2_add_inode_to_orphan()
2632 &orphan_insert, orphan_dir_inode, true); ocfs2_add_inode_to_orphan()
2639 ocfs2_inode_unlock(orphan_dir_inode, 1); ocfs2_add_inode_to_orphan()
2640 mutex_unlock(&orphan_dir_inode->i_mutex); ocfs2_add_inode_to_orphan()
2641 iput(orphan_dir_inode); ocfs2_add_inode_to_orphan()
2657 struct inode *orphan_dir_inode = NULL; ocfs2_del_inode_from_orphan() local
2671 orphan_dir_inode = ocfs2_get_system_file_inode(osb, ocfs2_del_inode_from_orphan()
2674 if (!orphan_dir_inode) { ocfs2_del_inode_from_orphan()
2680 mutex_lock(&orphan_dir_inode->i_mutex); ocfs2_del_inode_from_orphan()
2681 status = ocfs2_inode_lock(orphan_dir_inode, &orphan_dir_bh, 1); ocfs2_del_inode_from_orphan()
2683 mutex_unlock(&orphan_dir_inode->i_mutex); ocfs2_del_inode_from_orphan()
2684 iput(orphan_dir_inode); ocfs2_del_inode_from_orphan()
2698 status = ocfs2_orphan_del(osb, handle, orphan_dir_inode, ocfs2_del_inode_from_orphan()
2728 ocfs2_inode_unlock(orphan_dir_inode, 1); ocfs2_del_inode_from_orphan()
2729 mutex_unlock(&orphan_dir_inode->i_mutex); ocfs2_del_inode_from_orphan()
2731 iput(orphan_dir_inode); ocfs2_del_inode_from_orphan()
2750 struct inode *orphan_dir_inode = NULL; ocfs2_mv_orphaned_inode_to_new() local
2788 orphan_dir_inode = ocfs2_get_system_file_inode(osb, ocfs2_mv_orphaned_inode_to_new()
2791 if (!orphan_dir_inode) { ocfs2_mv_orphaned_inode_to_new()
2797 mutex_lock(&orphan_dir_inode->i_mutex); ocfs2_mv_orphaned_inode_to_new()
2799 status = ocfs2_inode_lock(orphan_dir_inode, &orphan_dir_bh, 1); ocfs2_mv_orphaned_inode_to_new()
2802 mutex_unlock(&orphan_dir_inode->i_mutex); ocfs2_mv_orphaned_inode_to_new()
2803 iput(orphan_dir_inode); ocfs2_mv_orphaned_inode_to_new()
2828 status = ocfs2_orphan_del(osb, handle, orphan_dir_inode, inode, ocfs2_mv_orphaned_inode_to_new()
2863 ocfs2_inode_unlock(orphan_dir_inode, 1); ocfs2_mv_orphaned_inode_to_new()
2864 mutex_unlock(&orphan_dir_inode->i_mutex); ocfs2_mv_orphaned_inode_to_new()
2865 iput(orphan_dir_inode); ocfs2_mv_orphaned_inode_to_new()
2171 ocfs2_orphan_add(struct ocfs2_super *osb, handle_t *handle, struct inode *inode, struct buffer_head *fe_bh, char *name, struct ocfs2_dir_lookup_result *lookup, struct inode *orphan_dir_inode, bool dio) ocfs2_orphan_add() argument
2273 ocfs2_orphan_del(struct ocfs2_super *osb, handle_t *handle, struct inode *orphan_dir_inode, struct inode *inode, struct buffer_head *orphan_dir_bh, bool dio) ocfs2_orphan_del() argument
H A Dnamei.h35 struct inode *orphan_dir_inode,
H A Dinode.c613 struct inode *orphan_dir_inode, ocfs2_remove_inode()
650 status = ocfs2_orphan_del(osb, handle, orphan_dir_inode, inode, ocfs2_remove_inode()
729 struct inode *orphan_dir_inode = NULL; ocfs2_wipe_inode() local
741 orphan_dir_inode = ocfs2_get_system_file_inode(osb, ocfs2_wipe_inode()
744 if (!orphan_dir_inode) { ocfs2_wipe_inode()
753 mutex_lock(&orphan_dir_inode->i_mutex); ocfs2_wipe_inode()
754 status = ocfs2_inode_lock(orphan_dir_inode, &orphan_dir_bh, 1); ocfs2_wipe_inode()
756 mutex_unlock(&orphan_dir_inode->i_mutex); ocfs2_wipe_inode()
795 status = ocfs2_remove_inode(inode, di_bh, orphan_dir_inode, ocfs2_wipe_inode()
804 ocfs2_inode_unlock(orphan_dir_inode, 1); ocfs2_wipe_inode()
805 mutex_unlock(&orphan_dir_inode->i_mutex); ocfs2_wipe_inode()
808 iput(orphan_dir_inode); ocfs2_wipe_inode()
611 ocfs2_remove_inode(struct inode *inode, struct buffer_head *di_bh, struct inode *orphan_dir_inode, struct buffer_head *orphan_dir_bh) ocfs2_remove_inode() argument
H A Djournal.c2039 struct inode *orphan_dir_inode = NULL; ocfs2_queue_orphans() local
2046 orphan_dir_inode = ocfs2_get_system_file_inode(osb, ocfs2_queue_orphans()
2049 if (!orphan_dir_inode) { ocfs2_queue_orphans()
2055 mutex_lock(&orphan_dir_inode->i_mutex); ocfs2_queue_orphans()
2056 status = ocfs2_inode_lock(orphan_dir_inode, NULL, 0); ocfs2_queue_orphans()
2062 status = ocfs2_dir_foreach(orphan_dir_inode, &priv.ctx); ocfs2_queue_orphans()
2071 ocfs2_inode_unlock(orphan_dir_inode, 0); ocfs2_queue_orphans()
2073 mutex_unlock(&orphan_dir_inode->i_mutex); ocfs2_queue_orphans()
2074 iput(orphan_dir_inode); ocfs2_queue_orphans()

Completed in 146 milliseconds