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, bitmap_bh); in ext4_free_inode()
314 cleared = ext4_test_and_clear_bit(bit, bitmap_bh->b_data); in ext4_free_inode()
327 ext4_inode_bitmap_csum_set(sb, block_group, gdp, bitmap_bh, in ext4_free_inode()
346 BUFFER_TRACE(bitmap_bh, "call ext4_handle_dirty_metadata"); in ext4_free_inode()
347 err = ext4_handle_dirty_metadata(handle, NULL, bitmap_bh); in ext4_free_inode()
357 brelse(bitmap_bh); in ext4_free_inode()
1365 struct buffer_head *bitmap_bh = NULL; in ext4_orphan_get() local
1374 bitmap_bh = ext4_read_inode_bitmap(sb, block_group); in ext4_orphan_get()
1375 if (IS_ERR(bitmap_bh)) in ext4_orphan_get()
1376 return ERR_CAST(bitmap_bh); in ext4_orphan_get()
1382 if (!ext4_test_bit(bit, bitmap_bh->b_data)) in ext4_orphan_get()
1391 brelse(bitmap_bh); in ext4_orphan_get()
1407 brelse(bitmap_bh); in ext4_orphan_get()
1412 if (bitmap_bh) in ext4_orphan_get()
1414 bit, (unsigned long long)bitmap_bh->b_blocknr, in ext4_orphan_get()
1415 ext4_test_bit(bit, bitmap_bh->b_data)); in ext4_orphan_get()
1428 brelse(bitmap_bh); in ext4_orphan_get()
1440 struct buffer_head *bitmap_bh = NULL; in ext4_count_free_inodes() local
1451 brelse(bitmap_bh); in ext4_count_free_inodes()
1452 bitmap_bh = ext4_read_inode_bitmap(sb, i); in ext4_count_free_inodes()
1453 if (IS_ERR(bitmap_bh)) { in ext4_count_free_inodes()
1454 bitmap_bh = NULL; in ext4_count_free_inodes()
1458 x = ext4_count_free(bitmap_bh->b_data, in ext4_count_free_inodes()
1464 brelse(bitmap_bh); in ext4_count_free_inodes()