Lines Matching defs:bitmap_bh
3296 struct buffer_head *bitmap_bh = NULL;
3310 bitmap_bh = ext4_read_block_bitmap(sb, ac->ac_b_ex.fe_group);
3311 if (IS_ERR(bitmap_bh)) {
3312 err = PTR_ERR(bitmap_bh);
3313 bitmap_bh = NULL;
3317 BUFFER_TRACE(bitmap_bh, "getting write access");
3318 err = ext4_journal_get_write_access(handle, bitmap_bh);
3346 ext4_set_bits(bitmap_bh->b_data, ac->ac_b_ex.fe_start,
3349 err = ext4_handle_dirty_metadata(handle, NULL, bitmap_bh);
3361 bitmap_bh->b_data));
3365 ext4_set_bits(bitmap_bh->b_data, ac->ac_b_ex.fe_start,
3376 ext4_block_bitmap_csum_set(sb, ac->ac_b_ex.fe_group, gdp, bitmap_bh);
3397 err = ext4_handle_dirty_metadata(handle, NULL, bitmap_bh);
3403 brelse(bitmap_bh);
3414 struct buffer_head *bitmap_bh = NULL;
3439 bitmap_bh = ext4_read_block_bitmap(sb, group);
3440 if (IS_ERR(bitmap_bh)) {
3441 err = PTR_ERR(bitmap_bh);
3442 bitmap_bh = NULL;
3454 if (!mb_test_bit(blkoff + i, bitmap_bh->b_data) ==
3460 ext4_set_bits(bitmap_bh->b_data, blkoff, clen);
3462 mb_test_and_clear_bits(bitmap_bh->b_data, blkoff, clen);
3475 ext4_block_bitmap_csum_set(sb, group, gdp, bitmap_bh);
3492 err = ext4_handle_dirty_metadata(NULL, NULL, bitmap_bh);
3495 sync_dirty_buffer(bitmap_bh);
3503 brelse(bitmap_bh);
3508 brelse(bitmap_bh);
4310 ext4_mb_release_inode_pa(struct ext4_buddy *e4b, struct buffer_head *bitmap_bh,
4329 bit = mb_find_next_zero_bit(bitmap_bh->b_data, end, bit);
4332 next = mb_find_next_bit(bitmap_bh->b_data, end, bit);
4400 struct buffer_head *bitmap_bh = NULL;
4413 bitmap_bh = ext4_read_block_bitmap(sb, group);
4414 if (IS_ERR(bitmap_bh)) {
4415 err = PTR_ERR(bitmap_bh);
4426 put_bh(bitmap_bh);
4471 ext4_mb_release_inode_pa(&e4b, bitmap_bh, pa);
4479 put_bh(bitmap_bh);
4499 struct buffer_head *bitmap_bh = NULL;
4586 bitmap_bh = ext4_read_block_bitmap(sb, group);
4587 if (IS_ERR(bitmap_bh)) {
4588 err = PTR_ERR(bitmap_bh);
4597 ext4_mb_release_inode_pa(&e4b, bitmap_bh, pa);
4601 put_bh(bitmap_bh);
5339 struct buffer_head *bitmap_bh;
5356 bitmap_bh = ext4_read_block_bitmap(sb, group);
5357 if (IS_ERR(bitmap_bh)) {
5358 *errp = PTR_ERR(bitmap_bh);
5367 i = mb_find_next_zero_bit(bitmap_bh->b_data, max,
5377 brelse(bitmap_bh);
5397 struct buffer_head *bitmap_bh;
5406 bitmap_bh = ext4_read_block_bitmap(sb, group);
5407 if (IS_ERR(bitmap_bh)) {
5408 err = PTR_ERR(bitmap_bh);
5417 if (!mb_test_bit(blkoff + i, bitmap_bh->b_data))
5420 mb_clear_bits(bitmap_bh->b_data, blkoff, count);
5421 err = ext4_handle_dirty_metadata(NULL, NULL, bitmap_bh);
5427 ext4_block_bitmap_csum_set(sb, group, gdp, bitmap_bh);
5430 sync_dirty_buffer(bitmap_bh);
5432 brelse(bitmap_bh);
5449 struct buffer_head *bitmap_bh = NULL;
5494 bitmap_bh = ext4_read_block_bitmap(sb, block_group);
5495 if (IS_ERR(bitmap_bh)) {
5496 err = PTR_ERR(bitmap_bh);
5497 bitmap_bh = NULL;
5514 BUFFER_TRACE(bitmap_bh, "getting write access");
5515 err = ext4_journal_get_write_access(handle, bitmap_bh);
5532 BUG_ON(!mb_test_bit(bit + i, bitmap_bh->b_data));
5565 mb_clear_bits(bitmap_bh->b_data, bit, count_clusters);
5584 mb_clear_bits(bitmap_bh->b_data, bit, count_clusters);
5590 ext4_block_bitmap_csum_set(sb, block_group, gdp, bitmap_bh);
5616 BUFFER_TRACE(bitmap_bh, "dirtied bitmap block");
5617 err = ext4_handle_dirty_metadata(handle, NULL, bitmap_bh);
5628 put_bh(bitmap_bh);
5634 brelse(bitmap_bh);
5754 struct buffer_head *bitmap_bh = NULL;
5785 bitmap_bh = ext4_read_block_bitmap(sb, block_group);
5786 if (IS_ERR(bitmap_bh)) {
5787 err = PTR_ERR(bitmap_bh);
5788 bitmap_bh = NULL;
5806 BUFFER_TRACE(bitmap_bh, "getting write access");
5807 err = ext4_journal_get_write_access(handle, bitmap_bh);
5822 BUFFER_TRACE(bitmap_bh, "clear bit");
5823 if (!mb_test_bit(bit + i, bitmap_bh->b_data)) {
5826 BUFFER_TRACE(bitmap_bh, "bit already cleared");
5842 mb_clear_bits(bitmap_bh->b_data, bit, cluster_count);
5847 ext4_block_bitmap_csum_set(sb, block_group, desc, bitmap_bh);
5863 BUFFER_TRACE(bitmap_bh, "dirtied bitmap block");
5864 err = ext4_handle_dirty_metadata(handle, NULL, bitmap_bh);
5873 brelse(bitmap_bh);