Lines Matching refs:ac_g_ex
1699 ac->ac_b_ex.fe_len = min(ac->ac_b_ex.fe_len, ac->ac_g_ex.fe_len); in ext4_mb_use_best_found()
1700 ac->ac_b_ex.fe_logical = ac->ac_g_ex.fe_logical; in ext4_mb_use_best_found()
1745 struct ext4_free_extent *gex = &ac->ac_g_ex; in ext4_mb_check_limits()
1794 struct ext4_free_extent *gex = &ac->ac_g_ex; in ext4_mb_measure_extent()
1880 ext4_group_t group = ac->ac_g_ex.fe_group; in ext4_mb_find_by_goal()
1902 max = mb_find_extent(e4b, ac->ac_g_ex.fe_start, in ext4_mb_find_by_goal()
1903 ac->ac_g_ex.fe_len, &ex); in ext4_mb_find_by_goal()
1906 if (max >= ac->ac_g_ex.fe_len && ac->ac_g_ex.fe_len == sbi->s_stripe) { in ext4_mb_find_by_goal()
1917 } else if (max >= ac->ac_g_ex.fe_len) { in ext4_mb_find_by_goal()
1919 BUG_ON(ex.fe_group != ac->ac_g_ex.fe_group); in ext4_mb_find_by_goal()
1920 BUG_ON(ex.fe_start != ac->ac_g_ex.fe_start); in ext4_mb_find_by_goal()
1928 BUG_ON(ex.fe_group != ac->ac_g_ex.fe_group); in ext4_mb_find_by_goal()
1929 BUG_ON(ex.fe_start != ac->ac_g_ex.fe_start); in ext4_mb_find_by_goal()
1981 BUG_ON(ac->ac_f_ex.fe_len != ac->ac_g_ex.fe_len); in ext4_mb_simple_scan_group()
2029 mb_find_extent(e4b, i, ac->ac_g_ex.fe_len, &ex); in ext4_mb_complex_scan_group()
2132 if (free < ac->ac_g_ex.fe_len) in ext4_mb_good_group()
2143 if ((free / fragments) >= ac->ac_g_ex.fe_len) in ext4_mb_good_group()
2147 if (free >= ac->ac_g_ex.fe_len) in ext4_mb_good_group()
2179 if (cr <= 2 && free < ac->ac_g_ex.fe_len) in ext4_mb_good_group_nolock()
2332 i = fls(ac->ac_g_ex.fe_len); in ext4_mb_regular_allocator()
2345 if ((ac->ac_g_ex.fe_len & (~(1 << (i - 1)))) == 0) in ext4_mb_regular_allocator()
2354 ac->ac_g_ex.fe_group = sbi->s_mb_last_group; in ext4_mb_regular_allocator()
2355 ac->ac_g_ex.fe_start = sbi->s_mb_last_start; in ext4_mb_regular_allocator()
2372 group = ac->ac_g_ex.fe_group; in ext4_mb_regular_allocator()
2437 !(ac->ac_g_ex.fe_len % sbi->s_stripe)) in ext4_mb_regular_allocator()
3394 ac->ac_g_ex.fe_len = EXT4_SB(sb)->s_mb_group_prealloc; in ext4_mb_normalize_group_request()
3395 mb_debug(sb, "goal %u blocks for locality group\n", ac->ac_g_ex.fe_len); in ext4_mb_normalize_group_request()
3574 ac->ac_g_ex.fe_logical = start; in ext4_mb_normalize_request()
3575 ac->ac_g_ex.fe_len = EXT4_NUM_B2C(sbi, size); in ext4_mb_normalize_request()
3601 if (sbi->s_mb_stats && ac->ac_g_ex.fe_len > 1) { in ext4_mb_collect_stats()
3607 if (ac->ac_g_ex.fe_start == ac->ac_b_ex.fe_start && in ext4_mb_collect_stats()
3608 ac->ac_g_ex.fe_group == ac->ac_b_ex.fe_group) in ext4_mb_collect_stats()
3801 goal_block = ext4_grp_offs_to_block(ac->ac_sb, &ac->ac_g_ex); in ext4_mb_use_preallocated()
4004 if (ac->ac_b_ex.fe_len < ac->ac_g_ex.fe_len) { in ext4_mb_new_inode_pa()
4013 BUG_ON(ac->ac_g_ex.fe_logical > ac->ac_o_ex.fe_logical); in ext4_mb_new_inode_pa()
4014 BUG_ON(ac->ac_g_ex.fe_len < ac->ac_o_ex.fe_len); in ext4_mb_new_inode_pa()
4019 winl = ac->ac_o_ex.fe_logical - ac->ac_g_ex.fe_logical; in ext4_mb_new_inode_pa()
4525 (unsigned long)ac->ac_g_ex.fe_group, in ext4_mb_show_ac()
4526 (unsigned long)ac->ac_g_ex.fe_start, in ext4_mb_show_ac()
4527 (unsigned long)ac->ac_g_ex.fe_len, in ext4_mb_show_ac()
4528 (unsigned long)ac->ac_g_ex.fe_logical, in ext4_mb_show_ac()
4640 ac->ac_g_ex = ac->ac_o_ex; in ext4_mb_initialize_context()