Lines Matching refs:bd_info

460 	if (unlikely(e4b->bd_info->bb_bitmap == NULL))  in mb_free_blocks_double()
464 if (!mb_test_bit(first + i, e4b->bd_info->bb_bitmap)) { in mb_free_blocks_double()
478 mb_clear_bit(first + i, e4b->bd_info->bb_bitmap); in mb_free_blocks_double()
486 if (unlikely(e4b->bd_info->bb_bitmap == NULL)) in mb_mark_used_double()
490 BUG_ON(mb_test_bit(first + i, e4b->bd_info->bb_bitmap)); in mb_mark_used_double()
491 mb_set_bit(first + i, e4b->bd_info->bb_bitmap); in mb_mark_used_double()
497 if (memcmp(e4b->bd_info->bb_bitmap, bitmap, e4b->bd_sb->s_blocksize)) { in mb_cmp_bitmaps()
500 b1 = (unsigned char *) e4b->bd_info->bb_bitmap; in mb_cmp_bitmaps()
602 MB_CHECK_ASSERT(e4b->bd_info->bb_counters[order] == count); in __mb_check_buddy()
610 MB_CHECK_ASSERT(i >= e4b->bd_info->bb_first_free); in __mb_check_buddy()
626 MB_CHECK_ASSERT(!EXT4_MB_GRP_NEED_INIT(e4b->bd_info)); in __mb_check_buddy()
627 MB_CHECK_ASSERT(e4b->bd_info->bb_fragments == fragments); in __mb_check_buddy()
777 e4b->bd_info->bb_fragments = 0; in mb_regenerate_buddy()
778 memset(e4b->bd_info->bb_counters, 0, in mb_regenerate_buddy()
779 sizeof(*e4b->bd_info->bb_counters) * in mb_regenerate_buddy()
1120 e4b->bd_info = grp; in ext4_mb_load_buddy_gfp()
1396 e4b->bd_info->bb_counters[order] += mb_buddy_adjust_border(&first, buddy, -1); in mb_buddy_mark_free()
1398 e4b->bd_info->bb_counters[order] += mb_buddy_adjust_border(&last, buddy, 1); in mb_buddy_mark_free()
1405 e4b->bd_info->bb_counters[order - 1] += last - first + 1; in mb_buddy_mark_free()
1428 if (unlikely(EXT4_MB_GRP_BBITMAP_CORRUPT(e4b->bd_info))) in mb_free_blocks()
1434 e4b->bd_info->bb_free += count; in mb_free_blocks()
1435 if (first < e4b->bd_info->bb_first_free) in mb_free_blocks()
1436 e4b->bd_info->bb_first_free = first; in mb_free_blocks()
1467 e4b->bd_info->bb_fragments--; in mb_free_blocks()
1469 e4b->bd_info->bb_fragments++; in mb_free_blocks()
1479 e4b->bd_info->bb_counters[0] += left_is_free ? -1 : 1; in mb_free_blocks()
1483 e4b->bd_info->bb_counters[0] += right_is_free ? -1 : 1; in mb_free_blocks()
1490 mb_set_largest_free_order(sb, e4b->bd_info); in mb_free_blocks()
1576 e4b->bd_info->bb_free -= len; in mb_mark_used()
1577 if (e4b->bd_info->bb_first_free == start) in mb_mark_used()
1578 e4b->bd_info->bb_first_free += len; in mb_mark_used()
1586 e4b->bd_info->bb_fragments++; in mb_mark_used()
1588 e4b->bd_info->bb_fragments--; in mb_mark_used()
1600 e4b->bd_info->bb_counters[ord]--; in mb_mark_used()
1615 e4b->bd_info->bb_counters[ord]--; in mb_mark_used()
1622 e4b->bd_info->bb_counters[ord]++; in mb_mark_used()
1623 e4b->bd_info->bb_counters[ord]++; in mb_mark_used()
1625 mb_set_largest_free_order(e4b->bd_sb, e4b->bd_info); in mb_mark_used()
1838 if (unlikely(EXT4_MB_GRP_BBITMAP_CORRUPT(e4b->bd_info))) { in ext4_mb_find_by_goal()
1891 struct ext4_group_info *grp = e4b->bd_info; in ext4_mb_simple_scan_group()
1947 free = e4b->bd_info->bb_free; in ext4_mb_complex_scan_group()
1951 i = e4b->bd_info->bb_first_free; in ext4_mb_complex_scan_group()
2823 db = e4b.bd_info; in ext4_free_data_in_buddy()
4691 struct ext4_group_info *db = e4b->bd_info; in ext4_mb_free_metadata()
4960 EXT4_MB_GRP_CLEAR_TRIMMED(e4b.bd_info); in ext4_free_blocks()
5214 start = max(e4b->bd_info->bb_first_free, start); in ext4_try_to_trim_range()
5243 if ((e4b->bd_info->bb_free - free_count) < minblocks) in ext4_try_to_trim_range()
5248 EXT4_MB_GRP_SET_TRIMMED(e4b->bd_info); in ext4_try_to_trim_range()
5290 if (!EXT4_MB_GRP_WAS_TRIMMED(e4b.bd_info) || in ext4_trim_all_free()
5427 start = max(e4b.bd_info->bb_first_free, start); in ext4_mballoc_query_range()