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()
984 retval = le16_to_cpu(el->l_count) - le16_to_cpu(el->l_next_free_rec); in ocfs2_num_free_extents()
1094 i = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_sum_rightmost_rec()
1137 rec = &el->l_recs[le16_to_cpu(el->l_next_free_rec) - 1]; in ocfs2_adjust_rightmost_branch()
1183 new_blocks = le16_to_cpu(el->l_tree_depth); in ocfs2_add_branch()
1298 i = le16_to_cpu(el->l_next_free_rec); in ocfs2_add_branch()
1376 for (i = 0; i < le16_to_cpu(root_el->l_next_free_rec); i++) in ocfs2_shift_tree_depth()
1395 for (i = 1; i < le16_to_cpu(root_el->l_next_free_rec); i++) in ocfs2_shift_tree_depth()
1446 while(le16_to_cpu(el->l_tree_depth) > 1) { in ocfs2_find_branch_target()
1447 if (le16_to_cpu(el->l_next_free_rec) == 0) { in ocfs2_find_branch_target()
1455 i = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_find_branch_target()
1479 if (le16_to_cpu(el->l_next_free_rec) < in ocfs2_find_branch_target()
1480 le16_to_cpu(el->l_count)) { in ocfs2_find_branch_target()
1516 int depth = le16_to_cpu(el->l_tree_depth); in ocfs2_grow_tree()
1585 int next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_shift_records_right()
1586 int count = le16_to_cpu(el->l_count); in ocfs2_shift_records_right()
1605 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_rotate_leaf()
1642 le16_to_cpu(el->l_count)); in ocfs2_rotate_leaf()
1645 BUG_ON(insert_index >= le16_to_cpu(el->l_count)); in ocfs2_rotate_leaf()
1652 BUG_ON(next_free >= le16_to_cpu(el->l_count)); in ocfs2_rotate_leaf()
1671 BUG_ON(le16_to_cpu(el->l_next_free_rec) > le16_to_cpu(el->l_count)); in ocfs2_rotate_leaf()
1679 int size, num_recs = le16_to_cpu(el->l_next_free_rec); in ocfs2_remove_empty_extent()
1702 int next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_create_empty_extent()
1704 BUG_ON(le16_to_cpu(el->l_tree_depth) != 0); in ocfs2_create_empty_extent()
1715 le16_to_cpu(el->l_count), in ocfs2_create_empty_extent()
1716 le16_to_cpu(el->l_tree_depth)); in ocfs2_create_empty_extent()
1789 if (le16_to_cpu(el->l_next_free_rec) == 0) { in __ocfs2_find_path()
1794 le16_to_cpu(el->l_tree_depth)); in __ocfs2_find_path()
1800 for(i = 0; i < le16_to_cpu(el->l_next_free_rec) - 1; i++) { in __ocfs2_find_path()
1820 le16_to_cpu(el->l_tree_depth), i); in __ocfs2_find_path()
1836 if (le16_to_cpu(el->l_next_free_rec) > in __ocfs2_find_path()
1837 le16_to_cpu(el->l_count)) { in __ocfs2_find_path()
1843 le16_to_cpu(el->l_next_free_rec), in __ocfs2_find_path()
1844 le16_to_cpu(el->l_count)); in __ocfs2_find_path()
1903 if (le16_to_cpu(el->l_tree_depth) == 0) { in find_leaf_ins()
1966 BUG_ON(le16_to_cpu(right_child_el->l_next_free_rec) <= 1); in ocfs2_adjust_adjacent_records()
1999 BUG_ON(le16_to_cpu(root_el->l_tree_depth) <= in ocfs2_adjust_root_records()
2000 le16_to_cpu(left_el->l_tree_depth)); in ocfs2_adjust_root_records()
2002 for(i = 0; i < le16_to_cpu(root_el->l_next_free_rec) - 1; i++) { in ocfs2_adjust_root_records()
2011 BUG_ON(i >= (le16_to_cpu(root_el->l_next_free_rec) - 1)); in ocfs2_adjust_root_records()
2064 idx = le16_to_cpu(left_el->l_next_free_rec) - 1; in ocfs2_complete_edge_insert()
2123 le16_to_cpu(left_el->l_next_free_rec)); in ocfs2_rotate_subtree_right()
2174 i = le16_to_cpu(left_el->l_next_free_rec) - 1; in ocfs2_rotate_subtree_right()
2227 for(j = 0; j < le16_to_cpu(el->l_next_free_rec); j++) { in ocfs2_find_cpos_for_left_leaf()
2311 next_free = le16_to_cpu(left_el->l_next_free_rec); in ocfs2_rotate_requires_path_adjustment()
2321 int next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_leftmost_rec_contains()
2555 BUG_ON(le16_to_cpu(el->l_next_free_rec) == 0); in ocfs2_update_edge_lengths()
2556 idx = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_update_edge_lengths()
2562 idx = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_update_edge_lengths()
2593 if (le16_to_cpu(el->l_next_free_rec) > 1) { in ocfs2_unlink_path()
2599 le16_to_cpu(el->l_next_free_rec)); in ocfs2_unlink_path()
2636 for(i = 1; i < le16_to_cpu(root_el->l_next_free_rec); i++) in ocfs2_unlink_subtree()
2640 BUG_ON(i >= le16_to_cpu(root_el->l_next_free_rec)); in ocfs2_unlink_subtree()
2696 if (le16_to_cpu(right_leaf_el->l_next_free_rec) > 1) { in ocfs2_rotate_subtree_left()
2711 le16_to_cpu(right_leaf_el->l_next_free_rec) == 1) { in ocfs2_rotate_subtree_left()
2845 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_find_cpos_for_right_leaf()
2846 for(j = 0; j < le16_to_cpu(el->l_next_free_rec); j++) { in ocfs2_find_cpos_for_right_leaf()
3196 if (le16_to_cpu(el->l_next_free_rec) > 1) in ocfs2_rotate_tree_left()
3199 if (le16_to_cpu(el->l_next_free_rec) == 0) { in ocfs2_rotate_tree_left()
3354 unsigned int split_clusters = le16_to_cpu(split_rec->e_leaf_clusters); in ocfs2_merge_rec_right()
3364 BUG_ON(index >= le16_to_cpu(el->l_next_free_rec)); in ocfs2_merge_rec_right()
3367 if (index == le16_to_cpu(el->l_next_free_rec) - 1 && in ocfs2_merge_rec_right()
3368 le16_to_cpu(el->l_next_free_rec) == le16_to_cpu(el->l_count)) { in ocfs2_merge_rec_right()
3377 next_free = le16_to_cpu(right_el->l_next_free_rec); in ocfs2_merge_rec_right()
3386 le16_to_cpu(left_rec->e_leaf_clusters) != in ocfs2_merge_rec_right()
3428 BUG_ON(index == le16_to_cpu(el->l_next_free_rec) - 1); in ocfs2_merge_rec_right()
3521 unsigned int split_clusters = le16_to_cpu(split_rec->e_leaf_clusters); in ocfs2_merge_rec_left()
3542 BUG_ON(le16_to_cpu(left_el->l_next_free_rec) != in ocfs2_merge_rec_left()
3543 le16_to_cpu(left_el->l_count)); in ocfs2_merge_rec_left()
3546 le16_to_cpu(left_el->l_next_free_rec) - 1]; in ocfs2_merge_rec_left()
3548 le16_to_cpu(left_rec->e_leaf_clusters) != in ocfs2_merge_rec_left()
3628 if (le16_to_cpu(right_rec->e_leaf_clusters) == 0 && in ocfs2_merge_rec_left()
3629 le16_to_cpu(el->l_next_free_rec) == 1) { in ocfs2_merge_rec_left()
3796 le16_to_cpu(split_rec->e_leaf_clusters)); in ocfs2_subtract_from_rec()
3804 le16_to_cpu(split_rec->e_leaf_clusters)); in ocfs2_subtract_from_rec()
3807 -le16_to_cpu(split_rec->e_leaf_clusters)); in ocfs2_subtract_from_rec()
3814 -le16_to_cpu(split_rec->e_leaf_clusters)); in ocfs2_subtract_from_rec()
3832 BUG_ON(le16_to_cpu(el->l_tree_depth) != 0); in ocfs2_insert_at_leaf()
3854 le16_to_cpu(insert_rec->e_leaf_clusters)); in ocfs2_insert_at_leaf()
3861 if (le16_to_cpu(el->l_next_free_rec) == 0 || in ocfs2_insert_at_leaf()
3862 ((le16_to_cpu(el->l_next_free_rec) == 1) && in ocfs2_insert_at_leaf()
3873 i = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_insert_at_leaf()
3876 + le16_to_cpu(rec->e_leaf_clusters); in ocfs2_insert_at_leaf()
3879 mlog_bug_on_msg(le16_to_cpu(el->l_next_free_rec) >= in ocfs2_insert_at_leaf()
3880 le16_to_cpu(el->l_count), in ocfs2_insert_at_leaf()
3885 le16_to_cpu(el->l_tree_depth), in ocfs2_insert_at_leaf()
3886 le16_to_cpu(el->l_count), in ocfs2_insert_at_leaf()
3887 le16_to_cpu(el->l_next_free_rec), in ocfs2_insert_at_leaf()
3889 le16_to_cpu(el->l_recs[i].e_leaf_clusters), in ocfs2_insert_at_leaf()
3891 le16_to_cpu(insert_rec->e_leaf_clusters)); in ocfs2_insert_at_leaf()
3929 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_adjust_rightmost_records()
3942 le16_to_cpu(insert_rec->e_leaf_clusters)); in ocfs2_adjust_rightmost_records()
3974 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_append_rec_to_path()
4222 if (le16_to_cpu(el->l_tree_depth) == 0) { in ocfs2_do_insert_extent()
4303 le16_to_cpu(insert_rec->e_leaf_clusters)); in ocfs2_do_insert_extent()
4349 if (le16_to_cpu(new_el->l_next_free_rec) != in ocfs2_figure_merge_contig_type()
4350 le16_to_cpu(new_el->l_count)) { in ocfs2_figure_merge_contig_type()
4359 le16_to_cpu(new_el->l_next_free_rec), in ocfs2_figure_merge_contig_type()
4360 le16_to_cpu(new_el->l_count)); in ocfs2_figure_merge_contig_type()
4365 le16_to_cpu(new_el->l_next_free_rec) - 1]; in ocfs2_figure_merge_contig_type()
4383 if (index < (le16_to_cpu(el->l_next_free_rec) - 1)) in ocfs2_figure_merge_contig_type()
4385 else if (le16_to_cpu(el->l_next_free_rec) == le16_to_cpu(el->l_count) && in ocfs2_figure_merge_contig_type()
4405 if (le16_to_cpu(new_el->l_next_free_rec) <= 1) { in ocfs2_figure_merge_contig_type()
4412 le16_to_cpu(new_el->l_next_free_rec)); in ocfs2_figure_merge_contig_type()
4447 BUG_ON(le16_to_cpu(el->l_tree_depth) != 0); in ocfs2_figure_contig_type()
4449 for(i = 0; i < le16_to_cpu(el->l_next_free_rec); i++) { in ocfs2_figure_contig_type()
4462 unsigned int len = le16_to_cpu(rec->e_leaf_clusters) + in ocfs2_figure_contig_type()
4463 le16_to_cpu(insert_rec->e_leaf_clusters); in ocfs2_figure_contig_type()
4495 BUG_ON(le16_to_cpu(el->l_tree_depth) != 0); in ocfs2_figure_appending_type()
4502 if (le16_to_cpu(el->l_next_free_rec) == 1) in ocfs2_figure_appending_type()
4506 i = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_figure_appending_type()
4510 (le32_to_cpu(rec->e_cpos) + le16_to_cpu(rec->e_leaf_clusters))) in ocfs2_figure_appending_type()
4547 insert->ins_tree_depth = le16_to_cpu(el->l_tree_depth); in ocfs2_figure_insert_type()
4575 *free_records = le16_to_cpu(el->l_count) - in ocfs2_figure_insert_type()
4576 le16_to_cpu(el->l_next_free_rec); in ocfs2_figure_insert_type()
4850 u32 rec_range = rec_cpos + le16_to_cpu(rec->e_leaf_clusters); in ocfs2_make_right_split_rec()
4890 depth = le16_to_cpu(rightmost_el->l_tree_depth); in ocfs2_split_and_insert()
4897 if (le16_to_cpu(rightmost_el->l_next_free_rec) == in ocfs2_split_and_insert()
4898 le16_to_cpu(rightmost_el->l_count)) { in ocfs2_split_and_insert()
4913 le16_to_cpu(split_rec.e_leaf_clusters); in ocfs2_split_and_insert()
4915 le16_to_cpu(rec.e_leaf_clusters); in ocfs2_split_and_insert()
5035 ((le32_to_cpu(rec->e_cpos) + le16_to_cpu(rec->e_leaf_clusters)) < in ocfs2_split_extent()
5036 (le32_to_cpu(split_rec->e_cpos) + le16_to_cpu(split_rec->e_leaf_clusters)))) { in ocfs2_split_extent()
5284 if (le16_to_cpu(rightmost_el->l_next_free_rec) == in ocfs2_split_tree()
5285 le16_to_cpu(rightmost_el->l_count)) { in ocfs2_split_tree()
5334 if (index == (le16_to_cpu(el->l_next_free_rec) - 1) && in ocfs2_truncate_rec()
5369 if (left_cpos && le16_to_cpu(el->l_next_free_rec) > 1) { in ocfs2_truncate_rec()
5416 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_truncate_rec()
5442 le16_to_cpu(rec->e_leaf_clusters), cpos, len); in ocfs2_truncate_rec()
5781 mlog_bug_on_msg(le16_to_cpu(tl->tl_used) > le16_to_cpu(tl->tl_count), in ocfs2_truncate_log_needs_flush()
5784 le16_to_cpu(tl->tl_used), le16_to_cpu(tl->tl_count)); in ocfs2_truncate_log_needs_flush()
5785 return le16_to_cpu(tl->tl_used) == le16_to_cpu(tl->tl_count); in ocfs2_truncate_log_needs_flush()
5795 if (!le16_to_cpu(tl->tl_used)) in ocfs2_truncate_log_can_coalesce()
5798 tail_index = le16_to_cpu(tl->tl_used) - 1; in ocfs2_truncate_log_can_coalesce()
5829 tl_count = le16_to_cpu(tl->tl_count); in ocfs2_truncate_log_append()
5836 le16_to_cpu(tl->tl_count)); in ocfs2_truncate_log_append()
5839 index = le16_to_cpu(tl->tl_used); in ocfs2_truncate_log_append()
5898 i = le16_to_cpu(tl->tl_used) - 1; in ocfs2_replay_truncate_records()
5975 num_to_flush = le16_to_cpu(tl->tl_used); in __ocfs2_flush_truncate_log()
6132 if (le16_to_cpu(tl->tl_used)) { in ocfs2_begin_truncate_log_recovery()
6133 trace_ocfs2_truncate_log_recovery_num(le16_to_cpu(tl->tl_used)); in ocfs2_begin_truncate_log_recovery()
6189 num_recs = le16_to_cpu(tl->tl_used); in ocfs2_complete_truncate_log_recovery()
6580 le16_to_cpu(eb->h_suballoc_slot), in ocfs2_cache_extent_block_free()
6583 le16_to_cpu(eb->h_suballoc_bit)); in ocfs2_cache_extent_block_free()
6792 unsigned int xattrsize = le16_to_cpu(di->i_xattr_inline_size); in ocfs2_zero_dinode_id2_with_xattr()
6794 if (le16_to_cpu(di->i_dyn_features) & OCFS2_INLINE_XATTR_FL) in ocfs2_zero_dinode_id2_with_xattr()
7076 if (le16_to_cpu(el->l_next_free_rec) == 0) { in ocfs2_commit_truncate()
7085 i = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_commit_truncate()
7098 le16_to_cpu(root_el->l_tree_depth)); in ocfs2_commit_truncate()
7189 !(le16_to_cpu(di->i_dyn_features) & OCFS2_INLINE_DATA_FL) || in ocfs2_truncate_inline()
7195 le16_to_cpu(di->i_dyn_features), in ocfs2_truncate_inline()
7268 if (le16_to_cpu(gd->bg_free_bits_count) < minbits) in ocfs2_trim_group()
7296 if ((le16_to_cpu(gd->bg_free_bits_count) - count) < minbits) in ocfs2_trim_group()