Lines Matching refs:bd_info
558 if (unlikely(e4b->bd_info->bb_bitmap == NULL)) in mb_free_blocks_double()
562 if (!mb_test_bit(first + i, e4b->bd_info->bb_bitmap)) { in mb_free_blocks_double()
576 mb_clear_bit(first + i, e4b->bd_info->bb_bitmap); in mb_free_blocks_double()
584 if (unlikely(e4b->bd_info->bb_bitmap == NULL)) in mb_mark_used_double()
588 BUG_ON(mb_test_bit(first + i, e4b->bd_info->bb_bitmap)); in mb_mark_used_double()
589 mb_set_bit(first + i, e4b->bd_info->bb_bitmap); in mb_mark_used_double()
595 if (unlikely(e4b->bd_info->bb_bitmap == NULL)) in mb_cmp_bitmaps()
597 if (memcmp(e4b->bd_info->bb_bitmap, bitmap, e4b->bd_sb->s_blocksize)) { in mb_cmp_bitmaps()
600 b1 = (unsigned char *) e4b->bd_info->bb_bitmap; in mb_cmp_bitmaps()
698 if (e4b->bd_info->bb_check_counter++ % 10) in __mb_check_buddy()
732 MB_CHECK_ASSERT(e4b->bd_info->bb_counters[order] == count); in __mb_check_buddy()
740 MB_CHECK_ASSERT(i >= e4b->bd_info->bb_first_free); in __mb_check_buddy()
756 MB_CHECK_ASSERT(!EXT4_MB_GRP_NEED_INIT(e4b->bd_info)); in __mb_check_buddy()
757 MB_CHECK_ASSERT(e4b->bd_info->bb_fragments == fragments); in __mb_check_buddy()
1248 e4b->bd_info->bb_fragments = 0; in mb_regenerate_buddy()
1249 memset(e4b->bd_info->bb_counters, 0, in mb_regenerate_buddy()
1250 sizeof(*e4b->bd_info->bb_counters) * in mb_regenerate_buddy()
1254 e4b->bd_bitmap, e4b->bd_group, e4b->bd_info); in mb_regenerate_buddy()
1602 e4b->bd_info = grp; in ext4_mb_load_buddy_gfp()
1880 e4b->bd_info->bb_counters[order] += mb_buddy_adjust_border(&first, buddy, -1); in mb_buddy_mark_free()
1882 e4b->bd_info->bb_counters[order] += mb_buddy_adjust_border(&last, buddy, 1); in mb_buddy_mark_free()
1890 e4b->bd_info->bb_counters[order - 1] += last - first + 1; in mb_buddy_mark_free()
1913 if (unlikely(EXT4_MB_GRP_BBITMAP_CORRUPT(e4b->bd_info))) in mb_free_blocks()
1953 e4b->bd_info->bb_free += count; in mb_free_blocks()
1954 if (first < e4b->bd_info->bb_first_free) in mb_free_blocks()
1955 e4b->bd_info->bb_first_free = first; in mb_free_blocks()
1959 e4b->bd_info->bb_fragments--; in mb_free_blocks()
1961 e4b->bd_info->bb_fragments++; in mb_free_blocks()
1971 e4b->bd_info->bb_counters[0] += left_is_free ? -1 : 1; in mb_free_blocks()
1975 e4b->bd_info->bb_counters[0] += right_is_free ? -1 : 1; in mb_free_blocks()
1981 mb_set_largest_free_order(sb, e4b->bd_info); in mb_free_blocks()
1982 mb_update_avg_fragment_size(sb, e4b->bd_info); in mb_free_blocks()
2065 e4b->bd_info->bb_free -= len; in mb_mark_used()
2066 if (e4b->bd_info->bb_first_free == start) in mb_mark_used()
2067 e4b->bd_info->bb_first_free += len; in mb_mark_used()
2075 e4b->bd_info->bb_fragments++; in mb_mark_used()
2077 e4b->bd_info->bb_fragments--; in mb_mark_used()
2089 e4b->bd_info->bb_counters[ord]--; in mb_mark_used()
2103 e4b->bd_info->bb_counters[ord]--; in mb_mark_used()
2111 e4b->bd_info); in mb_mark_used()
2118 e4b->bd_info); in mb_mark_used()
2124 mb_set_largest_free_order(e4b->bd_sb, e4b->bd_info); in mb_mark_used()
2126 mb_update_avg_fragment_size(e4b->bd_sb, e4b->bd_info); in mb_mark_used()
2313 if (unlikely(EXT4_MB_GRP_BBITMAP_CORRUPT(e4b->bd_info))) in ext4_mb_try_best_found()
2351 if (unlikely(EXT4_MB_GRP_BBITMAP_CORRUPT(e4b->bd_info))) in ext4_mb_find_by_goal()
2402 struct ext4_group_info *grp = e4b->bd_info; in ext4_mb_simple_scan_group()
2461 free = e4b->bd_info->bb_free; in ext4_mb_complex_scan_group()
2465 i = e4b->bd_info->bb_first_free; in ext4_mb_complex_scan_group()
3880 db = e4b.bd_info; in ext4_free_data_in_buddy()
6315 struct ext4_group_info *db = e4b->bd_info; in ext4_mb_free_metadata()
6518 EXT4_MB_GRP_CLEAR_TRIMMED(e4b.bd_info); in ext4_mb_clear_bb()
6798 if (unlikely(EXT4_MB_GRP_BBITMAP_CORRUPT(e4b->bd_info))) in ext4_try_to_trim_range()
6806 start = max(e4b->bd_info->bb_first_free, start); in ext4_try_to_trim_range()
6838 if ((e4b->bd_info->bb_free - free_count) < minblocks) in ext4_try_to_trim_range()
6843 EXT4_MB_GRP_SET_TRIMMED(e4b->bd_info); in ext4_try_to_trim_range()
6880 if (!EXT4_MB_GRP_WAS_TRIMMED(e4b.bd_info) || in ext4_trim_all_free()
7020 start = max(e4b.bd_info->bb_first_free, first); in ext4_mballoc_query_range()