Lines Matching refs:bitmap_bh

2730 	struct buffer_head *bitmap_bh = NULL;  in ext4_mb_mark_diskspace_used()  local
2745 bitmap_bh = ext4_read_block_bitmap(sb, ac->ac_b_ex.fe_group); in ext4_mb_mark_diskspace_used()
2746 if (!bitmap_bh) in ext4_mb_mark_diskspace_used()
2749 err = ext4_journal_get_write_access(handle, bitmap_bh); in ext4_mb_mark_diskspace_used()
2776 ext4_set_bits(bitmap_bh->b_data, ac->ac_b_ex.fe_start, in ext4_mb_mark_diskspace_used()
2779 err = ext4_handle_dirty_metadata(handle, NULL, bitmap_bh); in ext4_mb_mark_diskspace_used()
2791 bitmap_bh->b_data)); in ext4_mb_mark_diskspace_used()
2795 ext4_set_bits(bitmap_bh->b_data, ac->ac_b_ex.fe_start, in ext4_mb_mark_diskspace_used()
2824 err = ext4_handle_dirty_metadata(handle, NULL, bitmap_bh); in ext4_mb_mark_diskspace_used()
2831 brelse(bitmap_bh); in ext4_mb_mark_diskspace_used()
3570 ext4_mb_release_inode_pa(struct ext4_buddy *e4b, struct buffer_head *bitmap_bh, in ext4_mb_release_inode_pa() argument
3590 bit = mb_find_next_zero_bit(bitmap_bh->b_data, end, bit); in ext4_mb_release_inode_pa()
3593 next = mb_find_next_bit(bitmap_bh->b_data, end, bit); in ext4_mb_release_inode_pa()
3657 struct buffer_head *bitmap_bh = NULL; in ext4_mb_discard_group_preallocations() local
3670 bitmap_bh = ext4_read_block_bitmap(sb, group); in ext4_mb_discard_group_preallocations()
3671 if (bitmap_bh == NULL) { in ext4_mb_discard_group_preallocations()
3679 put_bh(bitmap_bh); in ext4_mb_discard_group_preallocations()
3743 ext4_mb_release_inode_pa(&e4b, bitmap_bh, pa); in ext4_mb_discard_group_preallocations()
3752 put_bh(bitmap_bh); in ext4_mb_discard_group_preallocations()
3769 struct buffer_head *bitmap_bh = NULL; in ext4_discard_preallocations() local
3846 bitmap_bh = ext4_read_block_bitmap(sb, group); in ext4_discard_preallocations()
3847 if (bitmap_bh == NULL) { in ext4_discard_preallocations()
3856 ext4_mb_release_inode_pa(&e4b, bitmap_bh, pa); in ext4_discard_preallocations()
3860 put_bh(bitmap_bh); in ext4_discard_preallocations()
4485 struct buffer_head *bitmap_bh = NULL; in ext4_free_blocks() local
4590 bitmap_bh = ext4_read_block_bitmap(sb, block_group); in ext4_free_blocks()
4591 if (!bitmap_bh) { in ext4_free_blocks()
4614 BUFFER_TRACE(bitmap_bh, "getting write access"); in ext4_free_blocks()
4615 err = ext4_journal_get_write_access(handle, bitmap_bh); in ext4_free_blocks()
4632 BUG_ON(!mb_test_bit(bit + i, bitmap_bh->b_data)); in ext4_free_blocks()
4664 mb_clear_bits(bitmap_bh->b_data, bit, count_clusters); in ext4_free_blocks()
4672 mb_clear_bits(bitmap_bh->b_data, bit, count_clusters); in ext4_free_blocks()
4696 BUFFER_TRACE(bitmap_bh, "dirtied bitmap block"); in ext4_free_blocks()
4697 err = ext4_handle_dirty_metadata(handle, NULL, bitmap_bh); in ext4_free_blocks()
4708 put_bh(bitmap_bh); in ext4_free_blocks()
4713 brelse(bitmap_bh); in ext4_free_blocks()
4730 struct buffer_head *bitmap_bh = NULL; in ext4_group_add_blocks() local
4758 bitmap_bh = ext4_read_block_bitmap(sb, block_group); in ext4_group_add_blocks()
4759 if (!bitmap_bh) { in ext4_group_add_blocks()
4782 BUFFER_TRACE(bitmap_bh, "getting write access"); in ext4_group_add_blocks()
4783 err = ext4_journal_get_write_access(handle, bitmap_bh); in ext4_group_add_blocks()
4798 BUFFER_TRACE(bitmap_bh, "clear bit"); in ext4_group_add_blocks()
4799 if (!mb_test_bit(bit + i, bitmap_bh->b_data)) { in ext4_group_add_blocks()
4802 BUFFER_TRACE(bitmap_bh, "bit already cleared"); in ext4_group_add_blocks()
4818 mb_clear_bits(bitmap_bh->b_data, bit, count); in ext4_group_add_blocks()
4836 BUFFER_TRACE(bitmap_bh, "dirtied bitmap block"); in ext4_group_add_blocks()
4837 err = ext4_handle_dirty_metadata(handle, NULL, bitmap_bh); in ext4_group_add_blocks()
4846 brelse(bitmap_bh); in ext4_group_add_blocks()