Lines Matching refs:bitmap_bh
481 struct buffer_head *bitmap_bh = NULL; in ext2_free_blocks() local
518 brelse(bitmap_bh); in ext2_free_blocks()
519 bitmap_bh = read_block_bitmap(sb, block_group); in ext2_free_blocks()
520 if (!bitmap_bh) in ext2_free_blocks()
542 bit + i, bitmap_bh->b_data)) { in ext2_free_blocks()
550 mark_buffer_dirty(bitmap_bh); in ext2_free_blocks()
552 sync_dirty_buffer(bitmap_bh); in ext2_free_blocks()
563 brelse(bitmap_bh); in ext2_free_blocks()
667 struct buffer_head *bitmap_bh, ext2_grpblk_t grp_goal, in ext2_try_to_allocate() argument
703 grp_goal = find_next_usable_block(start, bitmap_bh, end); in ext2_try_to_allocate()
711 bitmap_bh->b_data); in ext2_try_to_allocate()
719 bitmap_bh->b_data)) { in ext2_try_to_allocate()
734 grp_goal, bitmap_bh->b_data)) { in ext2_try_to_allocate()
902 unsigned int group, struct buffer_head *bitmap_bh) in alloc_new_reservation() argument
993 bitmap_bh, group_end_block - group_first_block + 1); in alloc_new_reservation()
1095 struct buffer_head *bitmap_bh, ext2_grpblk_t grp_goal, in ext2_try_to_allocate_with_rsv() argument
1110 return ext2_try_to_allocate(sb, group, bitmap_bh, in ext2_try_to_allocate_with_rsv()
1144 group, bitmap_bh); in ext2_try_to_allocate_with_rsv()
1165 ret = ext2_try_to_allocate(sb, group, bitmap_bh, grp_goal, in ext2_try_to_allocate_with_rsv()
1236 struct buffer_head *bitmap_bh = NULL; in ext2_new_blocks() local
1319 bitmap_bh = read_block_bitmap(sb, group_no); in ext2_new_blocks()
1320 if (!bitmap_bh) in ext2_new_blocks()
1323 bitmap_bh, grp_target_blk, in ext2_new_blocks()
1359 brelse(bitmap_bh); in ext2_new_blocks()
1360 bitmap_bh = read_block_bitmap(sb, group_no); in ext2_new_blocks()
1361 if (!bitmap_bh) in ext2_new_blocks()
1367 bitmap_bh, -1, my_rsv, &num); in ext2_new_blocks()
1426 mark_buffer_dirty(bitmap_bh); in ext2_new_blocks()
1428 sync_dirty_buffer(bitmap_bh); in ext2_new_blocks()
1431 brelse(bitmap_bh); in ext2_new_blocks()
1449 brelse(bitmap_bh); in ext2_new_blocks()
1483 struct buffer_head *bitmap_bh; in ext2_count_free_blocks() local
1488 bitmap_bh = read_block_bitmap(sb, i); in ext2_count_free_blocks()
1489 if (!bitmap_bh) in ext2_count_free_blocks()
1492 x = ext2_count_free(bitmap_bh, sb->s_blocksize); in ext2_count_free_blocks()
1496 brelse(bitmap_bh); in ext2_count_free_blocks()