Lines Matching refs:le16_to_cpu
602 depth = le16_to_cpu(path_root_el(path)->l_tree_depth); in ocfs2_reinit_path()
693 BUG_ON(le16_to_cpu(root_el->l_tree_depth) >= OCFS2_MAX_PATH_DEPTH); in ocfs2_new_path()
697 path->p_tree_depth = le16_to_cpu(root_el->l_tree_depth); in ocfs2_new_path()
780 for(i = 0; i < le16_to_cpu(el->l_next_free_rec); i++) { in ocfs2_search_extent_list()
808 le16_to_cpu(ext->e_leaf_clusters)); in ocfs2_block_extent_contig()
819 le16_to_cpu(left->e_leaf_clusters); in ocfs2_extents_adjacent()
982 retval = le16_to_cpu(el->l_count) - le16_to_cpu(el->l_next_free_rec); in ocfs2_num_free_extents()
1092 i = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_sum_rightmost_rec()
1135 rec = &el->l_recs[le16_to_cpu(el->l_next_free_rec) - 1]; in ocfs2_adjust_rightmost_branch()
1181 new_blocks = le16_to_cpu(el->l_tree_depth); in ocfs2_add_branch()
1296 i = le16_to_cpu(el->l_next_free_rec); in ocfs2_add_branch()
1374 for (i = 0; i < le16_to_cpu(root_el->l_next_free_rec); i++) in ocfs2_shift_tree_depth()
1393 for (i = 1; i < le16_to_cpu(root_el->l_next_free_rec); i++) in ocfs2_shift_tree_depth()
1444 while(le16_to_cpu(el->l_tree_depth) > 1) { in ocfs2_find_branch_target()
1445 if (le16_to_cpu(el->l_next_free_rec) == 0) { in ocfs2_find_branch_target()
1452 i = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_find_branch_target()
1474 if (le16_to_cpu(el->l_next_free_rec) < in ocfs2_find_branch_target()
1475 le16_to_cpu(el->l_count)) { in ocfs2_find_branch_target()
1511 int depth = le16_to_cpu(el->l_tree_depth); in ocfs2_grow_tree()
1580 int next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_shift_records_right()
1581 int count = le16_to_cpu(el->l_count); in ocfs2_shift_records_right()
1600 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_rotate_leaf()
1637 le16_to_cpu(el->l_count)); in ocfs2_rotate_leaf()
1640 BUG_ON(insert_index >= le16_to_cpu(el->l_count)); in ocfs2_rotate_leaf()
1647 BUG_ON(next_free >= le16_to_cpu(el->l_count)); in ocfs2_rotate_leaf()
1666 BUG_ON(le16_to_cpu(el->l_next_free_rec) > le16_to_cpu(el->l_count)); in ocfs2_rotate_leaf()
1674 int size, num_recs = le16_to_cpu(el->l_next_free_rec); in ocfs2_remove_empty_extent()
1697 int next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_create_empty_extent()
1699 BUG_ON(le16_to_cpu(el->l_tree_depth) != 0); in ocfs2_create_empty_extent()
1710 le16_to_cpu(el->l_count), in ocfs2_create_empty_extent()
1711 le16_to_cpu(el->l_tree_depth)); in ocfs2_create_empty_extent()
1784 if (le16_to_cpu(el->l_next_free_rec) == 0) { in __ocfs2_find_path()
1788 le16_to_cpu(el->l_tree_depth)); in __ocfs2_find_path()
1794 for(i = 0; i < le16_to_cpu(el->l_next_free_rec) - 1; i++) { in __ocfs2_find_path()
1813 le16_to_cpu(el->l_tree_depth), i); in __ocfs2_find_path()
1829 if (le16_to_cpu(el->l_next_free_rec) > in __ocfs2_find_path()
1830 le16_to_cpu(el->l_count)) { in __ocfs2_find_path()
1835 le16_to_cpu(el->l_next_free_rec), in __ocfs2_find_path()
1836 le16_to_cpu(el->l_count)); in __ocfs2_find_path()
1895 if (le16_to_cpu(el->l_tree_depth) == 0) { in find_leaf_ins()
1958 BUG_ON(le16_to_cpu(right_child_el->l_next_free_rec) <= 1); in ocfs2_adjust_adjacent_records()
1991 BUG_ON(le16_to_cpu(root_el->l_tree_depth) <= in ocfs2_adjust_root_records()
1992 le16_to_cpu(left_el->l_tree_depth)); in ocfs2_adjust_root_records()
1994 for(i = 0; i < le16_to_cpu(root_el->l_next_free_rec) - 1; i++) { in ocfs2_adjust_root_records()
2003 BUG_ON(i >= (le16_to_cpu(root_el->l_next_free_rec) - 1)); in ocfs2_adjust_root_records()
2056 idx = le16_to_cpu(left_el->l_next_free_rec) - 1; in ocfs2_complete_edge_insert()
2114 le16_to_cpu(left_el->l_next_free_rec)); in ocfs2_rotate_subtree_right()
2165 i = le16_to_cpu(left_el->l_next_free_rec) - 1; in ocfs2_rotate_subtree_right()
2218 for(j = 0; j < le16_to_cpu(el->l_next_free_rec); j++) { in ocfs2_find_cpos_for_left_leaf()
2301 next_free = le16_to_cpu(left_el->l_next_free_rec); in ocfs2_rotate_requires_path_adjustment()
2311 int next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_leftmost_rec_contains()
2545 BUG_ON(le16_to_cpu(el->l_next_free_rec) == 0); in ocfs2_update_edge_lengths()
2546 idx = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_update_edge_lengths()
2552 idx = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_update_edge_lengths()
2583 if (le16_to_cpu(el->l_next_free_rec) > 1) { in ocfs2_unlink_path()
2589 le16_to_cpu(el->l_next_free_rec)); in ocfs2_unlink_path()
2626 for(i = 1; i < le16_to_cpu(root_el->l_next_free_rec); i++) in ocfs2_unlink_subtree()
2630 BUG_ON(i >= le16_to_cpu(root_el->l_next_free_rec)); in ocfs2_unlink_subtree()
2686 if (le16_to_cpu(right_leaf_el->l_next_free_rec) > 1) { in ocfs2_rotate_subtree_left()
2701 le16_to_cpu(right_leaf_el->l_next_free_rec) == 1) { in ocfs2_rotate_subtree_left()
2835 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_find_cpos_for_right_leaf()
2836 for(j = 0; j < le16_to_cpu(el->l_next_free_rec); j++) { in ocfs2_find_cpos_for_right_leaf()
3210 if (le16_to_cpu(el->l_next_free_rec) > 1) in ocfs2_rotate_tree_left()
3213 if (le16_to_cpu(el->l_next_free_rec) == 0) { in ocfs2_rotate_tree_left()
3368 unsigned int split_clusters = le16_to_cpu(split_rec->e_leaf_clusters); in ocfs2_merge_rec_right()
3378 BUG_ON(index >= le16_to_cpu(el->l_next_free_rec)); in ocfs2_merge_rec_right()
3381 if (index == le16_to_cpu(el->l_next_free_rec) - 1 && in ocfs2_merge_rec_right()
3382 le16_to_cpu(el->l_next_free_rec) == le16_to_cpu(el->l_count)) { in ocfs2_merge_rec_right()
3391 next_free = le16_to_cpu(right_el->l_next_free_rec); in ocfs2_merge_rec_right()
3400 le16_to_cpu(left_rec->e_leaf_clusters) != in ocfs2_merge_rec_right()
3442 BUG_ON(index == le16_to_cpu(el->l_next_free_rec) - 1); in ocfs2_merge_rec_right()
3535 unsigned int split_clusters = le16_to_cpu(split_rec->e_leaf_clusters); in ocfs2_merge_rec_left()
3556 BUG_ON(le16_to_cpu(left_el->l_next_free_rec) != in ocfs2_merge_rec_left()
3557 le16_to_cpu(left_el->l_count)); in ocfs2_merge_rec_left()
3560 le16_to_cpu(left_el->l_next_free_rec) - 1]; in ocfs2_merge_rec_left()
3562 le16_to_cpu(left_rec->e_leaf_clusters) != in ocfs2_merge_rec_left()
3642 if (le16_to_cpu(right_rec->e_leaf_clusters) == 0 && in ocfs2_merge_rec_left()
3643 le16_to_cpu(el->l_next_free_rec) == 1) { in ocfs2_merge_rec_left()
3810 le16_to_cpu(split_rec->e_leaf_clusters)); in ocfs2_subtract_from_rec()
3818 le16_to_cpu(split_rec->e_leaf_clusters)); in ocfs2_subtract_from_rec()
3821 -le16_to_cpu(split_rec->e_leaf_clusters)); in ocfs2_subtract_from_rec()
3828 -le16_to_cpu(split_rec->e_leaf_clusters)); in ocfs2_subtract_from_rec()
3846 BUG_ON(le16_to_cpu(el->l_tree_depth) != 0); in ocfs2_insert_at_leaf()
3868 le16_to_cpu(insert_rec->e_leaf_clusters)); in ocfs2_insert_at_leaf()
3875 if (le16_to_cpu(el->l_next_free_rec) == 0 || in ocfs2_insert_at_leaf()
3876 ((le16_to_cpu(el->l_next_free_rec) == 1) && in ocfs2_insert_at_leaf()
3887 i = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_insert_at_leaf()
3890 + le16_to_cpu(rec->e_leaf_clusters); in ocfs2_insert_at_leaf()
3893 mlog_bug_on_msg(le16_to_cpu(el->l_next_free_rec) >= in ocfs2_insert_at_leaf()
3894 le16_to_cpu(el->l_count), in ocfs2_insert_at_leaf()
3899 le16_to_cpu(el->l_tree_depth), in ocfs2_insert_at_leaf()
3900 le16_to_cpu(el->l_count), in ocfs2_insert_at_leaf()
3901 le16_to_cpu(el->l_next_free_rec), in ocfs2_insert_at_leaf()
3903 le16_to_cpu(el->l_recs[i].e_leaf_clusters), in ocfs2_insert_at_leaf()
3905 le16_to_cpu(insert_rec->e_leaf_clusters)); in ocfs2_insert_at_leaf()
3943 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_adjust_rightmost_records()
3956 le16_to_cpu(insert_rec->e_leaf_clusters)); in ocfs2_adjust_rightmost_records()
3988 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_append_rec_to_path()
4236 if (le16_to_cpu(el->l_tree_depth) == 0) { in ocfs2_do_insert_extent()
4317 le16_to_cpu(insert_rec->e_leaf_clusters)); in ocfs2_do_insert_extent()
4366 if (le16_to_cpu(new_el->l_next_free_rec) != in ocfs2_figure_merge_contig_type()
4367 le16_to_cpu(new_el->l_count)) { in ocfs2_figure_merge_contig_type()
4373 le16_to_cpu(new_el->l_next_free_rec), in ocfs2_figure_merge_contig_type()
4374 le16_to_cpu(new_el->l_count)); in ocfs2_figure_merge_contig_type()
4379 le16_to_cpu(new_el->l_next_free_rec) - 1]; in ocfs2_figure_merge_contig_type()
4397 if (index < (le16_to_cpu(el->l_next_free_rec) - 1)) in ocfs2_figure_merge_contig_type()
4399 else if (le16_to_cpu(el->l_next_free_rec) == le16_to_cpu(el->l_count) && in ocfs2_figure_merge_contig_type()
4422 if (le16_to_cpu(new_el->l_next_free_rec) <= 1) { in ocfs2_figure_merge_contig_type()
4428 le16_to_cpu(new_el->l_next_free_rec)); in ocfs2_figure_merge_contig_type()
4466 BUG_ON(le16_to_cpu(el->l_tree_depth) != 0); in ocfs2_figure_contig_type()
4468 for(i = 0; i < le16_to_cpu(el->l_next_free_rec); i++) { in ocfs2_figure_contig_type()
4481 unsigned int len = le16_to_cpu(rec->e_leaf_clusters) + in ocfs2_figure_contig_type()
4482 le16_to_cpu(insert_rec->e_leaf_clusters); in ocfs2_figure_contig_type()
4514 BUG_ON(le16_to_cpu(el->l_tree_depth) != 0); in ocfs2_figure_appending_type()
4521 if (le16_to_cpu(el->l_next_free_rec) == 1) in ocfs2_figure_appending_type()
4525 i = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_figure_appending_type()
4529 (le32_to_cpu(rec->e_cpos) + le16_to_cpu(rec->e_leaf_clusters))) in ocfs2_figure_appending_type()
4566 insert->ins_tree_depth = le16_to_cpu(el->l_tree_depth); in ocfs2_figure_insert_type()
4594 *free_records = le16_to_cpu(el->l_count) - in ocfs2_figure_insert_type()
4595 le16_to_cpu(el->l_next_free_rec); in ocfs2_figure_insert_type()
4869 u32 rec_range = rec_cpos + le16_to_cpu(rec->e_leaf_clusters); in ocfs2_make_right_split_rec()
4909 depth = le16_to_cpu(rightmost_el->l_tree_depth); in ocfs2_split_and_insert()
4916 if (le16_to_cpu(rightmost_el->l_next_free_rec) == in ocfs2_split_and_insert()
4917 le16_to_cpu(rightmost_el->l_count)) { in ocfs2_split_and_insert()
4932 le16_to_cpu(split_rec.e_leaf_clusters); in ocfs2_split_and_insert()
4934 le16_to_cpu(rec.e_leaf_clusters); in ocfs2_split_and_insert()
5053 ((le32_to_cpu(rec->e_cpos) + le16_to_cpu(rec->e_leaf_clusters)) < in ocfs2_split_extent()
5054 (le32_to_cpu(split_rec->e_cpos) + le16_to_cpu(split_rec->e_leaf_clusters)))) { in ocfs2_split_extent()
5304 if (le16_to_cpu(rightmost_el->l_next_free_rec) == in ocfs2_split_tree()
5305 le16_to_cpu(rightmost_el->l_count)) { in ocfs2_split_tree()
5354 if (index == (le16_to_cpu(el->l_next_free_rec) - 1) && in ocfs2_truncate_rec()
5389 if (left_cpos && le16_to_cpu(el->l_next_free_rec) > 1) { in ocfs2_truncate_rec()
5436 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_truncate_rec()
5462 le16_to_cpu(rec->e_leaf_clusters), cpos, len); in ocfs2_truncate_rec()
5799 mlog_bug_on_msg(le16_to_cpu(tl->tl_used) > le16_to_cpu(tl->tl_count), in ocfs2_truncate_log_needs_flush()
5802 le16_to_cpu(tl->tl_used), le16_to_cpu(tl->tl_count)); in ocfs2_truncate_log_needs_flush()
5803 return le16_to_cpu(tl->tl_used) == le16_to_cpu(tl->tl_count); in ocfs2_truncate_log_needs_flush()
5813 if (!le16_to_cpu(tl->tl_used)) in ocfs2_truncate_log_can_coalesce()
5816 tail_index = le16_to_cpu(tl->tl_used) - 1; in ocfs2_truncate_log_can_coalesce()
5847 tl_count = le16_to_cpu(tl->tl_count); in ocfs2_truncate_log_append()
5854 le16_to_cpu(tl->tl_count)); in ocfs2_truncate_log_append()
5857 index = le16_to_cpu(tl->tl_used); in ocfs2_truncate_log_append()
5916 i = le16_to_cpu(tl->tl_used) - 1; in ocfs2_replay_truncate_records()
5993 num_to_flush = le16_to_cpu(tl->tl_used); in __ocfs2_flush_truncate_log()
6150 if (le16_to_cpu(tl->tl_used)) { in ocfs2_begin_truncate_log_recovery()
6151 trace_ocfs2_truncate_log_recovery_num(le16_to_cpu(tl->tl_used)); in ocfs2_begin_truncate_log_recovery()
6207 num_recs = le16_to_cpu(tl->tl_used); in ocfs2_complete_truncate_log_recovery()
6598 le16_to_cpu(eb->h_suballoc_slot), in ocfs2_cache_extent_block_free()
6601 le16_to_cpu(eb->h_suballoc_bit)); in ocfs2_cache_extent_block_free()
6810 unsigned int xattrsize = le16_to_cpu(di->i_xattr_inline_size); in ocfs2_zero_dinode_id2_with_xattr()
6812 if (le16_to_cpu(di->i_dyn_features) & OCFS2_INLINE_XATTR_FL) in ocfs2_zero_dinode_id2_with_xattr()
7094 if (le16_to_cpu(el->l_next_free_rec) == 0) { in ocfs2_commit_truncate()
7103 i = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_commit_truncate()
7116 le16_to_cpu(root_el->l_tree_depth)); in ocfs2_commit_truncate()
7215 !(le16_to_cpu(di->i_dyn_features) & OCFS2_INLINE_DATA_FL) || in ocfs2_truncate_inline()
7220 le16_to_cpu(di->i_dyn_features), in ocfs2_truncate_inline()
7293 if (le16_to_cpu(gd->bg_free_bits_count) < minbits) in ocfs2_trim_group()
7321 if ((le16_to_cpu(gd->bg_free_bits_count) - count) < minbits) in ocfs2_trim_group()