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()
1372 struct buffer_head *bitmap_bh = NULL; in ext4_orphan_get() local
1381 bitmap_bh = ext4_read_inode_bitmap(sb, block_group); in ext4_orphan_get()
1382 if (IS_ERR(bitmap_bh)) in ext4_orphan_get()
1383 return ERR_CAST(bitmap_bh); in ext4_orphan_get()
1389 if (!ext4_test_bit(bit, bitmap_bh->b_data)) in ext4_orphan_get()
1398 brelse(bitmap_bh); in ext4_orphan_get()
1414 brelse(bitmap_bh); in ext4_orphan_get()
1419 if (bitmap_bh) in ext4_orphan_get()
1421 bit, (unsigned long long)bitmap_bh->b_blocknr, in ext4_orphan_get()
1422 ext4_test_bit(bit, bitmap_bh->b_data)); in ext4_orphan_get()
1435 brelse(bitmap_bh); in ext4_orphan_get()
1447 struct buffer_head *bitmap_bh = NULL; in ext4_count_free_inodes() local
1458 brelse(bitmap_bh); in ext4_count_free_inodes()
1459 bitmap_bh = ext4_read_inode_bitmap(sb, i); in ext4_count_free_inodes()
1460 if (IS_ERR(bitmap_bh)) { in ext4_count_free_inodes()
1461 bitmap_bh = NULL; in ext4_count_free_inodes()
1465 x = ext4_count_free(bitmap_bh->b_data, in ext4_count_free_inodes()
1471 brelse(bitmap_bh); in ext4_count_free_inodes()