• Home
  • Raw
  • Download

Lines Matching refs:fe_len

1576 		ex->fe_len = 0;  in mb_find_extent()
1586 ex->fe_len = 1 << order; in mb_find_extent()
1592 ex->fe_len -= next; in mb_find_extent()
1595 while (needed > ex->fe_len && in mb_find_extent()
1608 ex->fe_len += 1 << order; in mb_find_extent()
1611 if (ex->fe_start + ex->fe_len > EXT4_CLUSTERS_PER_GROUP(e4b->bd_sb)) { in mb_find_extent()
1618 ex->fe_len, ex->fe_logical); in mb_find_extent()
1619 ex->fe_len = 0; in mb_find_extent()
1623 return ex->fe_len; in mb_find_extent()
1633 int len = ex->fe_len; in mb_mark_used()
1714 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()
1749 if (ac->ac_o_ex.fe_len < ac->ac_b_ex.fe_len) in ext4_mb_use_best_found()
1778 if (bex->fe_len < gex->fe_len) in ext4_mb_check_limits()
1786 max = mb_find_extent(e4b, bex->fe_start, gex->fe_len, &ex); in ext4_mb_check_limits()
1787 if (max >= gex->fe_len) { in ext4_mb_check_limits()
1811 BUG_ON(ex->fe_len <= 0); in ext4_mb_measure_extent()
1812 BUG_ON(ex->fe_len > EXT4_CLUSTERS_PER_GROUP(ac->ac_sb)); in ext4_mb_measure_extent()
1830 if (ex->fe_len == gex->fe_len) { in ext4_mb_measure_extent()
1839 if (bex->fe_len == 0) { in ext4_mb_measure_extent()
1847 if (bex->fe_len < gex->fe_len) { in ext4_mb_measure_extent()
1850 if (ex->fe_len > bex->fe_len) in ext4_mb_measure_extent()
1852 } else if (ex->fe_len > gex->fe_len) { in ext4_mb_measure_extent()
1856 if (ex->fe_len < bex->fe_len) in ext4_mb_measure_extent()
1872 BUG_ON(ex.fe_len <= 0); in ext4_mb_try_best_found()
1878 max = mb_find_extent(e4b, ex.fe_start, ex.fe_len, &ex); in ext4_mb_try_best_found()
1920 ac->ac_g_ex.fe_len, &ex); in ext4_mb_find_by_goal()
1923 if (max >= ac->ac_g_ex.fe_len && ac->ac_g_ex.fe_len == sbi->s_stripe) { in ext4_mb_find_by_goal()
1934 } else if (max >= ac->ac_g_ex.fe_len) { in ext4_mb_find_by_goal()
1935 BUG_ON(ex.fe_len <= 0); in ext4_mb_find_by_goal()
1944 BUG_ON(ex.fe_len <= 0); in ext4_mb_find_by_goal()
1992 ac->ac_b_ex.fe_len = 1 << i; in ext4_mb_simple_scan_group()
1998 BUG_ON(ac->ac_f_ex.fe_len != ac->ac_g_ex.fe_len); in ext4_mb_simple_scan_group()
2046 mb_find_extent(e4b, i, ac->ac_g_ex.fe_len, &ex); in ext4_mb_complex_scan_group()
2047 if (WARN_ON(ex.fe_len <= 0)) in ext4_mb_complex_scan_group()
2049 if (free < ex.fe_len) { in ext4_mb_complex_scan_group()
2053 free, ex.fe_len); in ext4_mb_complex_scan_group()
2066 i += ex.fe_len; in ext4_mb_complex_scan_group()
2067 free -= ex.fe_len; in ext4_mb_complex_scan_group()
2149 if (free < ac->ac_g_ex.fe_len) in ext4_mb_good_group()
2160 if ((free / fragments) >= ac->ac_g_ex.fe_len) in ext4_mb_good_group()
2164 if (free >= ac->ac_g_ex.fe_len) in ext4_mb_good_group()
2198 if (cr <= 2 && free < ac->ac_g_ex.fe_len) in ext4_mb_good_group_nolock()
2351 i = fls(ac->ac_g_ex.fe_len); in ext4_mb_regular_allocator()
2364 if ((ac->ac_g_ex.fe_len & (~(1 << (i - 1)))) == 0) in ext4_mb_regular_allocator()
2456 !(ac->ac_g_ex.fe_len % sbi->s_stripe)) in ext4_mb_regular_allocator()
2469 if (ac->ac_b_ex.fe_len > 0 && ac->ac_status != AC_STATUS_FOUND && in ext4_mb_regular_allocator()
2485 ac->ac_b_ex.fe_len, lost); in ext4_mb_regular_allocator()
2489 ac->ac_b_ex.fe_len = 0; in ext4_mb_regular_allocator()
2501 ac->ac_b_ex.fe_len, ac->ac_o_ex.fe_len, ac->ac_status, in ext4_mb_regular_allocator()
3234 BUG_ON(ac->ac_b_ex.fe_len <= 0); in ext4_mb_mark_diskspace_used()
3266 len = EXT4_C2B(sbi, ac->ac_b_ex.fe_len); in ext4_mb_mark_diskspace_used()
3276 ac->ac_b_ex.fe_len); in ext4_mb_mark_diskspace_used()
3288 for (i = 0; i < ac->ac_b_ex.fe_len; i++) { in ext4_mb_mark_diskspace_used()
3295 ac->ac_b_ex.fe_len); in ext4_mb_mark_diskspace_used()
3303 len = ext4_free_group_clusters(sb, gdp) - ac->ac_b_ex.fe_len; in ext4_mb_mark_diskspace_used()
3309 percpu_counter_sub(&sbi->s_freeclusters_counter, ac->ac_b_ex.fe_len); in ext4_mb_mark_diskspace_used()
3321 atomic64_sub(ac->ac_b_ex.fe_len, in ext4_mb_mark_diskspace_used()
3455 ac->ac_g_ex.fe_len = EXT4_SB(sb)->s_mb_group_prealloc; in ext4_mb_normalize_group_request()
3456 mb_debug(sb, "goal %u blocks for locality group\n", ac->ac_g_ex.fe_len); in ext4_mb_normalize_group_request()
3499 size = ac->ac_o_ex.fe_logical + EXT4_C2B(sbi, ac->ac_o_ex.fe_len); in ext4_mb_normalize_request()
3536 } else if (NRL_CHECK_SIZE(ac->ac_o_ex.fe_len, in ext4_mb_normalize_request()
3544 ac->ac_o_ex.fe_len) << bsbits; in ext4_mb_normalize_request()
3645 ac->ac_g_ex.fe_len = EXT4_NUM_B2C(sbi, size); in ext4_mb_normalize_request()
3671 if (sbi->s_mb_stats && ac->ac_g_ex.fe_len > 1) { in ext4_mb_collect_stats()
3673 atomic_add(ac->ac_b_ex.fe_len, &sbi->s_bal_allocated); in ext4_mb_collect_stats()
3674 if (ac->ac_b_ex.fe_len >= ac->ac_o_ex.fe_len) in ext4_mb_collect_stats()
3703 if (ac->ac_f_ex.fe_len == 0) in ext4_discard_allocated_blocks()
3717 ac->ac_f_ex.fe_len); in ext4_discard_allocated_blocks()
3723 pa->pa_free += ac->ac_b_ex.fe_len; in ext4_discard_allocated_blocks()
3740 start + EXT4_C2B(sbi, ac->ac_o_ex.fe_len)); in ext4_mb_use_inode_pa()
3744 ac->ac_b_ex.fe_len = len; in ext4_mb_use_inode_pa()
3762 unsigned int len = ac->ac_o_ex.fe_len; in ext4_mb_use_group_pa()
3767 ac->ac_b_ex.fe_len = len; in ext4_mb_use_group_pa()
3866 order = fls(ac->ac_o_ex.fe_len) - 1; in ext4_mb_use_preallocated()
3882 pa->pa_free >= ac->ac_o_ex.fe_len) { in ext4_mb_use_preallocated()
4072 BUG_ON(ac->ac_o_ex.fe_len >= ac->ac_b_ex.fe_len); in ext4_mb_new_inode_pa()
4079 if (ac->ac_b_ex.fe_len < ac->ac_g_ex.fe_len) { in ext4_mb_new_inode_pa()
4089 BUG_ON(ac->ac_g_ex.fe_len < ac->ac_o_ex.fe_len); in ext4_mb_new_inode_pa()
4097 wins = EXT4_C2B(sbi, ac->ac_b_ex.fe_len - ac->ac_o_ex.fe_len); in ext4_mb_new_inode_pa()
4103 EXT4_C2B(sbi, ac->ac_b_ex.fe_len); in ext4_mb_new_inode_pa()
4110 BUG_ON(ac->ac_o_ex.fe_len > ac->ac_b_ex.fe_len); in ext4_mb_new_inode_pa()
4119 pa->pa_len = ac->ac_b_ex.fe_len; in ext4_mb_new_inode_pa()
4162 BUG_ON(ac->ac_o_ex.fe_len >= ac->ac_b_ex.fe_len); in ext4_mb_new_group_pa()
4175 pa->pa_len = ac->ac_b_ex.fe_len; in ext4_mb_new_group_pa()
4592 (unsigned long)ac->ac_o_ex.fe_len, in ext4_mb_show_ac()
4596 (unsigned long)ac->ac_g_ex.fe_len, in ext4_mb_show_ac()
4600 (unsigned long)ac->ac_b_ex.fe_len, in ext4_mb_show_ac()
4637 size = ac->ac_o_ex.fe_logical + EXT4_C2B(sbi, ac->ac_o_ex.fe_len); in ext4_mb_group_or_file()
4708 ac->ac_o_ex.fe_len = len; in ext4_mb_initialize_context()
4891 pa->pa_pstart += EXT4_C2B(sbi, ac->ac_b_ex.fe_len); in ext4_mb_release_context()
4892 pa->pa_lstart += EXT4_C2B(sbi, ac->ac_b_ex.fe_len); in ext4_mb_release_context()
4893 pa->pa_free -= ac->ac_b_ex.fe_len; in ext4_mb_release_context()
4894 pa->pa_len -= ac->ac_b_ex.fe_len; in ext4_mb_release_context()
4968 freed = ext4_mb_discard_preallocations(sb, ac->ac_o_ex.fe_len); in ext4_mb_discard_preallocations_should_retry()
5092 ac->ac_o_ex.fe_len >= ac->ac_f_ex.fe_len) in ext4_mb_new_blocks()
5102 ar->len = ac->ac_b_ex.fe_len; in ext4_mb_new_blocks()
5118 ac->ac_b_ex.fe_len = 0; in ext4_mb_new_blocks()
5780 ex.fe_len = count; in ext4_trim_extent()
5790 mb_free_blocks(NULL, e4b, start, ex.fe_len); in ext4_trim_extent()