Lines Matching refs:bitmap_bh

240 	struct buffer_head *bitmap_bh = NULL;  in ext4_free_inode()  local
287 bitmap_bh = ext4_read_inode_bitmap(sb, block_group); in ext4_free_inode()
289 if (IS_ERR(bitmap_bh)) { in ext4_free_inode()
290 fatal = PTR_ERR(bitmap_bh); in ext4_free_inode()
291 bitmap_bh = NULL; in ext4_free_inode()
302 BUFFER_TRACE(bitmap_bh, "get_write_access"); in ext4_free_inode()
303 fatal = ext4_journal_get_write_access(handle, sb, bitmap_bh, in ext4_free_inode()
316 cleared = ext4_test_and_clear_bit(bit, bitmap_bh->b_data); in ext4_free_inode()
330 ext4_inode_bitmap_csum_set(sb, block_group, gdp, bitmap_bh, in ext4_free_inode()
350 BUFFER_TRACE(bitmap_bh, "call ext4_handle_dirty_metadata"); in ext4_free_inode()
351 err = ext4_handle_dirty_metadata(handle, NULL, bitmap_bh); in ext4_free_inode()
361 brelse(bitmap_bh); in ext4_free_inode()
1373 struct buffer_head *bitmap_bh = NULL; in ext4_orphan_get() local
1382 bitmap_bh = ext4_read_inode_bitmap(sb, block_group); in ext4_orphan_get()
1383 if (IS_ERR(bitmap_bh)) in ext4_orphan_get()
1384 return ERR_CAST(bitmap_bh); in ext4_orphan_get()
1390 if (!ext4_test_bit(bit, bitmap_bh->b_data)) in ext4_orphan_get()
1399 brelse(bitmap_bh); in ext4_orphan_get()
1415 brelse(bitmap_bh); in ext4_orphan_get()
1420 if (bitmap_bh) in ext4_orphan_get()
1422 bit, (unsigned long long)bitmap_bh->b_blocknr, in ext4_orphan_get()
1423 ext4_test_bit(bit, bitmap_bh->b_data)); in ext4_orphan_get()
1436 brelse(bitmap_bh); in ext4_orphan_get()
1448 struct buffer_head *bitmap_bh = NULL; in ext4_count_free_inodes() local
1459 brelse(bitmap_bh); in ext4_count_free_inodes()
1460 bitmap_bh = ext4_read_inode_bitmap(sb, i); in ext4_count_free_inodes()
1461 if (IS_ERR(bitmap_bh)) { in ext4_count_free_inodes()
1462 bitmap_bh = NULL; in ext4_count_free_inodes()
1466 x = ext4_count_free(bitmap_bh->b_data, in ext4_count_free_inodes()
1472 brelse(bitmap_bh); in ext4_count_free_inodes()