Lines Matching refs:eh_entries

376 	if (eh->eh_entries == 0)  in ext4_valid_extent_entries()
379 entries = le16_to_cpu(eh->eh_entries); in ext4_valid_extent_entries()
458 if (unlikely(le16_to_cpu(eh->eh_entries) > le16_to_cpu(eh->eh_max))) { in __ext4_ext_check()
462 if (unlikely((eh->eh_entries == 0) && (depth > 0))) { in __ext4_ext_check()
489 le16_to_cpu(eh->eh_entries), in __ext4_ext_check()
510 for (i = le16_to_cpu(eh->eh_entries); i > 0; i--, ex++) { in ext4_cache_extents()
681 for (i = 0; i < le16_to_cpu(eh->eh_entries); i++, ex++) { in ext4_ext_show_leaf()
777 for (k = 0; k < le16_to_cpu(eh->eh_entries); k++, ix++) { in ext4_ext_binsearch_idx()
811 if (eh->eh_entries == 0) { in ext4_ext_binsearch()
848 for (k = 0; k < le16_to_cpu(eh->eh_entries); k++, ex++) { in ext4_ext_binsearch()
867 eh->eh_entries = 0; in ext4_ext_tree_init()
921 ppos, le16_to_cpu(eh->eh_entries), le16_to_cpu(eh->eh_max)); in ext4_find_extent()
985 if (unlikely(le16_to_cpu(curp->p_hdr->eh_entries) in ext4_ext_insert_index()
989 le16_to_cpu(curp->p_hdr->eh_entries), in ext4_ext_insert_index()
1022 le16_add_cpu(&curp->p_hdr->eh_entries, 1); in ext4_ext_insert_index()
1131 neh->eh_entries = 0; in ext4_ext_split()
1138 if (unlikely(path[depth].p_hdr->eh_entries != in ext4_ext_split()
1141 path[depth].p_hdr->eh_entries, in ext4_ext_split()
1153 le16_add_cpu(&neh->eh_entries, m); in ext4_ext_split()
1158 sizeof(struct ext4_extent) * le16_to_cpu(neh->eh_entries); in ext4_ext_split()
1175 le16_add_cpu(&path[depth].p_hdr->eh_entries, -m); in ext4_ext_split()
1209 neh->eh_entries = cpu_to_le16(1); in ext4_ext_split()
1238 le16_add_cpu(&neh->eh_entries, m); in ext4_ext_split()
1242 (sizeof(struct ext4_extent) * le16_to_cpu(neh->eh_entries)); in ext4_ext_split()
1260 le16_add_cpu(&path[i].p_hdr->eh_entries, -m); in ext4_ext_split()
1361 neh->eh_entries = cpu_to_le16(1); in ext4_ext_grow_indepth()
1370 le16_to_cpu(neh->eh_entries), le16_to_cpu(neh->eh_max), in ext4_ext_grow_indepth()
1442 if (path[depth].p_hdr->eh_entries == path[depth].p_hdr->eh_max) { in ext4_ext_create_new_leaf()
1818 le16_add_cpu(&eh->eh_entries, -1); in ext4_ext_try_to_merge_right()
1820 WARN_ON(eh->eh_entries == 0); in ext4_ext_try_to_merge_right()
1821 if (!eh->eh_entries) in ext4_ext_try_to_merge_right()
1841 (le16_to_cpu(path[0].p_hdr->eh_entries) != 1) || in ext4_ext_try_to_merge_up()
1842 (le16_to_cpu(path[1].p_hdr->eh_entries) > max_root)) in ext4_ext_try_to_merge_up()
1858 s = le16_to_cpu(path[1].p_hdr->eh_entries) * in ext4_ext_try_to_merge_up()
2062 if (le16_to_cpu(eh->eh_entries) < le16_to_cpu(eh->eh_max)) in ext4_ext_insert_extent()
2078 if (le16_to_cpu(eh->eh_entries) < le16_to_cpu(eh->eh_max)) { in ext4_ext_insert_extent()
2080 le16_to_cpu(eh->eh_entries)); in ext4_ext_insert_extent()
2085 le16_to_cpu(eh->eh_entries), le16_to_cpu(eh->eh_max)); in ext4_ext_insert_extent()
2153 le16_add_cpu(&eh->eh_entries, 1); in ext4_ext_insert_extent()
2304 if (unlikely(path->p_hdr->eh_entries == 0)) { in ext4_ext_rm_idx()
2318 le16_add_cpu(&path->p_hdr->eh_entries, -1); in ext4_ext_rm_idx()
2358 if (le16_to_cpu(path[depth].p_hdr->eh_entries) in ext4_ext_calc_credits_for_single_extent()
2737 le16_add_cpu(&eh->eh_entries, -1); in ext4_ext_rm_leaf()
2751 if (correct_index && eh->eh_entries) in ext4_ext_rm_leaf()
2779 if (err == 0 && eh->eh_entries == 0 && path[depth].p_bh != NULL) in ext4_ext_rm_leaf()
2802 if (le16_to_cpu(path->p_hdr->eh_entries) == path->p_block) in ext4_ext_more_to_rm()
2930 le16_to_cpu(path[k].p_hdr->eh_entries)+1; in ext4_ext_remove_space()
2970 path[i].p_block = le16_to_cpu(path[i].p_hdr->eh_entries)+1; in ext4_ext_remove_space()
2973 le16_to_cpu(path[i].p_hdr->eh_entries)); in ext4_ext_remove_space()
3007 path[i].p_block = le16_to_cpu(path[i].p_hdr->eh_entries); in ext4_ext_remove_space()
3011 if (path[i].p_hdr->eh_entries == 0 && i > 0) { in ext4_ext_remove_space()
3026 path->p_hdr->eh_entries); in ext4_ext_remove_space()
3046 if (path->p_hdr->eh_entries == 0) { in ext4_ext_remove_space()