Lines Matching refs:bd_info
543 if (unlikely(e4b->bd_info->bb_bitmap == NULL)) in mb_free_blocks_double()
547 if (!mb_test_bit(first + i, e4b->bd_info->bb_bitmap)) { in mb_free_blocks_double()
561 mb_clear_bit(first + i, e4b->bd_info->bb_bitmap); in mb_free_blocks_double()
569 if (unlikely(e4b->bd_info->bb_bitmap == NULL)) in mb_mark_used_double()
573 BUG_ON(mb_test_bit(first + i, e4b->bd_info->bb_bitmap)); in mb_mark_used_double()
574 mb_set_bit(first + i, e4b->bd_info->bb_bitmap); in mb_mark_used_double()
580 if (unlikely(e4b->bd_info->bb_bitmap == NULL)) in mb_cmp_bitmaps()
582 if (memcmp(e4b->bd_info->bb_bitmap, bitmap, e4b->bd_sb->s_blocksize)) { in mb_cmp_bitmaps()
585 b1 = (unsigned char *) e4b->bd_info->bb_bitmap; in mb_cmp_bitmaps()
683 if (e4b->bd_info->bb_check_counter++ % 10) in __mb_check_buddy()
720 MB_CHECK_ASSERT(e4b->bd_info->bb_counters[order] == count); in __mb_check_buddy()
728 MB_CHECK_ASSERT(i >= e4b->bd_info->bb_first_free); in __mb_check_buddy()
744 MB_CHECK_ASSERT(!EXT4_MB_GRP_NEED_INIT(e4b->bd_info)); in __mb_check_buddy()
745 MB_CHECK_ASSERT(e4b->bd_info->bb_fragments == fragments); in __mb_check_buddy()
1497 e4b->bd_info = grp; in ext4_mb_load_buddy_gfp()
1763 e4b->bd_info->bb_counters[order] += mb_buddy_adjust_border(&first, buddy, -1); in mb_buddy_mark_free()
1765 e4b->bd_info->bb_counters[order] += mb_buddy_adjust_border(&last, buddy, 1); in mb_buddy_mark_free()
1772 e4b->bd_info->bb_counters[order - 1] += last - first + 1; in mb_buddy_mark_free()
1795 if (unlikely(EXT4_MB_GRP_BBITMAP_CORRUPT(e4b->bd_info))) in mb_free_blocks()
1802 e4b->bd_info->bb_free += count; in mb_free_blocks()
1803 if (first < e4b->bd_info->bb_first_free) in mb_free_blocks()
1804 e4b->bd_info->bb_first_free = first; in mb_free_blocks()
1836 e4b->bd_info->bb_fragments--; in mb_free_blocks()
1838 e4b->bd_info->bb_fragments++; in mb_free_blocks()
1848 e4b->bd_info->bb_counters[0] += left_is_free ? -1 : 1; in mb_free_blocks()
1852 e4b->bd_info->bb_counters[0] += right_is_free ? -1 : 1; in mb_free_blocks()
1859 mb_set_largest_free_order(sb, e4b->bd_info); in mb_free_blocks()
1860 mb_update_avg_fragment_size(sb, e4b->bd_info); in mb_free_blocks()
1947 e4b->bd_info->bb_free -= len; in mb_mark_used()
1948 if (e4b->bd_info->bb_first_free == start) in mb_mark_used()
1949 e4b->bd_info->bb_first_free += len; in mb_mark_used()
1957 e4b->bd_info->bb_fragments++; in mb_mark_used()
1959 e4b->bd_info->bb_fragments--; in mb_mark_used()
1971 e4b->bd_info->bb_counters[ord]--; in mb_mark_used()
1986 e4b->bd_info->bb_counters[ord]--; in mb_mark_used()
1993 e4b->bd_info->bb_counters[ord]++; in mb_mark_used()
1994 e4b->bd_info->bb_counters[ord]++; in mb_mark_used()
1996 mb_set_largest_free_order(e4b->bd_sb, e4b->bd_info); in mb_mark_used()
1998 mb_update_avg_fragment_size(e4b->bd_sb, e4b->bd_info); in mb_mark_used()
2214 if (unlikely(EXT4_MB_GRP_BBITMAP_CORRUPT(e4b->bd_info))) { in ext4_mb_find_by_goal()
2267 struct ext4_group_info *grp = e4b->bd_info; in ext4_mb_simple_scan_group()
2323 free = e4b->bd_info->bb_free; in ext4_mb_complex_scan_group()
2327 i = e4b->bd_info->bb_first_free; in ext4_mb_complex_scan_group()
3655 db = e4b.bd_info; in ext4_free_data_in_buddy()
5684 struct ext4_group_info *db = e4b->bd_info; in ext4_mb_free_metadata()
6057 EXT4_MB_GRP_CLEAR_TRIMMED(e4b.bd_info); in ext4_free_blocks()
6304 start = (e4b->bd_info->bb_first_free > start) ? in ext4_try_to_trim_range()
6305 e4b->bd_info->bb_first_free : start; in ext4_try_to_trim_range()
6336 if ((e4b->bd_info->bb_free - free_count) < minblocks) in ext4_try_to_trim_range()
6375 if (!EXT4_MB_GRP_WAS_TRIMMED(e4b.bd_info) || in ext4_trim_all_free()
6379 EXT4_MB_GRP_SET_TRIMMED(e4b.bd_info); in ext4_trim_all_free()
6506 start = (e4b.bd_info->bb_first_free > start) ? in ext4_mballoc_query_range()
6507 e4b.bd_info->bb_first_free : start; in ext4_mballoc_query_range()