Lines Matching refs:bitmap_bh
480 struct buffer_head *bitmap_bh = NULL; in ext3_free_blocks_sb() local
520 brelse(bitmap_bh); in ext3_free_blocks_sb()
521 bitmap_bh = read_block_bitmap(sb, block_group); in ext3_free_blocks_sb()
522 if (!bitmap_bh) in ext3_free_blocks_sb()
546 BUFFER_TRACE(bitmap_bh, "getting undo access"); in ext3_free_blocks_sb()
547 err = ext3_journal_get_undo_access(handle, bitmap_bh); in ext3_free_blocks_sb()
561 jbd_lock_bh_state(bitmap_bh); in ext3_free_blocks_sb()
568 jbd_unlock_bh_state(bitmap_bh); in ext3_free_blocks_sb()
574 if (!bh2jh(bitmap_bh)->b_committed_data) in ext3_free_blocks_sb()
577 BUFFER_TRACE2(debug_bh, bitmap_bh, "bitmap"); in ext3_free_blocks_sb()
581 jbd_lock_bh_state(bitmap_bh); in ext3_free_blocks_sb()
584 jbd_unlock_bh_state(bitmap_bh); in ext3_free_blocks_sb()
586 jbd_lock_bh_state(bitmap_bh); in ext3_free_blocks_sb()
606 BUFFER_TRACE(bitmap_bh, "set in b_committed_data"); in ext3_free_blocks_sb()
607 J_ASSERT_BH(bitmap_bh, in ext3_free_blocks_sb()
608 bh2jh(bitmap_bh)->b_committed_data != NULL); in ext3_free_blocks_sb()
610 bh2jh(bitmap_bh)->b_committed_data); in ext3_free_blocks_sb()
617 BUFFER_TRACE(bitmap_bh, "clear bit"); in ext3_free_blocks_sb()
619 bit + i, bitmap_bh->b_data)) { in ext3_free_blocks_sb()
620 jbd_unlock_bh_state(bitmap_bh); in ext3_free_blocks_sb()
624 jbd_lock_bh_state(bitmap_bh); in ext3_free_blocks_sb()
625 BUFFER_TRACE(bitmap_bh, "bit already cleared"); in ext3_free_blocks_sb()
630 jbd_unlock_bh_state(bitmap_bh); in ext3_free_blocks_sb()
638 BUFFER_TRACE(bitmap_bh, "dirtied bitmap block"); in ext3_free_blocks_sb()
639 err = ext3_journal_dirty_metadata(handle, bitmap_bh); in ext3_free_blocks_sb()
654 brelse(bitmap_bh); in ext3_free_blocks_sb()
866 struct buffer_head *bitmap_bh, ext3_grpblk_t grp_goal, in ext3_try_to_allocate() argument
900 if (grp_goal < 0 || !ext3_test_allocatable(grp_goal, bitmap_bh)) { in ext3_try_to_allocate()
901 grp_goal = find_next_usable_block(start, bitmap_bh, end); in ext3_try_to_allocate()
909 bitmap_bh); in ext3_try_to_allocate()
917 grp_goal, bitmap_bh)) { in ext3_try_to_allocate()
931 && ext3_test_allocatable(grp_goal, bitmap_bh) in ext3_try_to_allocate()
933 grp_goal, bitmap_bh)) { in ext3_try_to_allocate()
1101 unsigned int group, struct buffer_head *bitmap_bh) in alloc_new_reservation() argument
1194 bitmap_bh, group_end_block - group_first_block + 1); in alloc_new_reservation()
1299 unsigned int group, struct buffer_head *bitmap_bh, in ext3_try_to_allocate_with_rsv() argument
1316 BUFFER_TRACE(bitmap_bh, "get undo access for new block"); in ext3_try_to_allocate_with_rsv()
1317 fatal = ext3_journal_get_undo_access(handle, bitmap_bh); in ext3_try_to_allocate_with_rsv()
1330 ret = ext3_try_to_allocate(sb, handle, group, bitmap_bh, in ext3_try_to_allocate_with_rsv()
1365 group, bitmap_bh); in ext3_try_to_allocate_with_rsv()
1386 ret = ext3_try_to_allocate(sb, handle, group, bitmap_bh, in ext3_try_to_allocate_with_rsv()
1397 BUFFER_TRACE(bitmap_bh, "journal_dirty_metadata for " in ext3_try_to_allocate_with_rsv()
1399 fatal = ext3_journal_dirty_metadata(handle, bitmap_bh); in ext3_try_to_allocate_with_rsv()
1407 BUFFER_TRACE(bitmap_bh, "journal_release_buffer"); in ext3_try_to_allocate_with_rsv()
1408 ext3_journal_release_buffer(handle, bitmap_bh); in ext3_try_to_allocate_with_rsv()
1471 struct buffer_head *bitmap_bh = NULL; in ext3_new_blocks() local
1557 bitmap_bh = read_block_bitmap(sb, group_no); in ext3_new_blocks()
1558 if (!bitmap_bh) in ext3_new_blocks()
1561 group_no, bitmap_bh, grp_target_blk, in ext3_new_blocks()
1592 brelse(bitmap_bh); in ext3_new_blocks()
1593 bitmap_bh = read_block_bitmap(sb, group_no); in ext3_new_blocks()
1594 if (!bitmap_bh) in ext3_new_blocks()
1600 group_no, bitmap_bh, -1, my_rsv, in ext3_new_blocks()
1663 BUFFER_TRACE2(debug_bh, bitmap_bh, "bitmap state"); in ext3_new_blocks()
1667 jbd_lock_bh_state(bitmap_bh); in ext3_new_blocks()
1669 if (buffer_jbd(bitmap_bh) && bh2jh(bitmap_bh)->b_committed_data) { in ext3_new_blocks()
1674 bh2jh(bitmap_bh)->b_committed_data)) { in ext3_new_blocks()
1682 jbd_unlock_bh_state(bitmap_bh); in ext3_new_blocks()
1716 brelse(bitmap_bh); in ext3_new_blocks()
1733 brelse(bitmap_bh); in ext3_new_blocks()
1761 struct buffer_head *bitmap_bh = NULL; in ext3_count_free_blocks() local
1774 brelse(bitmap_bh); in ext3_count_free_blocks()
1775 bitmap_bh = read_block_bitmap(sb, i); in ext3_count_free_blocks()
1776 if (bitmap_bh == NULL) in ext3_count_free_blocks()
1779 x = ext3_count_free(bitmap_bh, sb->s_blocksize); in ext3_count_free_blocks()
1784 brelse(bitmap_bh); in ext3_count_free_blocks()