Lines Matching refs:bitmap_bh
2976 struct buffer_head *bitmap_bh = NULL; in ext4_mb_mark_diskspace_used() local
2990 bitmap_bh = ext4_read_block_bitmap(sb, ac->ac_b_ex.fe_group); in ext4_mb_mark_diskspace_used()
2991 if (IS_ERR(bitmap_bh)) { in ext4_mb_mark_diskspace_used()
2992 err = PTR_ERR(bitmap_bh); in ext4_mb_mark_diskspace_used()
2993 bitmap_bh = NULL; in ext4_mb_mark_diskspace_used()
2997 BUFFER_TRACE(bitmap_bh, "getting write access"); in ext4_mb_mark_diskspace_used()
2998 err = ext4_journal_get_write_access(handle, bitmap_bh); in ext4_mb_mark_diskspace_used()
3026 ext4_set_bits(bitmap_bh->b_data, ac->ac_b_ex.fe_start, in ext4_mb_mark_diskspace_used()
3029 err = ext4_handle_dirty_metadata(handle, NULL, bitmap_bh); in ext4_mb_mark_diskspace_used()
3041 bitmap_bh->b_data)); in ext4_mb_mark_diskspace_used()
3045 ext4_set_bits(bitmap_bh->b_data, ac->ac_b_ex.fe_start, in ext4_mb_mark_diskspace_used()
3056 ext4_block_bitmap_csum_set(sb, ac->ac_b_ex.fe_group, gdp, bitmap_bh); in ext4_mb_mark_diskspace_used()
3077 err = ext4_handle_dirty_metadata(handle, NULL, bitmap_bh); in ext4_mb_mark_diskspace_used()
3083 brelse(bitmap_bh); in ext4_mb_mark_diskspace_used()
3847 ext4_mb_release_inode_pa(struct ext4_buddy *e4b, struct buffer_head *bitmap_bh, in ext4_mb_release_inode_pa() argument
3867 bit = mb_find_next_zero_bit(bitmap_bh->b_data, end, bit); in ext4_mb_release_inode_pa()
3870 next = mb_find_next_bit(bitmap_bh->b_data, end, bit); in ext4_mb_release_inode_pa()
3934 struct buffer_head *bitmap_bh = NULL; in ext4_mb_discard_group_preallocations() local
3947 bitmap_bh = ext4_read_block_bitmap(sb, group); in ext4_mb_discard_group_preallocations()
3948 if (IS_ERR(bitmap_bh)) { in ext4_mb_discard_group_preallocations()
3949 err = PTR_ERR(bitmap_bh); in ext4_mb_discard_group_preallocations()
3959 put_bh(bitmap_bh); in ext4_mb_discard_group_preallocations()
4019 ext4_mb_release_inode_pa(&e4b, bitmap_bh, pa); in ext4_mb_discard_group_preallocations()
4028 put_bh(bitmap_bh); in ext4_mb_discard_group_preallocations()
4045 struct buffer_head *bitmap_bh = NULL; in ext4_discard_preallocations() local
4123 bitmap_bh = ext4_read_block_bitmap(sb, group); in ext4_discard_preallocations()
4124 if (IS_ERR(bitmap_bh)) { in ext4_discard_preallocations()
4125 err = PTR_ERR(bitmap_bh); in ext4_discard_preallocations()
4134 ext4_mb_release_inode_pa(&e4b, bitmap_bh, pa); in ext4_discard_preallocations()
4138 put_bh(bitmap_bh); in ext4_discard_preallocations()
4760 struct buffer_head *bitmap_bh = NULL; in ext4_free_blocks() local
4861 bitmap_bh = ext4_read_block_bitmap(sb, block_group); in ext4_free_blocks()
4862 if (IS_ERR(bitmap_bh)) { in ext4_free_blocks()
4863 err = PTR_ERR(bitmap_bh); in ext4_free_blocks()
4864 bitmap_bh = NULL; in ext4_free_blocks()
4886 BUFFER_TRACE(bitmap_bh, "getting write access"); in ext4_free_blocks()
4887 err = ext4_journal_get_write_access(handle, bitmap_bh); in ext4_free_blocks()
4904 BUG_ON(!mb_test_bit(bit + i, bitmap_bh->b_data)); in ext4_free_blocks()
4937 mb_clear_bits(bitmap_bh->b_data, bit, count_clusters); in ext4_free_blocks()
4956 mb_clear_bits(bitmap_bh->b_data, bit, count_clusters); in ext4_free_blocks()
4962 ext4_block_bitmap_csum_set(sb, block_group, gdp, bitmap_bh); in ext4_free_blocks()
4980 BUFFER_TRACE(bitmap_bh, "dirtied bitmap block"); in ext4_free_blocks()
4981 err = ext4_handle_dirty_metadata(handle, NULL, bitmap_bh); in ext4_free_blocks()
4992 put_bh(bitmap_bh); in ext4_free_blocks()
4996 brelse(bitmap_bh); in ext4_free_blocks()
5013 struct buffer_head *bitmap_bh = NULL; in ext4_group_add_blocks() local
5041 bitmap_bh = ext4_read_block_bitmap(sb, block_group); in ext4_group_add_blocks()
5042 if (IS_ERR(bitmap_bh)) { in ext4_group_add_blocks()
5043 err = PTR_ERR(bitmap_bh); in ext4_group_add_blocks()
5044 bitmap_bh = NULL; in ext4_group_add_blocks()
5066 BUFFER_TRACE(bitmap_bh, "getting write access"); in ext4_group_add_blocks()
5067 err = ext4_journal_get_write_access(handle, bitmap_bh); in ext4_group_add_blocks()
5082 BUFFER_TRACE(bitmap_bh, "clear bit"); in ext4_group_add_blocks()
5083 if (!mb_test_bit(bit + i, bitmap_bh->b_data)) { in ext4_group_add_blocks()
5086 BUFFER_TRACE(bitmap_bh, "bit already cleared"); in ext4_group_add_blocks()
5102 mb_clear_bits(bitmap_bh->b_data, bit, count); in ext4_group_add_blocks()
5106 ext4_block_bitmap_csum_set(sb, block_group, desc, bitmap_bh); in ext4_group_add_blocks()
5122 BUFFER_TRACE(bitmap_bh, "dirtied bitmap block"); in ext4_group_add_blocks()
5123 err = ext4_handle_dirty_metadata(handle, NULL, bitmap_bh); in ext4_group_add_blocks()
5132 brelse(bitmap_bh); in ext4_group_add_blocks()