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()
1367 struct buffer_head *bitmap_bh = NULL; in ext4_orphan_get() local
1376 bitmap_bh = ext4_read_inode_bitmap(sb, block_group); in ext4_orphan_get()
1377 if (IS_ERR(bitmap_bh)) in ext4_orphan_get()
1378 return ERR_CAST(bitmap_bh); in ext4_orphan_get()
1384 if (!ext4_test_bit(bit, bitmap_bh->b_data)) in ext4_orphan_get()
1393 brelse(bitmap_bh); in ext4_orphan_get()
1409 brelse(bitmap_bh); in ext4_orphan_get()
1414 if (bitmap_bh) in ext4_orphan_get()
1416 bit, (unsigned long long)bitmap_bh->b_blocknr, in ext4_orphan_get()
1417 ext4_test_bit(bit, bitmap_bh->b_data)); in ext4_orphan_get()
1430 brelse(bitmap_bh); in ext4_orphan_get()
1442 struct buffer_head *bitmap_bh = NULL; in ext4_count_free_inodes() local
1453 brelse(bitmap_bh); in ext4_count_free_inodes()
1454 bitmap_bh = ext4_read_inode_bitmap(sb, i); in ext4_count_free_inodes()
1455 if (IS_ERR(bitmap_bh)) { in ext4_count_free_inodes()
1456 bitmap_bh = NULL; in ext4_count_free_inodes()
1460 x = ext4_count_free(bitmap_bh->b_data, in ext4_count_free_inodes()
1466 brelse(bitmap_bh); in ext4_count_free_inodes()