Lines Matching refs:el
281 struct ocfs2_extent_list *el; in ocfs2_last_eb_is_empty() local
290 el = &eb->h_list; in ocfs2_last_eb_is_empty()
292 if (el->l_tree_depth) { in ocfs2_last_eb_is_empty()
301 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_last_eb_is_empty()
304 (next_free == 1 && ocfs2_is_empty_extent(&el->l_recs[0]))) in ocfs2_last_eb_is_empty()
316 static int ocfs2_search_for_hole_index(struct ocfs2_extent_list *el, in ocfs2_search_for_hole_index() argument
322 for(i = 0; i < le16_to_cpu(el->l_next_free_rec); i++) { in ocfs2_search_for_hole_index()
323 rec = &el->l_recs[i]; in ocfs2_search_for_hole_index()
344 struct ocfs2_extent_list *el, in ocfs2_figure_hole_clusters() argument
353 i = ocfs2_search_for_hole_index(el, v_cluster); in ocfs2_figure_hole_clusters()
355 if (i == le16_to_cpu(el->l_next_free_rec) && eb_bh) { in ocfs2_figure_hole_clusters()
374 el = &next_eb->h_list; in ocfs2_figure_hole_clusters()
375 i = ocfs2_search_for_hole_index(el, v_cluster); in ocfs2_figure_hole_clusters()
379 if (i == le16_to_cpu(el->l_next_free_rec)) { in ocfs2_figure_hole_clusters()
387 *num_clusters = le32_to_cpu(el->l_recs[i].e_cpos) - v_cluster; in ocfs2_figure_hole_clusters()
405 struct ocfs2_extent_list *el; in ocfs2_get_clusters_nocache() local
414 el = &di->id2.i_list; in ocfs2_get_clusters_nocache()
415 tree_height = le16_to_cpu(el->l_tree_depth); in ocfs2_get_clusters_nocache()
418 ret = ocfs2_find_leaf(INODE_CACHE(inode), el, v_cluster, in ocfs2_get_clusters_nocache()
426 el = &eb->h_list; in ocfs2_get_clusters_nocache()
428 if (el->l_tree_depth) { in ocfs2_get_clusters_nocache()
438 i = ocfs2_search_extent_list(el, v_cluster); in ocfs2_get_clusters_nocache()
447 el, eb_bh, in ocfs2_get_clusters_nocache()
459 rec = &el->l_recs[i]; in ocfs2_get_clusters_nocache()
468 ocfs2_rec_clusters(el, rec)); in ocfs2_get_clusters_nocache()
491 if (i == (le16_to_cpu(el->l_next_free_rec) - 1)) { in ocfs2_get_clusters_nocache()
532 struct ocfs2_extent_list *el, in ocfs2_xattr_get_clusters() argument
541 if (el->l_tree_depth) { in ocfs2_xattr_get_clusters()
542 ret = ocfs2_find_leaf(INODE_CACHE(inode), el, v_cluster, in ocfs2_xattr_get_clusters()
550 el = &eb->h_list; in ocfs2_xattr_get_clusters()
552 if (el->l_tree_depth) { in ocfs2_xattr_get_clusters()
562 i = ocfs2_search_extent_list(el, v_cluster); in ocfs2_xattr_get_clusters()
568 rec = &el->l_recs[i]; in ocfs2_xattr_get_clusters()
576 ocfs2_rec_clusters(el, rec)); in ocfs2_xattr_get_clusters()
585 *num_clusters = ocfs2_rec_clusters(el, rec) - coff; in ocfs2_xattr_get_clusters()