Lines Matching refs:bitmap_bh

494 	struct buffer_head *bitmap_bh = NULL;  in ext3_free_blocks_sb()  local
534 brelse(bitmap_bh); in ext3_free_blocks_sb()
535 bitmap_bh = read_block_bitmap(sb, block_group); in ext3_free_blocks_sb()
536 if (!bitmap_bh) in ext3_free_blocks_sb()
560 BUFFER_TRACE(bitmap_bh, "getting undo access"); in ext3_free_blocks_sb()
561 err = ext3_journal_get_undo_access(handle, bitmap_bh); in ext3_free_blocks_sb()
575 jbd_lock_bh_state(bitmap_bh); in ext3_free_blocks_sb()
582 jbd_unlock_bh_state(bitmap_bh); in ext3_free_blocks_sb()
588 if (!bh2jh(bitmap_bh)->b_committed_data) in ext3_free_blocks_sb()
591 BUFFER_TRACE2(debug_bh, bitmap_bh, "bitmap"); in ext3_free_blocks_sb()
595 jbd_lock_bh_state(bitmap_bh); in ext3_free_blocks_sb()
598 jbd_unlock_bh_state(bitmap_bh); in ext3_free_blocks_sb()
600 jbd_lock_bh_state(bitmap_bh); in ext3_free_blocks_sb()
620 BUFFER_TRACE(bitmap_bh, "set in b_committed_data"); in ext3_free_blocks_sb()
621 J_ASSERT_BH(bitmap_bh, in ext3_free_blocks_sb()
622 bh2jh(bitmap_bh)->b_committed_data != NULL); in ext3_free_blocks_sb()
624 bh2jh(bitmap_bh)->b_committed_data); in ext3_free_blocks_sb()
631 BUFFER_TRACE(bitmap_bh, "clear bit"); in ext3_free_blocks_sb()
633 bit + i, bitmap_bh->b_data)) { in ext3_free_blocks_sb()
634 jbd_unlock_bh_state(bitmap_bh); in ext3_free_blocks_sb()
638 jbd_lock_bh_state(bitmap_bh); in ext3_free_blocks_sb()
639 BUFFER_TRACE(bitmap_bh, "bit already cleared"); in ext3_free_blocks_sb()
644 jbd_unlock_bh_state(bitmap_bh); in ext3_free_blocks_sb()
652 BUFFER_TRACE(bitmap_bh, "dirtied bitmap block"); in ext3_free_blocks_sb()
653 err = ext3_journal_dirty_metadata(handle, bitmap_bh); in ext3_free_blocks_sb()
668 brelse(bitmap_bh); in ext3_free_blocks_sb()
877 struct buffer_head *bitmap_bh, ext3_grpblk_t grp_goal, in ext3_try_to_allocate() argument
911 if (grp_goal < 0 || !ext3_test_allocatable(grp_goal, bitmap_bh)) { in ext3_try_to_allocate()
912 grp_goal = find_next_usable_block(start, bitmap_bh, end); in ext3_try_to_allocate()
920 bitmap_bh); in ext3_try_to_allocate()
928 grp_goal, bitmap_bh)) { in ext3_try_to_allocate()
942 && ext3_test_allocatable(grp_goal, bitmap_bh) in ext3_try_to_allocate()
944 grp_goal, bitmap_bh)) { in ext3_try_to_allocate()
1114 unsigned int group, struct buffer_head *bitmap_bh) in alloc_new_reservation() argument
1208 bitmap_bh, group_end_block - group_first_block + 1); in alloc_new_reservation()
1316 unsigned int group, struct buffer_head *bitmap_bh, in ext3_try_to_allocate_with_rsv() argument
1333 BUFFER_TRACE(bitmap_bh, "get undo access for new block"); in ext3_try_to_allocate_with_rsv()
1334 fatal = ext3_journal_get_undo_access(handle, bitmap_bh); in ext3_try_to_allocate_with_rsv()
1347 ret = ext3_try_to_allocate(sb, handle, group, bitmap_bh, in ext3_try_to_allocate_with_rsv()
1382 group, bitmap_bh); in ext3_try_to_allocate_with_rsv()
1403 ret = ext3_try_to_allocate(sb, handle, group, bitmap_bh, in ext3_try_to_allocate_with_rsv()
1414 BUFFER_TRACE(bitmap_bh, "journal_dirty_metadata for " in ext3_try_to_allocate_with_rsv()
1416 fatal = ext3_journal_dirty_metadata(handle, bitmap_bh); in ext3_try_to_allocate_with_rsv()
1424 BUFFER_TRACE(bitmap_bh, "journal_release_buffer"); in ext3_try_to_allocate_with_rsv()
1425 ext3_journal_release_buffer(handle, bitmap_bh); in ext3_try_to_allocate_with_rsv()
1489 struct buffer_head *bitmap_bh = NULL; in ext3_new_blocks() local
1574 bitmap_bh = read_block_bitmap(sb, group_no); in ext3_new_blocks()
1575 if (!bitmap_bh) in ext3_new_blocks()
1578 group_no, bitmap_bh, grp_target_blk, in ext3_new_blocks()
1615 brelse(bitmap_bh); in ext3_new_blocks()
1616 bitmap_bh = read_block_bitmap(sb, group_no); in ext3_new_blocks()
1617 if (!bitmap_bh) in ext3_new_blocks()
1623 group_no, bitmap_bh, -1, my_rsv, in ext3_new_blocks()
1686 BUFFER_TRACE2(debug_bh, bitmap_bh, "bitmap state"); in ext3_new_blocks()
1690 jbd_lock_bh_state(bitmap_bh); in ext3_new_blocks()
1692 if (buffer_jbd(bitmap_bh) && bh2jh(bitmap_bh)->b_committed_data) { in ext3_new_blocks()
1697 bh2jh(bitmap_bh)->b_committed_data)) { in ext3_new_blocks()
1705 jbd_unlock_bh_state(bitmap_bh); in ext3_new_blocks()
1735 brelse(bitmap_bh); in ext3_new_blocks()
1759 brelse(bitmap_bh); in ext3_new_blocks()
1787 struct buffer_head *bitmap_bh = NULL; in ext3_count_free_blocks() local
1800 brelse(bitmap_bh); in ext3_count_free_blocks()
1801 bitmap_bh = read_block_bitmap(sb, i); in ext3_count_free_blocks()
1802 if (bitmap_bh == NULL) in ext3_count_free_blocks()
1805 x = ext3_count_free(bitmap_bh, sb->s_blocksize); in ext3_count_free_blocks()
1810 brelse(bitmap_bh); in ext3_count_free_blocks()
1929 struct buffer_head *gdp_bh, *bitmap_bh = NULL; in ext3_trim_all_free() local
1940 bitmap_bh = read_block_bitmap(sb, group); in ext3_trim_all_free()
1941 if (!bitmap_bh) { in ext3_trim_all_free()
1946 BUFFER_TRACE(bitmap_bh, "getting undo access"); in ext3_trim_all_free()
1947 err = ext3_journal_get_undo_access(handle, bitmap_bh); in ext3_trim_all_free()
1967 start = bitmap_search_next_usable_block(start, bitmap_bh, max); in ext3_trim_all_free()
1978 next, bitmap_bh)) { in ext3_trim_all_free()
2012 BUFFER_TRACE(bitmap_bh, "clear bit"); in ext3_trim_all_free()
2014 bit, bitmap_bh->b_data)) { in ext3_trim_all_free()
2018 BUFFER_TRACE(bitmap_bh, "bit already cleared"); in ext3_trim_all_free()
2051 BUFFER_TRACE(bitmap_bh, "dirtied bitmap block"); in ext3_trim_all_free()
2052 ret = ext3_journal_dirty_metadata(handle, bitmap_bh); in ext3_trim_all_free()
2069 brelse(bitmap_bh); in ext3_trim_all_free()