Lines Matching refs:bitmap_bh

2924 	struct buffer_head *bitmap_bh = NULL;  in ext4_mb_mark_diskspace_used()  local
2938 bitmap_bh = ext4_read_block_bitmap(sb, ac->ac_b_ex.fe_group); in ext4_mb_mark_diskspace_used()
2939 if (IS_ERR(bitmap_bh)) { in ext4_mb_mark_diskspace_used()
2940 err = PTR_ERR(bitmap_bh); in ext4_mb_mark_diskspace_used()
2941 bitmap_bh = NULL; in ext4_mb_mark_diskspace_used()
2945 BUFFER_TRACE(bitmap_bh, "getting write access"); in ext4_mb_mark_diskspace_used()
2946 err = ext4_journal_get_write_access(handle, bitmap_bh); in ext4_mb_mark_diskspace_used()
2974 ext4_set_bits(bitmap_bh->b_data, ac->ac_b_ex.fe_start, in ext4_mb_mark_diskspace_used()
2977 err = ext4_handle_dirty_metadata(handle, NULL, bitmap_bh); in ext4_mb_mark_diskspace_used()
2989 bitmap_bh->b_data)); in ext4_mb_mark_diskspace_used()
2993 ext4_set_bits(bitmap_bh->b_data, ac->ac_b_ex.fe_start, in ext4_mb_mark_diskspace_used()
3004 ext4_block_bitmap_csum_set(sb, ac->ac_b_ex.fe_group, gdp, bitmap_bh); in ext4_mb_mark_diskspace_used()
3024 err = ext4_handle_dirty_metadata(handle, NULL, bitmap_bh); in ext4_mb_mark_diskspace_used()
3030 brelse(bitmap_bh); in ext4_mb_mark_diskspace_used()
3794 ext4_mb_release_inode_pa(struct ext4_buddy *e4b, struct buffer_head *bitmap_bh, in ext4_mb_release_inode_pa() argument
3813 bit = mb_find_next_zero_bit(bitmap_bh->b_data, end, bit); in ext4_mb_release_inode_pa()
3816 next = mb_find_next_bit(bitmap_bh->b_data, end, bit); in ext4_mb_release_inode_pa()
3880 struct buffer_head *bitmap_bh = NULL; in ext4_mb_discard_group_preallocations() local
3893 bitmap_bh = ext4_read_block_bitmap(sb, group); in ext4_mb_discard_group_preallocations()
3894 if (IS_ERR(bitmap_bh)) { in ext4_mb_discard_group_preallocations()
3895 err = PTR_ERR(bitmap_bh); in ext4_mb_discard_group_preallocations()
3905 put_bh(bitmap_bh); in ext4_mb_discard_group_preallocations()
3965 ext4_mb_release_inode_pa(&e4b, bitmap_bh, pa); in ext4_mb_discard_group_preallocations()
3974 put_bh(bitmap_bh); in ext4_mb_discard_group_preallocations()
3991 struct buffer_head *bitmap_bh = NULL; in ext4_discard_preallocations() local
4069 bitmap_bh = ext4_read_block_bitmap(sb, group); in ext4_discard_preallocations()
4070 if (IS_ERR(bitmap_bh)) { in ext4_discard_preallocations()
4071 err = PTR_ERR(bitmap_bh); in ext4_discard_preallocations()
4080 ext4_mb_release_inode_pa(&e4b, bitmap_bh, pa); in ext4_discard_preallocations()
4084 put_bh(bitmap_bh); in ext4_discard_preallocations()
4706 struct buffer_head *bitmap_bh = NULL; in ext4_free_blocks() local
4807 bitmap_bh = ext4_read_block_bitmap(sb, block_group); in ext4_free_blocks()
4808 if (IS_ERR(bitmap_bh)) { in ext4_free_blocks()
4809 err = PTR_ERR(bitmap_bh); in ext4_free_blocks()
4810 bitmap_bh = NULL; in ext4_free_blocks()
4832 BUFFER_TRACE(bitmap_bh, "getting write access"); in ext4_free_blocks()
4833 err = ext4_journal_get_write_access(handle, bitmap_bh); in ext4_free_blocks()
4850 BUG_ON(!mb_test_bit(bit + i, bitmap_bh->b_data)); in ext4_free_blocks()
4883 mb_clear_bits(bitmap_bh->b_data, bit, count_clusters); in ext4_free_blocks()
4902 mb_clear_bits(bitmap_bh->b_data, bit, count_clusters); in ext4_free_blocks()
4908 ext4_block_bitmap_csum_set(sb, block_group, gdp, bitmap_bh); in ext4_free_blocks()
4925 BUFFER_TRACE(bitmap_bh, "dirtied bitmap block"); in ext4_free_blocks()
4926 err = ext4_handle_dirty_metadata(handle, NULL, bitmap_bh); in ext4_free_blocks()
4937 put_bh(bitmap_bh); in ext4_free_blocks()
4941 brelse(bitmap_bh); in ext4_free_blocks()
4958 struct buffer_head *bitmap_bh = NULL; in ext4_group_add_blocks() local
4989 bitmap_bh = ext4_read_block_bitmap(sb, block_group); in ext4_group_add_blocks()
4990 if (IS_ERR(bitmap_bh)) { in ext4_group_add_blocks()
4991 err = PTR_ERR(bitmap_bh); in ext4_group_add_blocks()
4992 bitmap_bh = NULL; in ext4_group_add_blocks()
5014 BUFFER_TRACE(bitmap_bh, "getting write access"); in ext4_group_add_blocks()
5015 err = ext4_journal_get_write_access(handle, bitmap_bh); in ext4_group_add_blocks()
5030 BUFFER_TRACE(bitmap_bh, "clear bit"); in ext4_group_add_blocks()
5031 if (!mb_test_bit(bit + i, bitmap_bh->b_data)) { in ext4_group_add_blocks()
5034 BUFFER_TRACE(bitmap_bh, "bit already cleared"); in ext4_group_add_blocks()
5050 mb_clear_bits(bitmap_bh->b_data, bit, cluster_count); in ext4_group_add_blocks()
5055 ext4_block_bitmap_csum_set(sb, block_group, desc, bitmap_bh); in ext4_group_add_blocks()
5070 BUFFER_TRACE(bitmap_bh, "dirtied bitmap block"); in ext4_group_add_blocks()
5071 err = ext4_handle_dirty_metadata(handle, NULL, bitmap_bh); in ext4_group_add_blocks()
5080 brelse(bitmap_bh); in ext4_group_add_blocks()