Lines Matching refs:EXT4_SB
544 bb = e4b->bd_buddy + EXT4_SB(e4b->bd_sb)->s_mb_offsets[order]; in mb_find_buddy()
545 *max = EXT4_SB(e4b->bd_sb)->s_mb_maxs[order]; in mb_find_buddy()
565 blocknr += EXT4_C2B(EXT4_SB(sb), first + i); in mb_free_blocks_double()
789 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_mb_mark_free_simple()
841 struct ext4_sb_info *sbi = EXT4_SB(sb); in mb_update_avg_fragment_size()
875 struct ext4_sb_info *sbi = EXT4_SB(ac->ac_sb); in ext4_mb_choose_next_group_p2_aligned()
917 struct ext4_sb_info *sbi = EXT4_SB(ac->ac_sb); in ext4_mb_find_good_group_avg_frag_lists()
949 struct ext4_sb_info *sbi = EXT4_SB(ac->ac_sb); in ext4_mb_choose_next_group_goal_fast()
994 struct ext4_sb_info *sbi = EXT4_SB(ac->ac_sb); in ext4_mb_choose_next_group_best_avail()
1148 struct ext4_sb_info *sbi = EXT4_SB(sb); in mb_set_largest_free_order()
1184 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_mb_generate_buddy()
1447 struct inode *inode = EXT4_SB(sb)->s_buddy_cache; in ext4_mb_get_buddy_page_lock()
1584 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_mb_load_buddy_gfp()
1918 if (last + 1 < EXT4_SB(sb)->s_mb_maxs[0]) in mb_free_blocks()
1922 struct ext4_sb_info *sbi = EXT4_SB(sb); in mb_free_blocks()
2071 if (start + len < EXT4_SB(e4b->bd_sb)->s_mb_maxs[0]) in mb_mark_used()
2133 struct ext4_sb_info *sbi = EXT4_SB(ac->ac_sb); in ext4_mb_use_best_found()
2183 struct ext4_sb_info *sbi = EXT4_SB(ac->ac_sb); in ext4_mb_check_limits()
2329 struct ext4_sb_info *sbi = EXT4_SB(ac->ac_sb); in ext4_mb_find_by_goal()
2433 if (EXT4_SB(sb)->s_mb_stats) in ext4_mb_simple_scan_group()
2434 atomic_inc(&EXT4_SB(sb)->s_bal_2orders); in ext4_mb_simple_scan_group()
2533 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_mb_scan_aligned()
2577 int flex_size = ext4_flex_bg_size(EXT4_SB(ac->ac_sb)); in ext4_mb_good_group()
2647 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_mb_good_group_nolock()
2803 sbi = EXT4_SB(sb); in ext4_mb_regular_allocator()
3082 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_seq_mb_stats_show()
3187 __acquires(&EXT4_SB(sb)->s_mb_rb_lock) in ext4_mb_seq_structs_summary_start()
3213 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_mb_seq_structs_summary_show()
3278 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_mb_alloc_groupinfo()
3315 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_mb_add_groupinfo()
3392 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_mb_init_backend()
3577 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_mb_init()
3759 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_mb_release()
3839 discard_block = (EXT4_C2B(EXT4_SB(sb), cluster) + in ext4_issue_discard()
3841 count = EXT4_C2B(EXT4_SB(sb), count); in ext4_issue_discard()
3867 spin_lock(&EXT4_SB(sb)->s_md_lock); in ext4_free_data_in_buddy()
3868 EXT4_SB(sb)->s_mb_free_pending -= entry->efd_count; in ext4_free_data_in_buddy()
3869 spin_unlock(&EXT4_SB(sb)->s_md_lock); in ext4_free_data_in_buddy()
3907 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_process_freed_data()
4001 sbi = EXT4_SB(sb); in ext4_mb_mark_diskspace_used()
4109 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_mb_mark_bb()
4226 ac->ac_g_ex.fe_len = EXT4_SB(sb)->s_mb_group_prealloc; in ext4_mb_normalize_group_request()
4252 struct ext4_sb_info *sbi = EXT4_SB(ac->ac_sb); in ext4_mb_pa_assert_overlap()
4290 struct ext4_sb_info *sbi = EXT4_SB(ac->ac_sb); in ext4_mb_pa_adjust_overlap()
4429 struct ext4_sb_info *sbi = EXT4_SB(ac->ac_sb); in ext4_mb_normalize_request()
4601 struct ext4_sb_info *sbi = EXT4_SB(ac->ac_sb); in ext4_mb_collect_stats()
4676 struct ext4_sb_info *sbi = EXT4_SB(ac->ac_sb); in ext4_mb_use_inode_pa()
4762 struct ext4_sb_info *sbi = EXT4_SB(ac->ac_sb); in ext4_mb_pa_goal_check()
4792 struct ext4_sb_info *sbi = EXT4_SB(ac->ac_sb); in ext4_mb_use_preallocated()
5168 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_mb_new_inode_pa()
5290 atomic_add(pa->pa_free, &EXT4_SB(sb)->s_mb_preallocated); in ext4_mb_new_group_pa()
5330 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_mb_release_inode_pa()
5396 atomic_add(pa->pa_len, &EXT4_SB(sb)->s_mb_discarded); in ext4_mb_release_group_pa()
5536 if (EXT4_SB(sb)->s_mount_state & EXT4_FC_REPLAY) in ext4_discard_preallocations()
5750 struct ext4_sb_info *sbi = EXT4_SB(ac->ac_sb); in ext4_mb_group_or_file()
5805 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_mb_initialize_context()
5986 struct ext4_sb_info *sbi = EXT4_SB(ac->ac_sb); in ext4_mb_release_context()
6085 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_mb_new_blocks_simple()
6161 sbi = EXT4_SB(sb); in ext4_mb_new_blocks()
6328 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_mb_free_metadata()
6458 sbi = EXT4_SB(sb); in ext4_mb_clear_bb()
6651 sbi = EXT4_SB(sb); in ext4_free_blocks()
6754 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_group_add_blocks()
6921 nr_clusters_in_group = (ext4_blocks_count(EXT4_SB(sb)->s_es) - in ext4_last_grp_cluster()
7023 minblocks < EXT4_SB(sb)->s_last_trim_minblks) in ext4_trim_all_free()
7057 le32_to_cpu(EXT4_SB(sb)->s_es->s_first_data_block); in ext4_trim_fs()
7058 ext4_fsblk_t max_blks = ext4_blocks_count(EXT4_SB(sb)->s_es); in ext4_trim_fs()
7063 minlen = EXT4_NUM_B2C(EXT4_SB(sb), in ext4_trim_fs()
7072 minlen = EXT4_NUM_B2C(EXT4_SB(sb), in ext4_trim_fs()
7132 EXT4_SB(sb)->s_last_trim_minblks = minlen; in ext4_trim_fs()
7135 range->len = EXT4_C2B(EXT4_SB(sb), trimmed) << sb->s_blocksize_bits; in ext4_trim_fs()