Lines Matching refs:bitmap_bh
258 struct buffer_head *bitmap_bh = NULL; in ext4_free_inode() local
311 bitmap_bh = ext4_read_inode_bitmap(sb, block_group); in ext4_free_inode()
314 if (IS_ERR(bitmap_bh)) { in ext4_free_inode()
315 fatal = PTR_ERR(bitmap_bh); in ext4_free_inode()
316 bitmap_bh = NULL; in ext4_free_inode()
324 BUFFER_TRACE(bitmap_bh, "get_write_access"); in ext4_free_inode()
325 fatal = ext4_journal_get_write_access(handle, bitmap_bh); in ext4_free_inode()
336 cleared = ext4_test_and_clear_bit(bit, bitmap_bh->b_data); in ext4_free_inode()
349 ext4_inode_bitmap_csum_set(sb, block_group, gdp, bitmap_bh, in ext4_free_inode()
366 BUFFER_TRACE(bitmap_bh, "call ext4_handle_dirty_metadata"); in ext4_free_inode()
367 err = ext4_handle_dirty_metadata(handle, NULL, bitmap_bh); in ext4_free_inode()
382 brelse(bitmap_bh); in ext4_free_inode()
1146 struct buffer_head *bitmap_bh = NULL; in ext4_orphan_get() local
1155 bitmap_bh = ext4_read_inode_bitmap(sb, block_group); in ext4_orphan_get()
1156 if (IS_ERR(bitmap_bh)) { in ext4_orphan_get()
1158 ino, PTR_ERR(bitmap_bh)); in ext4_orphan_get()
1159 return (struct inode *) bitmap_bh; in ext4_orphan_get()
1166 if (!ext4_test_bit(bit, bitmap_bh->b_data)) in ext4_orphan_get()
1189 brelse(bitmap_bh); in ext4_orphan_get()
1194 if (bitmap_bh) in ext4_orphan_get()
1196 bit, (unsigned long long)bitmap_bh->b_blocknr, in ext4_orphan_get()
1197 ext4_test_bit(bit, bitmap_bh->b_data)); in ext4_orphan_get()
1210 brelse(bitmap_bh); in ext4_orphan_get()
1222 struct buffer_head *bitmap_bh = NULL; in ext4_count_free_inodes() local
1233 brelse(bitmap_bh); in ext4_count_free_inodes()
1234 bitmap_bh = ext4_read_inode_bitmap(sb, i); in ext4_count_free_inodes()
1235 if (IS_ERR(bitmap_bh)) { in ext4_count_free_inodes()
1236 bitmap_bh = NULL; in ext4_count_free_inodes()
1240 x = ext4_count_free(bitmap_bh->b_data, in ext4_count_free_inodes()
1246 brelse(bitmap_bh); in ext4_count_free_inodes()