Lines Matching refs:bitmap_bh

479 	struct buffer_head *bitmap_bh = NULL;  in ext2_free_blocks()  local
516 brelse(bitmap_bh); in ext2_free_blocks()
517 bitmap_bh = read_block_bitmap(sb, block_group); in ext2_free_blocks()
518 if (!bitmap_bh) in ext2_free_blocks()
540 bit + i, bitmap_bh->b_data)) { in ext2_free_blocks()
548 mark_buffer_dirty(bitmap_bh); in ext2_free_blocks()
550 sync_dirty_buffer(bitmap_bh); in ext2_free_blocks()
561 brelse(bitmap_bh); in ext2_free_blocks()
665 struct buffer_head *bitmap_bh, ext2_grpblk_t grp_goal, in ext2_try_to_allocate() argument
701 grp_goal = find_next_usable_block(start, bitmap_bh, end); in ext2_try_to_allocate()
709 bitmap_bh->b_data); in ext2_try_to_allocate()
717 bitmap_bh->b_data)) { in ext2_try_to_allocate()
732 grp_goal, bitmap_bh->b_data)) { in ext2_try_to_allocate()
900 unsigned int group, struct buffer_head *bitmap_bh) in alloc_new_reservation() argument
991 bitmap_bh, group_end_block - group_first_block + 1); in alloc_new_reservation()
1093 struct buffer_head *bitmap_bh, ext2_grpblk_t grp_goal, in ext2_try_to_allocate_with_rsv() argument
1108 return ext2_try_to_allocate(sb, group, bitmap_bh, in ext2_try_to_allocate_with_rsv()
1142 group, bitmap_bh); in ext2_try_to_allocate_with_rsv()
1163 ret = ext2_try_to_allocate(sb, group, bitmap_bh, grp_goal, in ext2_try_to_allocate_with_rsv()
1213 struct buffer_head *bitmap_bh = NULL; in ext2_new_blocks() local
1296 bitmap_bh = read_block_bitmap(sb, group_no); in ext2_new_blocks()
1297 if (!bitmap_bh) in ext2_new_blocks()
1300 bitmap_bh, grp_target_blk, in ext2_new_blocks()
1336 brelse(bitmap_bh); in ext2_new_blocks()
1337 bitmap_bh = read_block_bitmap(sb, group_no); in ext2_new_blocks()
1338 if (!bitmap_bh) in ext2_new_blocks()
1344 bitmap_bh, -1, my_rsv, &num); in ext2_new_blocks()
1403 mark_buffer_dirty(bitmap_bh); in ext2_new_blocks()
1405 sync_dirty_buffer(bitmap_bh); in ext2_new_blocks()
1408 brelse(bitmap_bh); in ext2_new_blocks()
1426 brelse(bitmap_bh); in ext2_new_blocks()
1460 struct buffer_head *bitmap_bh; in ext2_count_free_blocks() local
1465 bitmap_bh = read_block_bitmap(sb, i); in ext2_count_free_blocks()
1466 if (!bitmap_bh) in ext2_count_free_blocks()
1469 x = ext2_count_free(bitmap_bh, sb->s_blocksize); in ext2_count_free_blocks()
1473 brelse(bitmap_bh); in ext2_count_free_blocks()