• 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()
1334 int ocfs2_block_group_set_bits(handle_t *handle, in ocfs2_block_group_set_bits() argument
1355 status = ocfs2_journal_access_gd(handle, in ocfs2_block_group_set_bits()
1375 ocfs2_journal_dirty(handle, group_bh); in ocfs2_block_group_set_bits()
1400 static int ocfs2_relink_block_group(handle_t *handle, in ocfs2_relink_block_group() argument
1428 status = ocfs2_journal_access_gd(handle, INODE_CACHE(alloc_inode), in ocfs2_relink_block_group()
1435 ocfs2_journal_dirty(handle, prev_bg_bh); in ocfs2_relink_block_group()
1437 status = ocfs2_journal_access_gd(handle, INODE_CACHE(alloc_inode), in ocfs2_relink_block_group()
1443 ocfs2_journal_dirty(handle, bg_bh); in ocfs2_relink_block_group()
1445 status = ocfs2_journal_access_di(handle, INODE_CACHE(alloc_inode), in ocfs2_relink_block_group()
1451 ocfs2_journal_dirty(handle, fe_bh); in ocfs2_relink_block_group()
1577 handle_t *handle, in ocfs2_alloc_dinode_update_counts() argument
1587 ret = ocfs2_journal_access_di(handle, INODE_CACHE(inode), di_bh, in ocfs2_alloc_dinode_update_counts()
1597 ocfs2_journal_dirty(handle, di_bh); in ocfs2_alloc_dinode_update_counts()
1668 handle_t *handle, in ocfs2_search_one_group() argument
1708 ret = ocfs2_alloc_dinode_update_counts(alloc_inode, handle, ac->ac_bh, in ocfs2_search_one_group()
1716 ret = ocfs2_block_group_set_bits(handle, alloc_inode, gd, group_bh, in ocfs2_search_one_group()
1735 handle_t *handle, in ocfs2_search_chain() argument
1826 status = ocfs2_relink_block_group(handle, alloc_inode, in ocfs2_search_chain()
1838 status = ocfs2_alloc_dinode_update_counts(alloc_inode, handle, in ocfs2_search_chain()
1846 status = ocfs2_block_group_set_bits(handle, in ocfs2_search_chain()
1876 handle_t *handle, in ocfs2_claim_suballoc_bits() argument
1914 status = ocfs2_search_one_group(ac, handle, bits_wanted, in ocfs2_claim_suballoc_bits()
1929 status = ocfs2_search_chain(ac, handle, bits_wanted, min_bits, in ocfs2_claim_suballoc_bits()
1957 status = ocfs2_search_chain(ac, handle, bits_wanted, min_bits, in ocfs2_claim_suballoc_bits()
1986 int ocfs2_claim_metadata(handle_t *handle, in ocfs2_claim_metadata() argument
2002 handle, in ocfs2_claim_metadata()
2065 handle_t *handle = NULL; in ocfs2_find_new_inode_loc() local
2086 handle = ocfs2_start_trans(OCFS2_SB(dir->i_sb), OCFS2_SUBALLOC_ALLOC); in ocfs2_find_new_inode_loc()
2087 if (IS_ERR(handle)) { in ocfs2_find_new_inode_loc()
2088 ret = PTR_ERR(handle); in ocfs2_find_new_inode_loc()
2089 handle = NULL; in ocfs2_find_new_inode_loc()
2101 ret = ocfs2_claim_suballoc_bits(ac, handle, 1, 1, res); in ocfs2_find_new_inode_loc()
2109 ocfs2_update_inode_fsync_trans(handle, dir, 0); in ocfs2_find_new_inode_loc()
2111 if (handle) in ocfs2_find_new_inode_loc()
2112 ocfs2_commit_trans(OCFS2_SB(dir->i_sb), handle); in ocfs2_find_new_inode_loc()
2120 int ocfs2_claim_new_inode_at_loc(handle_t *handle, in ocfs2_claim_new_inode_at_loc() argument
2152 ret = ocfs2_alloc_dinode_update_counts(ac->ac_inode, handle, in ocfs2_claim_new_inode_at_loc()
2160 ret = ocfs2_block_group_set_bits(handle, in ocfs2_claim_new_inode_at_loc()
2191 int ocfs2_claim_new_inode(handle_t *handle, in ocfs2_claim_new_inode() argument
2210 handle, in ocfs2_claim_new_inode()
2295 int __ocfs2_claim_clusters(handle_t *handle, in __ocfs2_claim_clusters() argument
2316 handle, in __ocfs2_claim_clusters()
2338 handle, in __ocfs2_claim_clusters()
2366 int ocfs2_claim_clusters(handle_t *handle, in ocfs2_claim_clusters() argument
2374 return __ocfs2_claim_clusters(handle, ac, min_clusters, in ocfs2_claim_clusters()
2378 static int ocfs2_block_group_clear_bits(handle_t *handle, in ocfs2_block_group_clear_bits() argument
2398 status = ocfs2_journal_access_gd(handle, INODE_CACHE(alloc_inode), in ocfs2_block_group_clear_bits()
2437 ocfs2_journal_dirty(handle, group_bh); in ocfs2_block_group_clear_bits()
2445 static int _ocfs2_free_suballoc_bits(handle_t *handle, in _ocfs2_free_suballoc_bits() argument
2484 status = ocfs2_block_group_clear_bits(handle, alloc_inode, in _ocfs2_free_suballoc_bits()
2492 status = ocfs2_journal_access_di(handle, INODE_CACHE(alloc_inode), in _ocfs2_free_suballoc_bits()
2496 ocfs2_block_group_set_bits(handle, alloc_inode, group, group_bh, in _ocfs2_free_suballoc_bits()
2505 ocfs2_journal_dirty(handle, alloc_bh); in _ocfs2_free_suballoc_bits()
2515 int ocfs2_free_suballoc_bits(handle_t *handle, in ocfs2_free_suballoc_bits() argument
2522 return _ocfs2_free_suballoc_bits(handle, alloc_inode, alloc_bh, in ocfs2_free_suballoc_bits()
2526 int ocfs2_free_dinode(handle_t *handle, in ocfs2_free_dinode() argument
2537 return ocfs2_free_suballoc_bits(handle, inode_alloc_inode, in ocfs2_free_dinode()
2541 static int _ocfs2_free_clusters(handle_t *handle, in _ocfs2_free_clusters() argument
2570 status = _ocfs2_free_suballoc_bits(handle, bitmap_inode, bitmap_bh, in _ocfs2_free_clusters()
2587 int ocfs2_free_clusters(handle_t *handle, in ocfs2_free_clusters() argument
2593 return _ocfs2_free_clusters(handle, bitmap_inode, bitmap_bh, in ocfs2_free_clusters()
2602 int ocfs2_release_clusters(handle_t *handle, in ocfs2_release_clusters() argument
2608 return _ocfs2_free_clusters(handle, bitmap_inode, bitmap_bh, in ocfs2_release_clusters()