• Home
  • Raw
  • Download

Lines Matching refs:handle

85 static int ocfs2_block_group_fill(handle_t *handle,
110 handle_t *handle,
116 static int ocfs2_relink_block_group(handle_t *handle,
358 static int ocfs2_block_group_fill(handle_t *handle, in ocfs2_block_group_fill() argument
379 status = ocfs2_journal_access_gd(handle, in ocfs2_block_group_fill()
407 ocfs2_journal_dirty(handle, bg_bh); in ocfs2_block_group_fill()
435 ocfs2_block_group_alloc_contig(struct ocfs2_super *osb, handle_t *handle, in ocfs2_block_group_alloc_contig() argument
446 status = ocfs2_claim_clusters(handle, ac, in ocfs2_block_group_alloc_contig()
468 status = ocfs2_block_group_fill(handle, alloc_inode, bg_bh, in ocfs2_block_group_alloc_contig()
480 handle_t *handle, in ocfs2_block_group_claim_bits() argument
488 status = ocfs2_claim_clusters(handle, ac, min_bits, in ocfs2_block_group_claim_bits()
499 static int ocfs2_block_group_grow_discontig(handle_t *handle, in ocfs2_block_group_grow_discontig() argument
516 status = ocfs2_journal_access_gd(handle, in ocfs2_block_group_grow_discontig()
529 status = ocfs2_block_group_claim_bits(osb, handle, ac, in ocfs2_block_group_grow_discontig()
555 ocfs2_journal_dirty(handle, bg_bh); in ocfs2_block_group_grow_discontig()
561 static void ocfs2_bg_alloc_cleanup(handle_t *handle, in ocfs2_bg_alloc_cleanup() argument
578 ret = ocfs2_free_clusters(handle, cluster_ac->ac_inode, in ocfs2_bg_alloc_cleanup()
592 ocfs2_block_group_alloc_discontig(handle_t *handle, in ocfs2_block_group_alloc_discontig() argument
610 status = ocfs2_extend_trans(handle, in ocfs2_block_group_alloc_discontig()
626 status = ocfs2_block_group_claim_bits(osb, handle, ac, min_bits, in ocfs2_block_group_alloc_discontig()
648 status = ocfs2_block_group_fill(handle, alloc_inode, bg_bh, in ocfs2_block_group_alloc_discontig()
655 status = ocfs2_block_group_grow_discontig(handle, alloc_inode, in ocfs2_block_group_alloc_discontig()
662 ocfs2_bg_alloc_cleanup(handle, ac, alloc_inode, bg_bh); in ocfs2_block_group_alloc_discontig()
680 handle_t *handle = NULL; in ocfs2_block_group_alloc() local
699 handle = ocfs2_start_trans(osb, credits); in ocfs2_block_group_alloc()
700 if (IS_ERR(handle)) { in ocfs2_block_group_alloc()
701 status = PTR_ERR(handle); in ocfs2_block_group_alloc()
702 handle = NULL; in ocfs2_block_group_alloc()
713 bg_bh = ocfs2_block_group_alloc_contig(osb, handle, alloc_inode, in ocfs2_block_group_alloc()
716 bg_bh = ocfs2_block_group_alloc_discontig(handle, in ocfs2_block_group_alloc()
728 status = ocfs2_journal_access_di(handle, INODE_CACHE(alloc_inode), in ocfs2_block_group_alloc()
749 ocfs2_journal_dirty(handle, bh); in ocfs2_block_group_alloc()
758 ocfs2_update_inode_fsync_trans(handle, alloc_inode, 0); in ocfs2_block_group_alloc()
767 if (handle) in ocfs2_block_group_alloc()
768 ocfs2_commit_trans(osb, handle); in ocfs2_block_group_alloc()
1325 int ocfs2_block_group_set_bits(handle_t *handle, in ocfs2_block_group_set_bits() argument
1346 status = ocfs2_journal_access_gd(handle, in ocfs2_block_group_set_bits()
1366 ocfs2_journal_dirty(handle, group_bh); in ocfs2_block_group_set_bits()
1391 static int ocfs2_relink_block_group(handle_t *handle, in ocfs2_relink_block_group() argument
1419 status = ocfs2_journal_access_gd(handle, INODE_CACHE(alloc_inode), in ocfs2_relink_block_group()
1426 ocfs2_journal_dirty(handle, prev_bg_bh); in ocfs2_relink_block_group()
1428 status = ocfs2_journal_access_gd(handle, INODE_CACHE(alloc_inode), in ocfs2_relink_block_group()
1434 ocfs2_journal_dirty(handle, bg_bh); in ocfs2_relink_block_group()
1436 status = ocfs2_journal_access_di(handle, INODE_CACHE(alloc_inode), in ocfs2_relink_block_group()
1442 ocfs2_journal_dirty(handle, fe_bh); in ocfs2_relink_block_group()
1568 handle_t *handle, in ocfs2_alloc_dinode_update_counts() argument
1578 ret = ocfs2_journal_access_di(handle, INODE_CACHE(inode), di_bh, in ocfs2_alloc_dinode_update_counts()
1588 ocfs2_journal_dirty(handle, di_bh); in ocfs2_alloc_dinode_update_counts()
1659 handle_t *handle, in ocfs2_search_one_group() argument
1699 ret = ocfs2_alloc_dinode_update_counts(alloc_inode, handle, ac->ac_bh, in ocfs2_search_one_group()
1707 ret = ocfs2_block_group_set_bits(handle, alloc_inode, gd, group_bh, in ocfs2_search_one_group()
1726 handle_t *handle, in ocfs2_search_chain() argument
1817 status = ocfs2_relink_block_group(handle, alloc_inode, in ocfs2_search_chain()
1829 status = ocfs2_alloc_dinode_update_counts(alloc_inode, handle, in ocfs2_search_chain()
1837 status = ocfs2_block_group_set_bits(handle, in ocfs2_search_chain()
1867 handle_t *handle, in ocfs2_claim_suballoc_bits() argument
1905 status = ocfs2_search_one_group(ac, handle, bits_wanted, in ocfs2_claim_suballoc_bits()
1920 status = ocfs2_search_chain(ac, handle, bits_wanted, min_bits, in ocfs2_claim_suballoc_bits()
1948 status = ocfs2_search_chain(ac, handle, bits_wanted, min_bits, in ocfs2_claim_suballoc_bits()
1977 int ocfs2_claim_metadata(handle_t *handle, in ocfs2_claim_metadata() argument
1993 handle, in ocfs2_claim_metadata()
2056 handle_t *handle = NULL; in ocfs2_find_new_inode_loc() local
2077 handle = ocfs2_start_trans(OCFS2_SB(dir->i_sb), OCFS2_SUBALLOC_ALLOC); in ocfs2_find_new_inode_loc()
2078 if (IS_ERR(handle)) { in ocfs2_find_new_inode_loc()
2079 ret = PTR_ERR(handle); in ocfs2_find_new_inode_loc()
2080 handle = NULL; in ocfs2_find_new_inode_loc()
2092 ret = ocfs2_claim_suballoc_bits(ac, handle, 1, 1, res); in ocfs2_find_new_inode_loc()
2100 ocfs2_update_inode_fsync_trans(handle, dir, 0); in ocfs2_find_new_inode_loc()
2102 if (handle) in ocfs2_find_new_inode_loc()
2103 ocfs2_commit_trans(OCFS2_SB(dir->i_sb), handle); in ocfs2_find_new_inode_loc()
2111 int ocfs2_claim_new_inode_at_loc(handle_t *handle, in ocfs2_claim_new_inode_at_loc() argument
2143 ret = ocfs2_alloc_dinode_update_counts(ac->ac_inode, handle, in ocfs2_claim_new_inode_at_loc()
2151 ret = ocfs2_block_group_set_bits(handle, in ocfs2_claim_new_inode_at_loc()
2182 int ocfs2_claim_new_inode(handle_t *handle, in ocfs2_claim_new_inode() argument
2201 handle, in ocfs2_claim_new_inode()
2286 int __ocfs2_claim_clusters(handle_t *handle, in __ocfs2_claim_clusters() argument
2307 handle, in __ocfs2_claim_clusters()
2329 handle, in __ocfs2_claim_clusters()
2357 int ocfs2_claim_clusters(handle_t *handle, in ocfs2_claim_clusters() argument
2365 return __ocfs2_claim_clusters(handle, ac, min_clusters, in ocfs2_claim_clusters()
2369 static int ocfs2_block_group_clear_bits(handle_t *handle, in ocfs2_block_group_clear_bits() argument
2389 status = ocfs2_journal_access_gd(handle, INODE_CACHE(alloc_inode), in ocfs2_block_group_clear_bits()
2426 ocfs2_journal_dirty(handle, group_bh); in ocfs2_block_group_clear_bits()
2434 static int _ocfs2_free_suballoc_bits(handle_t *handle, in _ocfs2_free_suballoc_bits() argument
2473 status = ocfs2_block_group_clear_bits(handle, alloc_inode, in _ocfs2_free_suballoc_bits()
2481 status = ocfs2_journal_access_di(handle, INODE_CACHE(alloc_inode), in _ocfs2_free_suballoc_bits()
2485 ocfs2_block_group_set_bits(handle, alloc_inode, group, group_bh, in _ocfs2_free_suballoc_bits()
2494 ocfs2_journal_dirty(handle, alloc_bh); in _ocfs2_free_suballoc_bits()
2504 int ocfs2_free_suballoc_bits(handle_t *handle, in ocfs2_free_suballoc_bits() argument
2511 return _ocfs2_free_suballoc_bits(handle, alloc_inode, alloc_bh, in ocfs2_free_suballoc_bits()
2515 int ocfs2_free_dinode(handle_t *handle, in ocfs2_free_dinode() argument
2526 return ocfs2_free_suballoc_bits(handle, inode_alloc_inode, in ocfs2_free_dinode()
2530 static int _ocfs2_free_clusters(handle_t *handle, in _ocfs2_free_clusters() argument
2559 status = _ocfs2_free_suballoc_bits(handle, bitmap_inode, bitmap_bh, in _ocfs2_free_clusters()
2576 int ocfs2_free_clusters(handle_t *handle, in ocfs2_free_clusters() argument
2582 return _ocfs2_free_clusters(handle, bitmap_inode, bitmap_bh, in ocfs2_free_clusters()
2591 int ocfs2_release_clusters(handle_t *handle, in ocfs2_release_clusters() argument
2597 return _ocfs2_free_clusters(handle, bitmap_inode, bitmap_bh, in ocfs2_release_clusters()