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()
328 ext4_inode_bitmap_csum_set(sb, block_group, gdp, bitmap_bh, in ext4_free_inode()
348 BUFFER_TRACE(bitmap_bh, "call ext4_handle_dirty_metadata"); in ext4_free_inode()
349 err = ext4_handle_dirty_metadata(handle, NULL, bitmap_bh); in ext4_free_inode()
359 brelse(bitmap_bh); in ext4_free_inode()
1370 struct buffer_head *bitmap_bh = NULL; in ext4_orphan_get() local
1379 bitmap_bh = ext4_read_inode_bitmap(sb, block_group); in ext4_orphan_get()
1380 if (IS_ERR(bitmap_bh)) in ext4_orphan_get()
1381 return ERR_CAST(bitmap_bh); in ext4_orphan_get()
1387 if (!ext4_test_bit(bit, bitmap_bh->b_data)) in ext4_orphan_get()
1396 brelse(bitmap_bh); in ext4_orphan_get()
1412 brelse(bitmap_bh); in ext4_orphan_get()
1417 if (bitmap_bh) in ext4_orphan_get()
1419 bit, (unsigned long long)bitmap_bh->b_blocknr, in ext4_orphan_get()
1420 ext4_test_bit(bit, bitmap_bh->b_data)); in ext4_orphan_get()
1433 brelse(bitmap_bh); in ext4_orphan_get()
1445 struct buffer_head *bitmap_bh = NULL; in ext4_count_free_inodes() local
1456 brelse(bitmap_bh); in ext4_count_free_inodes()
1457 bitmap_bh = ext4_read_inode_bitmap(sb, i); in ext4_count_free_inodes()
1458 if (IS_ERR(bitmap_bh)) { in ext4_count_free_inodes()
1459 bitmap_bh = NULL; in ext4_count_free_inodes()
1463 x = ext4_count_free(bitmap_bh->b_data, in ext4_count_free_inodes()
1469 brelse(bitmap_bh); in ext4_count_free_inodes()