Lines Matching refs:dx_leaf

617 	struct ocfs2_dx_leaf *dx_leaf = (struct ocfs2_dx_leaf *)bh->b_data;  in ocfs2_validate_dx_leaf()  local
621 ret = ocfs2_validate_meta_ecc(sb, bh->b_data, &dx_leaf->dl_check); in ocfs2_validate_dx_leaf()
629 if (!OCFS2_IS_VALID_DX_LEAF(dx_leaf)) { in ocfs2_validate_dx_leaf()
631 7, dx_leaf->dl_signature); in ocfs2_validate_dx_leaf()
903 struct ocfs2_dx_leaf *dx_leaf; in ocfs2_dx_dir_search() local
936 dx_leaf = (struct ocfs2_dx_leaf *) dx_leaf_bh->b_data; in ocfs2_dx_dir_search()
939 le16_to_cpu(dx_leaf->dl_list.de_num_used), in ocfs2_dx_dir_search()
940 le16_to_cpu(dx_leaf->dl_list.de_count)); in ocfs2_dx_dir_search()
942 entry_list = &dx_leaf->dl_list; in ocfs2_dx_dir_search()
1241 struct ocfs2_dx_leaf *dx_leaf; in ocfs2_delete_entry_dx() local
1262 dx_leaf = (struct ocfs2_dx_leaf *) lookup->dl_dx_leaf_bh->b_data; in ocfs2_delete_entry_dx()
1263 entry_list = &dx_leaf->dl_list; in ocfs2_delete_entry_dx()
1431 static void ocfs2_dx_dir_leaf_insert_tail(struct ocfs2_dx_leaf *dx_leaf, in ocfs2_dx_dir_leaf_insert_tail() argument
1436 i = le16_to_cpu(dx_leaf->dl_list.de_num_used); in ocfs2_dx_dir_leaf_insert_tail()
1437 dx_leaf->dl_list.de_entries[i] = *dx_new_entry; in ocfs2_dx_dir_leaf_insert_tail()
1439 le16_add_cpu(&dx_leaf->dl_list.de_num_used, 1); in ocfs2_dx_dir_leaf_insert_tail()
1466 struct ocfs2_dx_leaf *dx_leaf; in __ocfs2_dx_dir_leaf_insert() local
1475 dx_leaf = (struct ocfs2_dx_leaf *)dx_leaf_bh->b_data; in __ocfs2_dx_dir_leaf_insert()
1476 ocfs2_dx_entry_list_insert(&dx_leaf->dl_list, hinfo, dirent_blk); in __ocfs2_dx_dir_leaf_insert()
2388 struct ocfs2_dx_leaf *dx_leaf; in ocfs2_dx_dir_format_cluster() local
2408 dx_leaf = (struct ocfs2_dx_leaf *) bh->b_data; in ocfs2_dx_dir_format_cluster()
2410 memset(dx_leaf, 0, osb->sb->s_blocksize); in ocfs2_dx_dir_format_cluster()
2411 strcpy(dx_leaf->dl_signature, OCFS2_DX_LEAF_SIGNATURE); in ocfs2_dx_dir_format_cluster()
2412 dx_leaf->dl_fs_generation = cpu_to_le32(osb->fs_generation); in ocfs2_dx_dir_format_cluster()
2413 dx_leaf->dl_blkno = cpu_to_le64(bh->b_blocknr); in ocfs2_dx_dir_format_cluster()
2414 dx_leaf->dl_list.de_count = in ocfs2_dx_dir_format_cluster()
2420 le16_to_cpu(dx_leaf->dl_list.de_count)); in ocfs2_dx_dir_format_cluster()
3515 static int ocfs2_dx_leaf_same_major(struct ocfs2_dx_leaf *dx_leaf) in ocfs2_dx_leaf_same_major() argument
3517 struct ocfs2_dx_entry_list *dl_list = &dx_leaf->dl_list; in ocfs2_dx_leaf_same_major()
3539 static int ocfs2_dx_dir_find_leaf_split(struct ocfs2_dx_leaf *dx_leaf, in ocfs2_dx_dir_find_leaf_split() argument
3543 struct ocfs2_dx_entry_list *dl_list = &dx_leaf->dl_list; in ocfs2_dx_dir_find_leaf_split()
3555 allsame = ocfs2_dx_leaf_same_major(dx_leaf); in ocfs2_dx_dir_find_leaf_split()
3691 struct ocfs2_dx_leaf *dx_leaf = (struct ocfs2_dx_leaf *)dx_leaf_bh->b_data; in ocfs2_dx_dir_rebalance() local
3718 num_used = le16_to_cpu(dx_leaf->dl_list.de_num_used); in ocfs2_dx_dir_rebalance()
3719 if (num_used < le16_to_cpu(dx_leaf->dl_list.de_count)) { in ocfs2_dx_dir_rebalance()
3773 sort(dx_leaf->dl_list.de_entries, num_used, in ocfs2_dx_dir_rebalance()
3779 ret = ocfs2_dx_dir_find_leaf_split(dx_leaf, leaf_cpos, insert_hash, in ocfs2_dx_dir_rebalance()
3889 struct ocfs2_dx_leaf *dx_leaf; in ocfs2_find_dir_space_dx() local
3909 dx_leaf = (struct ocfs2_dx_leaf *)dx_leaf_bh->b_data; in ocfs2_find_dir_space_dx()
3911 if (le16_to_cpu(dx_leaf->dl_list.de_num_used) >= in ocfs2_find_dir_space_dx()
3912 le16_to_cpu(dx_leaf->dl_list.de_count)) { in ocfs2_find_dir_space_dx()