Lines Matching defs:bitmap_bh

3989 	struct buffer_head *bitmap_bh = NULL;
4003 bitmap_bh = ext4_read_block_bitmap(sb, ac->ac_b_ex.fe_group);
4004 if (IS_ERR(bitmap_bh)) {
4005 return PTR_ERR(bitmap_bh);
4008 BUFFER_TRACE(bitmap_bh, "getting write access");
4009 err = ext4_journal_get_write_access(handle, sb, bitmap_bh,
4038 mb_set_bits(bitmap_bh->b_data, ac->ac_b_ex.fe_start,
4041 err = ext4_handle_dirty_metadata(handle, NULL, bitmap_bh);
4053 bitmap_bh->b_data));
4057 mb_set_bits(bitmap_bh->b_data, ac->ac_b_ex.fe_start,
4068 ext4_block_bitmap_csum_set(sb, gdp, bitmap_bh);
4089 err = ext4_handle_dirty_metadata(handle, NULL, bitmap_bh);
4095 brelse(bitmap_bh);
4106 struct buffer_head *bitmap_bh = NULL;
4135 bitmap_bh = NULL;
4139 bitmap_bh = ext4_read_block_bitmap(sb, group);
4140 if (IS_ERR(bitmap_bh)) {
4141 err = PTR_ERR(bitmap_bh);
4142 bitmap_bh = NULL;
4154 if (!mb_test_bit(blkoff + i, bitmap_bh->b_data) ==
4160 mb_set_bits(bitmap_bh->b_data, blkoff, clen);
4162 mb_clear_bits(bitmap_bh->b_data, blkoff, clen);
4175 ext4_block_bitmap_csum_set(sb, gdp, bitmap_bh);
4192 err = ext4_handle_dirty_metadata(NULL, NULL, bitmap_bh);
4195 sync_dirty_buffer(bitmap_bh);
4203 brelse(bitmap_bh);
4208 brelse(bitmap_bh);
5331 ext4_mb_release_inode_pa(struct ext4_buddy *e4b, struct buffer_head *bitmap_bh,
5350 bit = mb_find_next_zero_bit(bitmap_bh->b_data, end, bit);
5353 next = mb_find_next_bit(bitmap_bh->b_data, end, bit);
5421 struct buffer_head *bitmap_bh = NULL;
5435 bitmap_bh = ext4_read_block_bitmap(sb, group);
5436 if (IS_ERR(bitmap_bh)) {
5437 err = PTR_ERR(bitmap_bh);
5448 put_bh(bitmap_bh);
5502 ext4_mb_release_inode_pa(&e4b, bitmap_bh, pa);
5509 put_bh(bitmap_bh);
5529 struct buffer_head *bitmap_bh = NULL;
5616 bitmap_bh = ext4_read_block_bitmap(sb, group);
5617 if (IS_ERR(bitmap_bh)) {
5618 err = PTR_ERR(bitmap_bh);
5627 ext4_mb_release_inode_pa(&e4b, bitmap_bh, pa);
5631 put_bh(bitmap_bh);
6088 struct buffer_head *bitmap_bh;
6106 bitmap_bh = ext4_read_block_bitmap(sb, group);
6107 if (IS_ERR(bitmap_bh)) {
6108 *errp = PTR_ERR(bitmap_bh);
6114 i = mb_find_next_zero_bit(bitmap_bh->b_data, max,
6125 brelse(bitmap_bh);
6397 struct buffer_head *bitmap_bh;
6406 bitmap_bh = ext4_read_block_bitmap(sb, group);
6407 if (IS_ERR(bitmap_bh)) {
6416 if (!mb_test_bit(blkoff + i, bitmap_bh->b_data))
6419 mb_clear_bits(bitmap_bh->b_data, blkoff, count);
6420 err = ext4_handle_dirty_metadata(NULL, NULL, bitmap_bh);
6426 ext4_block_bitmap_csum_set(sb, gdp, bitmap_bh);
6429 sync_dirty_buffer(bitmap_bh);
6433 brelse(bitmap_bh);
6449 struct buffer_head *bitmap_bh = NULL;
6494 bitmap_bh = ext4_read_block_bitmap(sb, block_group);
6495 if (IS_ERR(bitmap_bh)) {
6496 err = PTR_ERR(bitmap_bh);
6497 bitmap_bh = NULL;
6514 BUFFER_TRACE(bitmap_bh, "getting write access");
6515 err = ext4_journal_get_write_access(handle, sb, bitmap_bh,
6533 BUG_ON(!mb_test_bit(bit + i, bitmap_bh->b_data));
6566 mb_clear_bits(bitmap_bh->b_data, bit, count_clusters);
6585 mb_clear_bits(bitmap_bh->b_data, bit, count_clusters);
6591 ext4_block_bitmap_csum_set(sb, gdp, bitmap_bh);
6617 BUFFER_TRACE(bitmap_bh, "dirtied bitmap block");
6618 err = ext4_handle_dirty_metadata(handle, NULL, bitmap_bh);
6629 put_bh(bitmap_bh);
6635 brelse(bitmap_bh);
6753 struct buffer_head *bitmap_bh = NULL;
6784 bitmap_bh = ext4_read_block_bitmap(sb, block_group);
6785 if (IS_ERR(bitmap_bh)) {
6786 err = PTR_ERR(bitmap_bh);
6787 bitmap_bh = NULL;
6805 BUFFER_TRACE(bitmap_bh, "getting write access");
6806 err = ext4_journal_get_write_access(handle, sb, bitmap_bh,
6822 BUFFER_TRACE(bitmap_bh, "clear bit");
6823 if (!mb_test_bit(bit + i, bitmap_bh->b_data)) {
6826 BUFFER_TRACE(bitmap_bh, "bit already cleared");
6842 mb_clear_bits(bitmap_bh->b_data, bit, cluster_count);
6847 ext4_block_bitmap_csum_set(sb, desc, bitmap_bh);
6863 BUFFER_TRACE(bitmap_bh, "dirtied bitmap block");
6864 err = ext4_handle_dirty_metadata(handle, NULL, bitmap_bh);
6873 brelse(bitmap_bh);