Lines Matching refs:bitmap_bh
239 struct buffer_head *bitmap_bh = NULL; in ext4_free_inode() local
291 bitmap_bh = ext4_read_inode_bitmap(sb, block_group); in ext4_free_inode()
294 if (IS_ERR(bitmap_bh)) { in ext4_free_inode()
295 fatal = PTR_ERR(bitmap_bh); in ext4_free_inode()
296 bitmap_bh = NULL; in ext4_free_inode()
304 BUFFER_TRACE(bitmap_bh, "get_write_access"); in ext4_free_inode()
305 fatal = ext4_journal_get_write_access(handle, bitmap_bh); in ext4_free_inode()
316 cleared = ext4_test_and_clear_bit(bit, bitmap_bh->b_data); in ext4_free_inode()
329 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()
364 brelse(bitmap_bh); in ext4_free_inode()
1219 struct buffer_head *bitmap_bh = NULL; in ext4_orphan_get() local
1228 bitmap_bh = ext4_read_inode_bitmap(sb, block_group); in ext4_orphan_get()
1229 if (IS_ERR(bitmap_bh)) { in ext4_orphan_get()
1231 ino, PTR_ERR(bitmap_bh)); in ext4_orphan_get()
1232 return (struct inode *) bitmap_bh; in ext4_orphan_get()
1239 if (!ext4_test_bit(bit, bitmap_bh->b_data)) in ext4_orphan_get()
1262 brelse(bitmap_bh); in ext4_orphan_get()
1267 if (bitmap_bh) in ext4_orphan_get()
1269 bit, (unsigned long long)bitmap_bh->b_blocknr, in ext4_orphan_get()
1270 ext4_test_bit(bit, bitmap_bh->b_data)); in ext4_orphan_get()
1283 brelse(bitmap_bh); in ext4_orphan_get()
1295 struct buffer_head *bitmap_bh = NULL; in ext4_count_free_inodes() local
1306 brelse(bitmap_bh); in ext4_count_free_inodes()
1307 bitmap_bh = ext4_read_inode_bitmap(sb, i); in ext4_count_free_inodes()
1308 if (IS_ERR(bitmap_bh)) { in ext4_count_free_inodes()
1309 bitmap_bh = NULL; in ext4_count_free_inodes()
1313 x = ext4_count_free(bitmap_bh->b_data, in ext4_count_free_inodes()
1319 brelse(bitmap_bh); in ext4_count_free_inodes()