Lines Matching refs:eh_entries
396 if (eh->eh_entries == 0) in ext4_valid_extent_entries()
399 entries = le16_to_cpu(eh->eh_entries); in ext4_valid_extent_entries()
461 if (unlikely(le16_to_cpu(eh->eh_entries) > le16_to_cpu(eh->eh_max))) { in __ext4_ext_check()
488 le16_to_cpu(eh->eh_entries), le16_to_cpu(eh->eh_max), in __ext4_ext_check()
539 for (i = le16_to_cpu(eh->eh_entries); i > 0; i--, ex++) { in __read_extent_tree_block()
669 for (i = 0; i < le16_to_cpu(eh->eh_entries); i++, ex++) { in ext4_ext_show_leaf()
767 for (k = 0; k < le16_to_cpu(eh->eh_entries); k++, ix++) { in ext4_ext_binsearch_idx()
801 if (eh->eh_entries == 0) { in ext4_ext_binsearch()
838 for (k = 0; k < le16_to_cpu(eh->eh_entries); k++, ex++) { in ext4_ext_binsearch()
857 eh->eh_entries = 0; in ext4_ext_tree_init()
905 ppos, le16_to_cpu(eh->eh_entries), le16_to_cpu(eh->eh_max)); in ext4_find_extent()
970 if (unlikely(le16_to_cpu(curp->p_hdr->eh_entries) in ext4_ext_insert_index()
974 le16_to_cpu(curp->p_hdr->eh_entries), in ext4_ext_insert_index()
1005 le16_add_cpu(&curp->p_hdr->eh_entries, 1); in ext4_ext_insert_index()
1110 neh->eh_entries = 0; in ext4_ext_split()
1116 if (unlikely(path[depth].p_hdr->eh_entries != in ext4_ext_split()
1119 path[depth].p_hdr->eh_entries, in ext4_ext_split()
1131 le16_add_cpu(&neh->eh_entries, m); in ext4_ext_split()
1136 sizeof(struct ext4_extent) * le16_to_cpu(neh->eh_entries); in ext4_ext_split()
1153 le16_add_cpu(&path[depth].p_hdr->eh_entries, -m); in ext4_ext_split()
1187 neh->eh_entries = cpu_to_le16(1); in ext4_ext_split()
1215 le16_add_cpu(&neh->eh_entries, m); in ext4_ext_split()
1219 (sizeof(struct ext4_extent) * le16_to_cpu(neh->eh_entries)); in ext4_ext_split()
1237 le16_add_cpu(&path[i].p_hdr->eh_entries, -m); in ext4_ext_split()
1338 neh->eh_entries = cpu_to_le16(1); in ext4_ext_grow_indepth()
1347 le16_to_cpu(neh->eh_entries), le16_to_cpu(neh->eh_max), in ext4_ext_grow_indepth()
1419 if (path[depth].p_hdr->eh_entries == path[depth].p_hdr->eh_max) { in ext4_ext_create_new_leaf()
1811 le16_add_cpu(&eh->eh_entries, -1); in ext4_ext_try_to_merge_right()
1813 WARN_ON(eh->eh_entries == 0); in ext4_ext_try_to_merge_right()
1814 if (!eh->eh_entries) in ext4_ext_try_to_merge_right()
1834 (le16_to_cpu(path[0].p_hdr->eh_entries) != 1) || in ext4_ext_try_to_merge_up()
1835 (le16_to_cpu(path[1].p_hdr->eh_entries) > max_root)) in ext4_ext_try_to_merge_up()
1850 s = le16_to_cpu(path[1].p_hdr->eh_entries) * in ext4_ext_try_to_merge_up()
2053 if (le16_to_cpu(eh->eh_entries) < le16_to_cpu(eh->eh_max)) in ext4_ext_insert_extent()
2069 if (le16_to_cpu(eh->eh_entries) < le16_to_cpu(eh->eh_max)) { in ext4_ext_insert_extent()
2071 le16_to_cpu(eh->eh_entries)); in ext4_ext_insert_extent()
2076 le16_to_cpu(eh->eh_entries), le16_to_cpu(eh->eh_max)); in ext4_ext_insert_extent()
2144 le16_add_cpu(&eh->eh_entries, 1); in ext4_ext_insert_extent()
2444 if (unlikely(path->p_hdr->eh_entries == 0)) { in ext4_ext_rm_idx()
2458 le16_add_cpu(&path->p_hdr->eh_entries, -1); in ext4_ext_rm_idx()
2498 if (le16_to_cpu(path[depth].p_hdr->eh_entries) in ext4_ext_calc_credits_for_single_extent()
2864 le16_add_cpu(&eh->eh_entries, -1); in ext4_ext_rm_leaf()
2878 if (correct_index && eh->eh_entries) in ext4_ext_rm_leaf()
2906 if (err == 0 && eh->eh_entries == 0 && path[depth].p_bh != NULL) in ext4_ext_rm_leaf()
2929 if (le16_to_cpu(path->p_hdr->eh_entries) == path->p_block) in ext4_ext_more_to_rm()
3054 le16_to_cpu(path[k].p_hdr->eh_entries)+1; in ext4_ext_remove_space()
3094 path[i].p_block = le16_to_cpu(path[i].p_hdr->eh_entries)+1; in ext4_ext_remove_space()
3097 le16_to_cpu(path[i].p_hdr->eh_entries)); in ext4_ext_remove_space()
3131 path[i].p_block = le16_to_cpu(path[i].p_hdr->eh_entries); in ext4_ext_remove_space()
3135 if (path[i].p_hdr->eh_entries == 0 && i > 0) { in ext4_ext_remove_space()
3150 path->p_hdr->eh_entries); in ext4_ext_remove_space()
3170 if (path->p_hdr->eh_entries == 0) { in ext4_ext_remove_space()
3920 if (unlikely(!eh->eh_entries)) in check_eofblocks_fl()