Lines Matching refs:handle

67 static int ocfs2_block_group_fill(handle_t *handle,
92 handle_t *handle,
98 static int ocfs2_relink_block_group(handle_t *handle,
340 static int ocfs2_block_group_fill(handle_t *handle, in ocfs2_block_group_fill() argument
361 status = ocfs2_journal_access_gd(handle, in ocfs2_block_group_fill()
389 ocfs2_journal_dirty(handle, bg_bh); in ocfs2_block_group_fill()
417 ocfs2_block_group_alloc_contig(struct ocfs2_super *osb, handle_t *handle, in ocfs2_block_group_alloc_contig() argument
428 status = ocfs2_claim_clusters(handle, ac, in ocfs2_block_group_alloc_contig()
450 status = ocfs2_block_group_fill(handle, alloc_inode, bg_bh, in ocfs2_block_group_alloc_contig()
462 handle_t *handle, in ocfs2_block_group_claim_bits() argument
470 status = ocfs2_claim_clusters(handle, ac, min_bits, in ocfs2_block_group_claim_bits()
481 static int ocfs2_block_group_grow_discontig(handle_t *handle, in ocfs2_block_group_grow_discontig() argument
498 status = ocfs2_journal_access_gd(handle, in ocfs2_block_group_grow_discontig()
511 status = ocfs2_block_group_claim_bits(osb, handle, ac, in ocfs2_block_group_grow_discontig()
537 ocfs2_journal_dirty(handle, bg_bh); in ocfs2_block_group_grow_discontig()
543 static void ocfs2_bg_alloc_cleanup(handle_t *handle, in ocfs2_bg_alloc_cleanup() argument
560 ret = ocfs2_free_clusters(handle, cluster_ac->ac_inode, in ocfs2_bg_alloc_cleanup()
574 ocfs2_block_group_alloc_discontig(handle_t *handle, in ocfs2_block_group_alloc_discontig() argument
592 status = ocfs2_extend_trans(handle, in ocfs2_block_group_alloc_discontig()
608 status = ocfs2_block_group_claim_bits(osb, handle, ac, min_bits, in ocfs2_block_group_alloc_discontig()
630 status = ocfs2_block_group_fill(handle, alloc_inode, bg_bh, in ocfs2_block_group_alloc_discontig()
637 status = ocfs2_block_group_grow_discontig(handle, alloc_inode, in ocfs2_block_group_alloc_discontig()
644 ocfs2_bg_alloc_cleanup(handle, ac, alloc_inode, bg_bh); in ocfs2_block_group_alloc_discontig()
662 handle_t *handle = NULL; in ocfs2_block_group_alloc() local
681 handle = ocfs2_start_trans(osb, credits); in ocfs2_block_group_alloc()
682 if (IS_ERR(handle)) { in ocfs2_block_group_alloc()
683 status = PTR_ERR(handle); in ocfs2_block_group_alloc()
684 handle = NULL; in ocfs2_block_group_alloc()
695 bg_bh = ocfs2_block_group_alloc_contig(osb, handle, alloc_inode, in ocfs2_block_group_alloc()
698 bg_bh = ocfs2_block_group_alloc_discontig(handle, in ocfs2_block_group_alloc()
710 status = ocfs2_journal_access_di(handle, INODE_CACHE(alloc_inode), in ocfs2_block_group_alloc()
731 ocfs2_journal_dirty(handle, bh); in ocfs2_block_group_alloc()
740 ocfs2_update_inode_fsync_trans(handle, alloc_inode, 0); in ocfs2_block_group_alloc()
749 if (handle) in ocfs2_block_group_alloc()
750 ocfs2_commit_trans(osb, handle); in ocfs2_block_group_alloc()
1335 int ocfs2_block_group_set_bits(handle_t *handle, in ocfs2_block_group_set_bits() argument
1356 status = ocfs2_journal_access_gd(handle, in ocfs2_block_group_set_bits()
1376 ocfs2_journal_dirty(handle, group_bh); in ocfs2_block_group_set_bits()
1401 static int ocfs2_relink_block_group(handle_t *handle, in ocfs2_relink_block_group() argument
1429 status = ocfs2_journal_access_gd(handle, INODE_CACHE(alloc_inode), in ocfs2_relink_block_group()
1436 ocfs2_journal_dirty(handle, prev_bg_bh); in ocfs2_relink_block_group()
1438 status = ocfs2_journal_access_gd(handle, INODE_CACHE(alloc_inode), in ocfs2_relink_block_group()
1444 ocfs2_journal_dirty(handle, bg_bh); in ocfs2_relink_block_group()
1446 status = ocfs2_journal_access_di(handle, INODE_CACHE(alloc_inode), in ocfs2_relink_block_group()
1452 ocfs2_journal_dirty(handle, fe_bh); in ocfs2_relink_block_group()
1578 handle_t *handle, in ocfs2_alloc_dinode_update_counts() argument
1588 ret = ocfs2_journal_access_di(handle, INODE_CACHE(inode), di_bh, in ocfs2_alloc_dinode_update_counts()
1598 ocfs2_journal_dirty(handle, di_bh); in ocfs2_alloc_dinode_update_counts()
1669 handle_t *handle, in ocfs2_search_one_group() argument
1709 ret = ocfs2_alloc_dinode_update_counts(alloc_inode, handle, ac->ac_bh, in ocfs2_search_one_group()
1717 ret = ocfs2_block_group_set_bits(handle, alloc_inode, gd, group_bh, in ocfs2_search_one_group()
1736 handle_t *handle, in ocfs2_search_chain() argument
1827 status = ocfs2_relink_block_group(handle, alloc_inode, in ocfs2_search_chain()
1839 status = ocfs2_alloc_dinode_update_counts(alloc_inode, handle, in ocfs2_search_chain()
1847 status = ocfs2_block_group_set_bits(handle, in ocfs2_search_chain()
1877 handle_t *handle, in ocfs2_claim_suballoc_bits() argument
1915 status = ocfs2_search_one_group(ac, handle, bits_wanted, in ocfs2_claim_suballoc_bits()
1930 status = ocfs2_search_chain(ac, handle, bits_wanted, min_bits, in ocfs2_claim_suballoc_bits()
1958 status = ocfs2_search_chain(ac, handle, bits_wanted, min_bits, in ocfs2_claim_suballoc_bits()
1987 int ocfs2_claim_metadata(handle_t *handle, in ocfs2_claim_metadata() argument
2003 handle, in ocfs2_claim_metadata()
2066 handle_t *handle = NULL; in ocfs2_find_new_inode_loc() local
2087 handle = ocfs2_start_trans(OCFS2_SB(dir->i_sb), OCFS2_SUBALLOC_ALLOC); in ocfs2_find_new_inode_loc()
2088 if (IS_ERR(handle)) { in ocfs2_find_new_inode_loc()
2089 ret = PTR_ERR(handle); in ocfs2_find_new_inode_loc()
2090 handle = NULL; in ocfs2_find_new_inode_loc()
2102 ret = ocfs2_claim_suballoc_bits(ac, handle, 1, 1, res); in ocfs2_find_new_inode_loc()
2110 ocfs2_update_inode_fsync_trans(handle, dir, 0); in ocfs2_find_new_inode_loc()
2112 if (handle) in ocfs2_find_new_inode_loc()
2113 ocfs2_commit_trans(OCFS2_SB(dir->i_sb), handle); in ocfs2_find_new_inode_loc()
2121 int ocfs2_claim_new_inode_at_loc(handle_t *handle, in ocfs2_claim_new_inode_at_loc() argument
2153 ret = ocfs2_alloc_dinode_update_counts(ac->ac_inode, handle, in ocfs2_claim_new_inode_at_loc()
2161 ret = ocfs2_block_group_set_bits(handle, in ocfs2_claim_new_inode_at_loc()
2192 int ocfs2_claim_new_inode(handle_t *handle, in ocfs2_claim_new_inode() argument
2211 handle, in ocfs2_claim_new_inode()
2296 int __ocfs2_claim_clusters(handle_t *handle, in __ocfs2_claim_clusters() argument
2317 handle, in __ocfs2_claim_clusters()
2339 handle, in __ocfs2_claim_clusters()
2367 int ocfs2_claim_clusters(handle_t *handle, in ocfs2_claim_clusters() argument
2375 return __ocfs2_claim_clusters(handle, ac, min_clusters, in ocfs2_claim_clusters()
2379 static int ocfs2_block_group_clear_bits(handle_t *handle, in ocfs2_block_group_clear_bits() argument
2400 status = ocfs2_journal_access_gd(handle, INODE_CACHE(alloc_inode), in ocfs2_block_group_clear_bits()
2439 ocfs2_journal_dirty(handle, group_bh); in ocfs2_block_group_clear_bits()
2447 static int _ocfs2_free_suballoc_bits(handle_t *handle, in _ocfs2_free_suballoc_bits() argument
2486 status = ocfs2_block_group_clear_bits(handle, alloc_inode, in _ocfs2_free_suballoc_bits()
2494 status = ocfs2_journal_access_di(handle, INODE_CACHE(alloc_inode), in _ocfs2_free_suballoc_bits()
2498 ocfs2_block_group_set_bits(handle, alloc_inode, group, group_bh, in _ocfs2_free_suballoc_bits()
2507 ocfs2_journal_dirty(handle, alloc_bh); in _ocfs2_free_suballoc_bits()
2514 int ocfs2_free_suballoc_bits(handle_t *handle, in ocfs2_free_suballoc_bits() argument
2521 return _ocfs2_free_suballoc_bits(handle, alloc_inode, alloc_bh, in ocfs2_free_suballoc_bits()
2525 int ocfs2_free_dinode(handle_t *handle, in ocfs2_free_dinode() argument
2536 return ocfs2_free_suballoc_bits(handle, inode_alloc_inode, in ocfs2_free_dinode()
2540 static int _ocfs2_free_clusters(handle_t *handle, in _ocfs2_free_clusters() argument
2569 status = _ocfs2_free_suballoc_bits(handle, bitmap_inode, bitmap_bh, in _ocfs2_free_clusters()
2584 int ocfs2_free_clusters(handle_t *handle, in ocfs2_free_clusters() argument
2590 return _ocfs2_free_clusters(handle, bitmap_inode, bitmap_bh, in ocfs2_free_clusters()
2599 int ocfs2_release_clusters(handle_t *handle, in ocfs2_release_clusters() argument
2605 return _ocfs2_free_clusters(handle, bitmap_inode, bitmap_bh, in ocfs2_release_clusters()