• Home
  • Raw
  • Download

Lines Matching refs:handle

69 static int ocfs2_block_group_fill(handle_t *handle,
94 handle_t *handle,
100 static int ocfs2_relink_block_group(handle_t *handle,
342 static int ocfs2_block_group_fill(handle_t *handle, in ocfs2_block_group_fill() argument
363 status = ocfs2_journal_access_gd(handle, in ocfs2_block_group_fill()
391 ocfs2_journal_dirty(handle, bg_bh); in ocfs2_block_group_fill()
419 ocfs2_block_group_alloc_contig(struct ocfs2_super *osb, handle_t *handle, in ocfs2_block_group_alloc_contig() argument
430 status = ocfs2_claim_clusters(handle, ac, in ocfs2_block_group_alloc_contig()
452 status = ocfs2_block_group_fill(handle, alloc_inode, bg_bh, in ocfs2_block_group_alloc_contig()
464 handle_t *handle, in ocfs2_block_group_claim_bits() argument
472 status = ocfs2_claim_clusters(handle, ac, min_bits, in ocfs2_block_group_claim_bits()
483 static int ocfs2_block_group_grow_discontig(handle_t *handle, in ocfs2_block_group_grow_discontig() argument
500 status = ocfs2_journal_access_gd(handle, in ocfs2_block_group_grow_discontig()
513 status = ocfs2_block_group_claim_bits(osb, handle, ac, in ocfs2_block_group_grow_discontig()
539 ocfs2_journal_dirty(handle, bg_bh); in ocfs2_block_group_grow_discontig()
545 static void ocfs2_bg_alloc_cleanup(handle_t *handle, in ocfs2_bg_alloc_cleanup() argument
562 ret = ocfs2_free_clusters(handle, cluster_ac->ac_inode, in ocfs2_bg_alloc_cleanup()
576 ocfs2_block_group_alloc_discontig(handle_t *handle, in ocfs2_block_group_alloc_discontig() argument
594 status = ocfs2_extend_trans(handle, in ocfs2_block_group_alloc_discontig()
610 status = ocfs2_block_group_claim_bits(osb, handle, ac, min_bits, in ocfs2_block_group_alloc_discontig()
632 status = ocfs2_block_group_fill(handle, alloc_inode, bg_bh, in ocfs2_block_group_alloc_discontig()
639 status = ocfs2_block_group_grow_discontig(handle, alloc_inode, in ocfs2_block_group_alloc_discontig()
646 ocfs2_bg_alloc_cleanup(handle, ac, alloc_inode, bg_bh); in ocfs2_block_group_alloc_discontig()
664 handle_t *handle = NULL; in ocfs2_block_group_alloc() local
683 handle = ocfs2_start_trans(osb, credits); in ocfs2_block_group_alloc()
684 if (IS_ERR(handle)) { in ocfs2_block_group_alloc()
685 status = PTR_ERR(handle); in ocfs2_block_group_alloc()
686 handle = NULL; in ocfs2_block_group_alloc()
697 bg_bh = ocfs2_block_group_alloc_contig(osb, handle, alloc_inode, in ocfs2_block_group_alloc()
700 bg_bh = ocfs2_block_group_alloc_discontig(handle, in ocfs2_block_group_alloc()
712 status = ocfs2_journal_access_di(handle, INODE_CACHE(alloc_inode), in ocfs2_block_group_alloc()
733 ocfs2_journal_dirty(handle, bh); in ocfs2_block_group_alloc()
742 ocfs2_update_inode_fsync_trans(handle, alloc_inode, 0); in ocfs2_block_group_alloc()
751 if (handle) in ocfs2_block_group_alloc()
752 ocfs2_commit_trans(osb, handle); in ocfs2_block_group_alloc()
1337 int ocfs2_block_group_set_bits(handle_t *handle, in ocfs2_block_group_set_bits() argument
1358 status = ocfs2_journal_access_gd(handle, in ocfs2_block_group_set_bits()
1378 ocfs2_journal_dirty(handle, group_bh); in ocfs2_block_group_set_bits()
1403 static int ocfs2_relink_block_group(handle_t *handle, in ocfs2_relink_block_group() argument
1431 status = ocfs2_journal_access_gd(handle, INODE_CACHE(alloc_inode), in ocfs2_relink_block_group()
1438 ocfs2_journal_dirty(handle, prev_bg_bh); in ocfs2_relink_block_group()
1440 status = ocfs2_journal_access_gd(handle, INODE_CACHE(alloc_inode), in ocfs2_relink_block_group()
1446 ocfs2_journal_dirty(handle, bg_bh); in ocfs2_relink_block_group()
1448 status = ocfs2_journal_access_di(handle, INODE_CACHE(alloc_inode), in ocfs2_relink_block_group()
1454 ocfs2_journal_dirty(handle, fe_bh); in ocfs2_relink_block_group()
1580 handle_t *handle, in ocfs2_alloc_dinode_update_counts() argument
1590 ret = ocfs2_journal_access_di(handle, INODE_CACHE(inode), di_bh, in ocfs2_alloc_dinode_update_counts()
1600 ocfs2_journal_dirty(handle, di_bh); in ocfs2_alloc_dinode_update_counts()
1671 handle_t *handle, in ocfs2_search_one_group() argument
1711 ret = ocfs2_alloc_dinode_update_counts(alloc_inode, handle, ac->ac_bh, in ocfs2_search_one_group()
1719 ret = ocfs2_block_group_set_bits(handle, alloc_inode, gd, group_bh, in ocfs2_search_one_group()
1738 handle_t *handle, in ocfs2_search_chain() argument
1829 status = ocfs2_relink_block_group(handle, alloc_inode, in ocfs2_search_chain()
1841 status = ocfs2_alloc_dinode_update_counts(alloc_inode, handle, in ocfs2_search_chain()
1849 status = ocfs2_block_group_set_bits(handle, in ocfs2_search_chain()
1879 handle_t *handle, in ocfs2_claim_suballoc_bits() argument
1917 status = ocfs2_search_one_group(ac, handle, bits_wanted, in ocfs2_claim_suballoc_bits()
1932 status = ocfs2_search_chain(ac, handle, bits_wanted, min_bits, in ocfs2_claim_suballoc_bits()
1960 status = ocfs2_search_chain(ac, handle, bits_wanted, min_bits, in ocfs2_claim_suballoc_bits()
1989 int ocfs2_claim_metadata(handle_t *handle, in ocfs2_claim_metadata() argument
2005 handle, in ocfs2_claim_metadata()
2068 handle_t *handle = NULL; in ocfs2_find_new_inode_loc() local
2089 handle = ocfs2_start_trans(OCFS2_SB(dir->i_sb), OCFS2_SUBALLOC_ALLOC); in ocfs2_find_new_inode_loc()
2090 if (IS_ERR(handle)) { in ocfs2_find_new_inode_loc()
2091 ret = PTR_ERR(handle); in ocfs2_find_new_inode_loc()
2092 handle = NULL; in ocfs2_find_new_inode_loc()
2104 ret = ocfs2_claim_suballoc_bits(ac, handle, 1, 1, res); in ocfs2_find_new_inode_loc()
2112 ocfs2_update_inode_fsync_trans(handle, dir, 0); in ocfs2_find_new_inode_loc()
2114 if (handle) in ocfs2_find_new_inode_loc()
2115 ocfs2_commit_trans(OCFS2_SB(dir->i_sb), handle); in ocfs2_find_new_inode_loc()
2123 int ocfs2_claim_new_inode_at_loc(handle_t *handle, in ocfs2_claim_new_inode_at_loc() argument
2155 ret = ocfs2_alloc_dinode_update_counts(ac->ac_inode, handle, in ocfs2_claim_new_inode_at_loc()
2163 ret = ocfs2_block_group_set_bits(handle, in ocfs2_claim_new_inode_at_loc()
2194 int ocfs2_claim_new_inode(handle_t *handle, in ocfs2_claim_new_inode() argument
2213 handle, in ocfs2_claim_new_inode()
2298 int __ocfs2_claim_clusters(handle_t *handle, in __ocfs2_claim_clusters() argument
2319 handle, in __ocfs2_claim_clusters()
2341 handle, in __ocfs2_claim_clusters()
2369 int ocfs2_claim_clusters(handle_t *handle, in ocfs2_claim_clusters() argument
2377 return __ocfs2_claim_clusters(handle, ac, min_clusters, in ocfs2_claim_clusters()
2381 static int ocfs2_block_group_clear_bits(handle_t *handle, in ocfs2_block_group_clear_bits() argument
2402 status = ocfs2_journal_access_gd(handle, INODE_CACHE(alloc_inode), in ocfs2_block_group_clear_bits()
2441 ocfs2_journal_dirty(handle, group_bh); in ocfs2_block_group_clear_bits()
2449 static int _ocfs2_free_suballoc_bits(handle_t *handle, in _ocfs2_free_suballoc_bits() argument
2488 status = ocfs2_block_group_clear_bits(handle, alloc_inode, in _ocfs2_free_suballoc_bits()
2496 status = ocfs2_journal_access_di(handle, INODE_CACHE(alloc_inode), in _ocfs2_free_suballoc_bits()
2500 ocfs2_block_group_set_bits(handle, alloc_inode, group, group_bh, in _ocfs2_free_suballoc_bits()
2509 ocfs2_journal_dirty(handle, alloc_bh); in _ocfs2_free_suballoc_bits()
2516 int ocfs2_free_suballoc_bits(handle_t *handle, in ocfs2_free_suballoc_bits() argument
2523 return _ocfs2_free_suballoc_bits(handle, alloc_inode, alloc_bh, in ocfs2_free_suballoc_bits()
2527 int ocfs2_free_dinode(handle_t *handle, in ocfs2_free_dinode() argument
2538 return ocfs2_free_suballoc_bits(handle, inode_alloc_inode, in ocfs2_free_dinode()
2542 static int _ocfs2_free_clusters(handle_t *handle, in _ocfs2_free_clusters() argument
2571 status = _ocfs2_free_suballoc_bits(handle, bitmap_inode, bitmap_bh, in _ocfs2_free_clusters()
2586 int ocfs2_free_clusters(handle_t *handle, in ocfs2_free_clusters() argument
2592 return _ocfs2_free_clusters(handle, bitmap_inode, bitmap_bh, in ocfs2_free_clusters()
2601 int ocfs2_release_clusters(handle_t *handle, in ocfs2_release_clusters() argument
2607 return _ocfs2_free_clusters(handle, bitmap_inode, bitmap_bh, in ocfs2_release_clusters()