Lines Matching refs:ac_b_ex

2014 	BUG_ON(ac->ac_b_ex.fe_group != e4b->bd_group);  in ext4_mb_use_best_found()
2017 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()
2018 ac->ac_b_ex.fe_logical = ac->ac_g_ex.fe_logical; in ext4_mb_use_best_found()
2019 ret = mb_mark_used(e4b, &ac->ac_b_ex); in ext4_mb_use_best_found()
2023 ac->ac_f_ex = ac->ac_b_ex; in ext4_mb_use_best_found()
2052 if (ac->ac_o_ex.fe_len < ac->ac_b_ex.fe_len) in ext4_mb_use_best_found()
2062 struct ext4_free_extent *bex = &ac->ac_b_ex; in ext4_mb_check_limits()
2111 struct ext4_free_extent *bex = &ac->ac_b_ex; in ext4_mb_measure_extent()
2170 struct ext4_free_extent ex = ac->ac_b_ex; in ext4_mb_try_best_found()
2184 ac->ac_b_ex = ex; in ext4_mb_try_best_found()
2232 ac->ac_b_ex = ex; in ext4_mb_find_by_goal()
2240 ac->ac_b_ex = ex; in ext4_mb_find_by_goal()
2249 ac->ac_b_ex = ex; in ext4_mb_find_by_goal()
2293 ac->ac_b_ex.fe_len = 1 << i; in ext4_mb_simple_scan_group()
2294 ac->ac_b_ex.fe_start = k << i; in ext4_mb_simple_scan_group()
2295 ac->ac_b_ex.fe_group = e4b->bd_group; in ext4_mb_simple_scan_group()
2406 ac->ac_b_ex = ex; in ext4_mb_scan_aligned()
2791 if (ac->ac_b_ex.fe_len > 0 && ac->ac_status != AC_STATUS_FOUND && in ext4_mb_regular_allocator()
2806 ac->ac_b_ex.fe_group, ac->ac_b_ex.fe_start, in ext4_mb_regular_allocator()
2807 ac->ac_b_ex.fe_len, lost); in ext4_mb_regular_allocator()
2809 ac->ac_b_ex.fe_group = 0; in ext4_mb_regular_allocator()
2810 ac->ac_b_ex.fe_start = 0; in ext4_mb_regular_allocator()
2811 ac->ac_b_ex.fe_len = 0; in ext4_mb_regular_allocator()
2826 ac->ac_b_ex.fe_len, ac->ac_o_ex.fe_len, ac->ac_status, in ext4_mb_regular_allocator()
3786 BUG_ON(ac->ac_b_ex.fe_len <= 0); in ext4_mb_mark_diskspace_used()
3791 bitmap_bh = ext4_read_block_bitmap(sb, ac->ac_b_ex.fe_group); in ext4_mb_mark_diskspace_used()
3805 gdp = ext4_get_group_desc(sb, ac->ac_b_ex.fe_group, &gdp_bh); in ext4_mb_mark_diskspace_used()
3809 ext4_debug("using block group %u(%d)\n", ac->ac_b_ex.fe_group, in ext4_mb_mark_diskspace_used()
3817 block = ext4_grp_offs_to_block(sb, &ac->ac_b_ex); in ext4_mb_mark_diskspace_used()
3819 len = EXT4_C2B(sbi, ac->ac_b_ex.fe_len); in ext4_mb_mark_diskspace_used()
3827 ext4_lock_group(sb, ac->ac_b_ex.fe_group); in ext4_mb_mark_diskspace_used()
3828 ext4_set_bits(bitmap_bh->b_data, ac->ac_b_ex.fe_start, in ext4_mb_mark_diskspace_used()
3829 ac->ac_b_ex.fe_len); in ext4_mb_mark_diskspace_used()
3830 ext4_unlock_group(sb, ac->ac_b_ex.fe_group); in ext4_mb_mark_diskspace_used()
3837 ext4_lock_group(sb, ac->ac_b_ex.fe_group); in ext4_mb_mark_diskspace_used()
3841 for (i = 0; i < ac->ac_b_ex.fe_len; i++) { in ext4_mb_mark_diskspace_used()
3842 BUG_ON(mb_test_bit(ac->ac_b_ex.fe_start + i, in ext4_mb_mark_diskspace_used()
3847 ext4_set_bits(bitmap_bh->b_data, ac->ac_b_ex.fe_start, in ext4_mb_mark_diskspace_used()
3848 ac->ac_b_ex.fe_len); in ext4_mb_mark_diskspace_used()
3854 ac->ac_b_ex.fe_group, gdp)); in ext4_mb_mark_diskspace_used()
3856 len = ext4_free_group_clusters(sb, gdp) - ac->ac_b_ex.fe_len; in ext4_mb_mark_diskspace_used()
3858 ext4_block_bitmap_csum_set(sb, ac->ac_b_ex.fe_group, gdp, bitmap_bh); in ext4_mb_mark_diskspace_used()
3859 ext4_group_desc_csum_set(sb, ac->ac_b_ex.fe_group, gdp); in ext4_mb_mark_diskspace_used()
3861 ext4_unlock_group(sb, ac->ac_b_ex.fe_group); in ext4_mb_mark_diskspace_used()
3862 percpu_counter_sub(&sbi->s_freeclusters_counter, ac->ac_b_ex.fe_len); in ext4_mb_mark_diskspace_used()
3873 ac->ac_b_ex.fe_group); in ext4_mb_mark_diskspace_used()
3874 atomic64_sub(ac->ac_b_ex.fe_len, in ext4_mb_mark_diskspace_used()
4191 atomic_add(ac->ac_b_ex.fe_len, &sbi->s_bal_allocated); in ext4_mb_collect_stats()
4192 if (ac->ac_b_ex.fe_len >= ac->ac_o_ex.fe_len) in ext4_mb_collect_stats()
4196 if (ac->ac_g_ex.fe_start == ac->ac_b_ex.fe_start && in ext4_mb_collect_stats()
4197 ac->ac_g_ex.fe_group == ac->ac_b_ex.fe_group) in ext4_mb_collect_stats()
4242 pa->pa_free += ac->ac_b_ex.fe_len; in ext4_discard_allocated_blocks()
4261 ext4_get_group_no_and_offset(ac->ac_sb, start, &ac->ac_b_ex.fe_group, in ext4_mb_use_inode_pa()
4262 &ac->ac_b_ex.fe_start); in ext4_mb_use_inode_pa()
4263 ac->ac_b_ex.fe_len = len; in ext4_mb_use_inode_pa()
4284 &ac->ac_b_ex.fe_group, in ext4_mb_use_group_pa()
4285 &ac->ac_b_ex.fe_start); in ext4_mb_use_group_pa()
4286 ac->ac_b_ex.fe_len = len; in ext4_mb_use_group_pa()
4586 BUG_ON(ac->ac_o_ex.fe_len >= ac->ac_b_ex.fe_len); in ext4_mb_new_inode_pa()
4593 if (ac->ac_b_ex.fe_len < ac->ac_g_ex.fe_len) { in ext4_mb_new_inode_pa()
4611 wins = EXT4_C2B(sbi, ac->ac_b_ex.fe_len - ac->ac_o_ex.fe_len); in ext4_mb_new_inode_pa()
4617 EXT4_C2B(sbi, ac->ac_b_ex.fe_len); in ext4_mb_new_inode_pa()
4621 ac->ac_b_ex.fe_logical = ac->ac_o_ex.fe_logical - in ext4_mb_new_inode_pa()
4623 BUG_ON(ac->ac_o_ex.fe_logical < ac->ac_b_ex.fe_logical); in ext4_mb_new_inode_pa()
4624 BUG_ON(ac->ac_o_ex.fe_len > ac->ac_b_ex.fe_len); in ext4_mb_new_inode_pa()
4629 ac->ac_f_ex = ac->ac_b_ex; in ext4_mb_new_inode_pa()
4631 pa->pa_lstart = ac->ac_b_ex.fe_logical; in ext4_mb_new_inode_pa()
4632 pa->pa_pstart = ext4_grp_offs_to_block(sb, &ac->ac_b_ex); in ext4_mb_new_inode_pa()
4633 pa->pa_len = ac->ac_b_ex.fe_len; in ext4_mb_new_inode_pa()
4649 grp = ext4_get_group_info(sb, ac->ac_b_ex.fe_group); in ext4_mb_new_inode_pa()
4674 BUG_ON(ac->ac_o_ex.fe_len >= ac->ac_b_ex.fe_len); in ext4_mb_new_group_pa()
4683 ac->ac_f_ex = ac->ac_b_ex; in ext4_mb_new_group_pa()
4685 pa->pa_pstart = ext4_grp_offs_to_block(sb, &ac->ac_b_ex); in ext4_mb_new_group_pa()
4687 pa->pa_len = ac->ac_b_ex.fe_len; in ext4_mb_new_group_pa()
4702 grp = ext4_get_group_info(sb, ac->ac_b_ex.fe_group); in ext4_mb_new_group_pa()
5118 (unsigned long)ac->ac_b_ex.fe_group, in ext4_mb_show_ac()
5119 (unsigned long)ac->ac_b_ex.fe_start, in ext4_mb_show_ac()
5120 (unsigned long)ac->ac_b_ex.fe_len, in ext4_mb_show_ac()
5121 (unsigned long)ac->ac_b_ex.fe_logical, in ext4_mb_show_ac()
5221 ac->ac_b_ex.fe_logical = EXT4_LBLK_CMASK(sbi, ar->logical); in ext4_mb_initialize_context()
5225 ac->ac_o_ex.fe_logical = ac->ac_b_ex.fe_logical; in ext4_mb_initialize_context()
5411 pa->pa_pstart += EXT4_C2B(sbi, ac->ac_b_ex.fe_len); in ext4_mb_release_context()
5412 pa->pa_lstart += EXT4_C2B(sbi, ac->ac_b_ex.fe_len); in ext4_mb_release_context()
5413 pa->pa_free -= ac->ac_b_ex.fe_len; in ext4_mb_release_context()
5414 pa->pa_len -= ac->ac_b_ex.fe_len; in ext4_mb_release_context()
5609 block = ext4_grp_offs_to_block(sb, &ac->ac_b_ex); in ext4_mb_new_blocks()
5610 ar->len = ac->ac_b_ex.fe_len; in ext4_mb_new_blocks()
5625 ac->ac_b_ex.fe_len = 0; in ext4_mb_new_blocks()