Lines Matching refs:handle

71 static int ocfs2_block_group_fill(handle_t *handle,
96 handle_t *handle,
102 static int ocfs2_relink_block_group(handle_t *handle,
344 static int ocfs2_block_group_fill(handle_t *handle, in ocfs2_block_group_fill() argument
365 status = ocfs2_journal_access_gd(handle, in ocfs2_block_group_fill()
393 ocfs2_journal_dirty(handle, bg_bh); in ocfs2_block_group_fill()
421 ocfs2_block_group_alloc_contig(struct ocfs2_super *osb, handle_t *handle, in ocfs2_block_group_alloc_contig() argument
432 status = ocfs2_claim_clusters(handle, ac, in ocfs2_block_group_alloc_contig()
454 status = ocfs2_block_group_fill(handle, alloc_inode, bg_bh, in ocfs2_block_group_alloc_contig()
466 handle_t *handle, in ocfs2_block_group_claim_bits() argument
474 status = ocfs2_claim_clusters(handle, ac, min_bits, in ocfs2_block_group_claim_bits()
485 static int ocfs2_block_group_grow_discontig(handle_t *handle, in ocfs2_block_group_grow_discontig() argument
502 status = ocfs2_journal_access_gd(handle, in ocfs2_block_group_grow_discontig()
515 status = ocfs2_block_group_claim_bits(osb, handle, ac, in ocfs2_block_group_grow_discontig()
541 ocfs2_journal_dirty(handle, bg_bh); in ocfs2_block_group_grow_discontig()
547 static void ocfs2_bg_alloc_cleanup(handle_t *handle, in ocfs2_bg_alloc_cleanup() argument
564 ret = ocfs2_free_clusters(handle, cluster_ac->ac_inode, in ocfs2_bg_alloc_cleanup()
578 ocfs2_block_group_alloc_discontig(handle_t *handle, in ocfs2_block_group_alloc_discontig() argument
596 status = ocfs2_extend_trans(handle, in ocfs2_block_group_alloc_discontig()
612 status = ocfs2_block_group_claim_bits(osb, handle, ac, min_bits, in ocfs2_block_group_alloc_discontig()
634 status = ocfs2_block_group_fill(handle, alloc_inode, bg_bh, in ocfs2_block_group_alloc_discontig()
641 status = ocfs2_block_group_grow_discontig(handle, alloc_inode, in ocfs2_block_group_alloc_discontig()
648 ocfs2_bg_alloc_cleanup(handle, ac, alloc_inode, bg_bh); in ocfs2_block_group_alloc_discontig()
666 handle_t *handle = NULL; in ocfs2_block_group_alloc() local
685 handle = ocfs2_start_trans(osb, credits); in ocfs2_block_group_alloc()
686 if (IS_ERR(handle)) { in ocfs2_block_group_alloc()
687 status = PTR_ERR(handle); in ocfs2_block_group_alloc()
688 handle = NULL; in ocfs2_block_group_alloc()
699 bg_bh = ocfs2_block_group_alloc_contig(osb, handle, alloc_inode, in ocfs2_block_group_alloc()
703 bg_bh = ocfs2_block_group_alloc_discontig(handle, in ocfs2_block_group_alloc()
716 status = ocfs2_journal_access_di(handle, INODE_CACHE(alloc_inode), in ocfs2_block_group_alloc()
737 ocfs2_journal_dirty(handle, bh); in ocfs2_block_group_alloc()
746 ocfs2_update_inode_fsync_trans(handle, alloc_inode, 0); in ocfs2_block_group_alloc()
755 if (handle) in ocfs2_block_group_alloc()
756 ocfs2_commit_trans(osb, handle); in ocfs2_block_group_alloc()
1363 int ocfs2_block_group_set_bits(handle_t *handle, in ocfs2_block_group_set_bits() argument
1389 status = ocfs2_journal_access_gd(handle, in ocfs2_block_group_set_bits()
1432 ocfs2_journal_dirty(handle, group_bh); in ocfs2_block_group_set_bits()
1457 static int ocfs2_relink_block_group(handle_t *handle, in ocfs2_relink_block_group() argument
1485 status = ocfs2_journal_access_gd(handle, INODE_CACHE(alloc_inode), in ocfs2_relink_block_group()
1492 ocfs2_journal_dirty(handle, prev_bg_bh); in ocfs2_relink_block_group()
1494 status = ocfs2_journal_access_gd(handle, INODE_CACHE(alloc_inode), in ocfs2_relink_block_group()
1500 ocfs2_journal_dirty(handle, bg_bh); in ocfs2_relink_block_group()
1502 status = ocfs2_journal_access_di(handle, INODE_CACHE(alloc_inode), in ocfs2_relink_block_group()
1508 ocfs2_journal_dirty(handle, fe_bh); in ocfs2_relink_block_group()
1632 handle_t *handle, in ocfs2_alloc_dinode_update_counts() argument
1642 ret = ocfs2_journal_access_di(handle, INODE_CACHE(inode), di_bh, in ocfs2_alloc_dinode_update_counts()
1652 ocfs2_journal_dirty(handle, di_bh); in ocfs2_alloc_dinode_update_counts()
1723 handle_t *handle, in ocfs2_search_one_group() argument
1763 ret = ocfs2_alloc_dinode_update_counts(alloc_inode, handle, ac->ac_bh, in ocfs2_search_one_group()
1771 ret = ocfs2_block_group_set_bits(handle, alloc_inode, gd, group_bh, in ocfs2_search_one_group()
1791 handle_t *handle, in ocfs2_search_chain() argument
1894 status = ocfs2_relink_block_group(handle, alloc_inode, in ocfs2_search_chain()
1906 status = ocfs2_alloc_dinode_update_counts(alloc_inode, handle, in ocfs2_search_chain()
1914 status = ocfs2_block_group_set_bits(handle, in ocfs2_search_chain()
1946 handle_t *handle, in ocfs2_claim_suballoc_bits() argument
1984 status = ocfs2_search_one_group(ac, handle, bits_wanted, in ocfs2_claim_suballoc_bits()
2000 status = ocfs2_search_chain(ac, handle, bits_wanted, min_bits, in ocfs2_claim_suballoc_bits()
2028 status = ocfs2_search_chain(ac, handle, bits_wanted, min_bits, in ocfs2_claim_suballoc_bits()
2067 int ocfs2_claim_metadata(handle_t *handle, in ocfs2_claim_metadata() argument
2083 handle, in ocfs2_claim_metadata()
2146 handle_t *handle = NULL; in ocfs2_find_new_inode_loc() local
2167 handle = ocfs2_start_trans(OCFS2_SB(dir->i_sb), OCFS2_SUBALLOC_ALLOC); in ocfs2_find_new_inode_loc()
2168 if (IS_ERR(handle)) { in ocfs2_find_new_inode_loc()
2169 ret = PTR_ERR(handle); in ocfs2_find_new_inode_loc()
2170 handle = NULL; in ocfs2_find_new_inode_loc()
2182 ret = ocfs2_claim_suballoc_bits(ac, handle, 1, 1, res); in ocfs2_find_new_inode_loc()
2190 ocfs2_update_inode_fsync_trans(handle, dir, 0); in ocfs2_find_new_inode_loc()
2192 if (handle) in ocfs2_find_new_inode_loc()
2193 ocfs2_commit_trans(OCFS2_SB(dir->i_sb), handle); in ocfs2_find_new_inode_loc()
2201 int ocfs2_claim_new_inode_at_loc(handle_t *handle, in ocfs2_claim_new_inode_at_loc() argument
2233 ret = ocfs2_alloc_dinode_update_counts(ac->ac_inode, handle, in ocfs2_claim_new_inode_at_loc()
2241 ret = ocfs2_block_group_set_bits(handle, in ocfs2_claim_new_inode_at_loc()
2274 int ocfs2_claim_new_inode(handle_t *handle, in ocfs2_claim_new_inode() argument
2293 handle, in ocfs2_claim_new_inode()
2378 int __ocfs2_claim_clusters(handle_t *handle, in __ocfs2_claim_clusters() argument
2400 handle, in __ocfs2_claim_clusters()
2422 handle, in __ocfs2_claim_clusters()
2450 int ocfs2_claim_clusters(handle_t *handle, in ocfs2_claim_clusters() argument
2458 return __ocfs2_claim_clusters(handle, ac, min_clusters, in ocfs2_claim_clusters()
2462 static int ocfs2_block_group_clear_bits(handle_t *handle, in ocfs2_block_group_clear_bits() argument
2485 status = ocfs2_journal_access_gd(handle, INODE_CACHE(alloc_inode), in ocfs2_block_group_clear_bits()
2538 ocfs2_journal_dirty(handle, group_bh); in ocfs2_block_group_clear_bits()
2546 static int _ocfs2_free_suballoc_bits(handle_t *handle, in _ocfs2_free_suballoc_bits() argument
2588 status = ocfs2_block_group_clear_bits(handle, alloc_inode, in _ocfs2_free_suballoc_bits()
2596 status = ocfs2_journal_access_di(handle, INODE_CACHE(alloc_inode), in _ocfs2_free_suballoc_bits()
2600 ocfs2_block_group_set_bits(handle, alloc_inode, group, group_bh, in _ocfs2_free_suballoc_bits()
2610 ocfs2_journal_dirty(handle, alloc_bh); in _ocfs2_free_suballoc_bits()
2617 int ocfs2_free_suballoc_bits(handle_t *handle, in ocfs2_free_suballoc_bits() argument
2624 return _ocfs2_free_suballoc_bits(handle, alloc_inode, alloc_bh, in ocfs2_free_suballoc_bits()
2628 int ocfs2_free_dinode(handle_t *handle, in ocfs2_free_dinode() argument
2639 return ocfs2_free_suballoc_bits(handle, inode_alloc_inode, in ocfs2_free_dinode()
2643 static int _ocfs2_free_clusters(handle_t *handle, in _ocfs2_free_clusters() argument
2672 status = _ocfs2_free_suballoc_bits(handle, bitmap_inode, bitmap_bh, in _ocfs2_free_clusters()
2687 int ocfs2_free_clusters(handle_t *handle, in ocfs2_free_clusters() argument
2693 return _ocfs2_free_clusters(handle, bitmap_inode, bitmap_bh, in ocfs2_free_clusters()
2702 int ocfs2_release_clusters(handle_t *handle, in ocfs2_release_clusters() argument
2708 return _ocfs2_free_clusters(handle, bitmap_inode, bitmap_bh, in ocfs2_release_clusters()