Lines Matching refs:bitmap_bh
2889 struct buffer_head *bitmap_bh = NULL; in ext4_mb_mark_diskspace_used() local
2903 bitmap_bh = ext4_read_block_bitmap(sb, ac->ac_b_ex.fe_group); in ext4_mb_mark_diskspace_used()
2904 if (IS_ERR(bitmap_bh)) { in ext4_mb_mark_diskspace_used()
2905 err = PTR_ERR(bitmap_bh); in ext4_mb_mark_diskspace_used()
2906 bitmap_bh = NULL; in ext4_mb_mark_diskspace_used()
2910 BUFFER_TRACE(bitmap_bh, "getting write access"); in ext4_mb_mark_diskspace_used()
2911 err = ext4_journal_get_write_access(handle, bitmap_bh); in ext4_mb_mark_diskspace_used()
2939 ext4_set_bits(bitmap_bh->b_data, ac->ac_b_ex.fe_start, in ext4_mb_mark_diskspace_used()
2942 err = ext4_handle_dirty_metadata(handle, NULL, bitmap_bh); in ext4_mb_mark_diskspace_used()
2954 bitmap_bh->b_data)); in ext4_mb_mark_diskspace_used()
2958 ext4_set_bits(bitmap_bh->b_data, ac->ac_b_ex.fe_start, in ext4_mb_mark_diskspace_used()
2968 ext4_block_bitmap_csum_set(sb, ac->ac_b_ex.fe_group, gdp, bitmap_bh); in ext4_mb_mark_diskspace_used()
2988 err = ext4_handle_dirty_metadata(handle, NULL, bitmap_bh); in ext4_mb_mark_diskspace_used()
2994 brelse(bitmap_bh); in ext4_mb_mark_diskspace_used()
3751 ext4_mb_release_inode_pa(struct ext4_buddy *e4b, struct buffer_head *bitmap_bh, in ext4_mb_release_inode_pa() argument
3771 bit = mb_find_next_zero_bit(bitmap_bh->b_data, end, bit); in ext4_mb_release_inode_pa()
3774 next = mb_find_next_bit(bitmap_bh->b_data, end, bit); in ext4_mb_release_inode_pa()
3838 struct buffer_head *bitmap_bh = NULL; in ext4_mb_discard_group_preallocations() local
3851 bitmap_bh = ext4_read_block_bitmap(sb, group); in ext4_mb_discard_group_preallocations()
3852 if (IS_ERR(bitmap_bh)) { in ext4_mb_discard_group_preallocations()
3853 err = PTR_ERR(bitmap_bh); in ext4_mb_discard_group_preallocations()
3862 put_bh(bitmap_bh); in ext4_mb_discard_group_preallocations()
3922 ext4_mb_release_inode_pa(&e4b, bitmap_bh, pa); in ext4_mb_discard_group_preallocations()
3931 put_bh(bitmap_bh); in ext4_mb_discard_group_preallocations()
3948 struct buffer_head *bitmap_bh = NULL; in ext4_discard_preallocations() local
4025 bitmap_bh = ext4_read_block_bitmap(sb, group); in ext4_discard_preallocations()
4026 if (IS_ERR(bitmap_bh)) { in ext4_discard_preallocations()
4027 err = PTR_ERR(bitmap_bh); in ext4_discard_preallocations()
4036 ext4_mb_release_inode_pa(&e4b, bitmap_bh, pa); in ext4_discard_preallocations()
4040 put_bh(bitmap_bh); in ext4_discard_preallocations()
4662 struct buffer_head *bitmap_bh = NULL; in ext4_free_blocks() local
4774 bitmap_bh = ext4_read_block_bitmap(sb, block_group); in ext4_free_blocks()
4775 if (IS_ERR(bitmap_bh)) { in ext4_free_blocks()
4776 err = PTR_ERR(bitmap_bh); in ext4_free_blocks()
4777 bitmap_bh = NULL; in ext4_free_blocks()
4799 BUFFER_TRACE(bitmap_bh, "getting write access"); in ext4_free_blocks()
4800 err = ext4_journal_get_write_access(handle, bitmap_bh); in ext4_free_blocks()
4817 BUG_ON(!mb_test_bit(bit + i, bitmap_bh->b_data)); in ext4_free_blocks()
4843 mb_clear_bits(bitmap_bh->b_data, bit, count_clusters); in ext4_free_blocks()
4861 mb_clear_bits(bitmap_bh->b_data, bit, count_clusters); in ext4_free_blocks()
4867 ext4_block_bitmap_csum_set(sb, block_group, gdp, bitmap_bh); in ext4_free_blocks()
4884 BUFFER_TRACE(bitmap_bh, "dirtied bitmap block"); in ext4_free_blocks()
4885 err = ext4_handle_dirty_metadata(handle, NULL, bitmap_bh); in ext4_free_blocks()
4896 put_bh(bitmap_bh); in ext4_free_blocks()
4900 brelse(bitmap_bh); in ext4_free_blocks()
4917 struct buffer_head *bitmap_bh = NULL; in ext4_group_add_blocks() local
4945 bitmap_bh = ext4_read_block_bitmap(sb, block_group); in ext4_group_add_blocks()
4946 if (IS_ERR(bitmap_bh)) { in ext4_group_add_blocks()
4947 err = PTR_ERR(bitmap_bh); in ext4_group_add_blocks()
4948 bitmap_bh = NULL; in ext4_group_add_blocks()
4970 BUFFER_TRACE(bitmap_bh, "getting write access"); in ext4_group_add_blocks()
4971 err = ext4_journal_get_write_access(handle, bitmap_bh); in ext4_group_add_blocks()
4986 BUFFER_TRACE(bitmap_bh, "clear bit"); in ext4_group_add_blocks()
4987 if (!mb_test_bit(bit + i, bitmap_bh->b_data)) { in ext4_group_add_blocks()
4990 BUFFER_TRACE(bitmap_bh, "bit already cleared"); in ext4_group_add_blocks()
5006 mb_clear_bits(bitmap_bh->b_data, bit, count); in ext4_group_add_blocks()
5010 ext4_block_bitmap_csum_set(sb, block_group, desc, bitmap_bh); in ext4_group_add_blocks()
5025 BUFFER_TRACE(bitmap_bh, "dirtied bitmap block"); in ext4_group_add_blocks()
5026 err = ext4_handle_dirty_metadata(handle, NULL, bitmap_bh); in ext4_group_add_blocks()
5035 brelse(bitmap_bh); in ext4_group_add_blocks()