Lines Matching refs:dx_leaf

613 	struct ocfs2_dx_leaf *dx_leaf = (struct ocfs2_dx_leaf *)bh->b_data;  in ocfs2_validate_dx_leaf()  local
617 ret = ocfs2_validate_meta_ecc(sb, bh->b_data, &dx_leaf->dl_check); in ocfs2_validate_dx_leaf()
625 if (!OCFS2_IS_VALID_DX_LEAF(dx_leaf)) { in ocfs2_validate_dx_leaf()
627 7, dx_leaf->dl_signature); in ocfs2_validate_dx_leaf()
899 struct ocfs2_dx_leaf *dx_leaf; in ocfs2_dx_dir_search() local
932 dx_leaf = (struct ocfs2_dx_leaf *) dx_leaf_bh->b_data; in ocfs2_dx_dir_search()
935 le16_to_cpu(dx_leaf->dl_list.de_num_used), in ocfs2_dx_dir_search()
936 le16_to_cpu(dx_leaf->dl_list.de_count)); in ocfs2_dx_dir_search()
938 entry_list = &dx_leaf->dl_list; in ocfs2_dx_dir_search()
1237 struct ocfs2_dx_leaf *dx_leaf; in ocfs2_delete_entry_dx() local
1258 dx_leaf = (struct ocfs2_dx_leaf *) lookup->dl_dx_leaf_bh->b_data; in ocfs2_delete_entry_dx()
1259 entry_list = &dx_leaf->dl_list; in ocfs2_delete_entry_dx()
1427 static void ocfs2_dx_dir_leaf_insert_tail(struct ocfs2_dx_leaf *dx_leaf, in ocfs2_dx_dir_leaf_insert_tail() argument
1432 i = le16_to_cpu(dx_leaf->dl_list.de_num_used); in ocfs2_dx_dir_leaf_insert_tail()
1433 dx_leaf->dl_list.de_entries[i] = *dx_new_entry; in ocfs2_dx_dir_leaf_insert_tail()
1435 le16_add_cpu(&dx_leaf->dl_list.de_num_used, 1); in ocfs2_dx_dir_leaf_insert_tail()
1462 struct ocfs2_dx_leaf *dx_leaf; in __ocfs2_dx_dir_leaf_insert() local
1471 dx_leaf = (struct ocfs2_dx_leaf *)dx_leaf_bh->b_data; in __ocfs2_dx_dir_leaf_insert()
1472 ocfs2_dx_entry_list_insert(&dx_leaf->dl_list, hinfo, dirent_blk); in __ocfs2_dx_dir_leaf_insert()
2382 struct ocfs2_dx_leaf *dx_leaf; in ocfs2_dx_dir_format_cluster() local
2402 dx_leaf = (struct ocfs2_dx_leaf *) bh->b_data; in ocfs2_dx_dir_format_cluster()
2404 memset(dx_leaf, 0, osb->sb->s_blocksize); in ocfs2_dx_dir_format_cluster()
2405 strcpy(dx_leaf->dl_signature, OCFS2_DX_LEAF_SIGNATURE); in ocfs2_dx_dir_format_cluster()
2406 dx_leaf->dl_fs_generation = cpu_to_le32(osb->fs_generation); in ocfs2_dx_dir_format_cluster()
2407 dx_leaf->dl_blkno = cpu_to_le64(bh->b_blocknr); in ocfs2_dx_dir_format_cluster()
2408 dx_leaf->dl_list.de_count = in ocfs2_dx_dir_format_cluster()
2414 le16_to_cpu(dx_leaf->dl_list.de_count)); in ocfs2_dx_dir_format_cluster()
3516 static int ocfs2_dx_leaf_same_major(struct ocfs2_dx_leaf *dx_leaf) in ocfs2_dx_leaf_same_major() argument
3518 struct ocfs2_dx_entry_list *dl_list = &dx_leaf->dl_list; in ocfs2_dx_leaf_same_major()
3540 static int ocfs2_dx_dir_find_leaf_split(struct ocfs2_dx_leaf *dx_leaf, in ocfs2_dx_dir_find_leaf_split() argument
3544 struct ocfs2_dx_entry_list *dl_list = &dx_leaf->dl_list; in ocfs2_dx_dir_find_leaf_split()
3556 allsame = ocfs2_dx_leaf_same_major(dx_leaf); in ocfs2_dx_dir_find_leaf_split()
3692 struct ocfs2_dx_leaf *dx_leaf = (struct ocfs2_dx_leaf *)dx_leaf_bh->b_data; in ocfs2_dx_dir_rebalance() local
3719 num_used = le16_to_cpu(dx_leaf->dl_list.de_num_used); in ocfs2_dx_dir_rebalance()
3720 if (num_used < le16_to_cpu(dx_leaf->dl_list.de_count)) { in ocfs2_dx_dir_rebalance()
3774 sort(dx_leaf->dl_list.de_entries, num_used, in ocfs2_dx_dir_rebalance()
3780 ret = ocfs2_dx_dir_find_leaf_split(dx_leaf, leaf_cpos, insert_hash, in ocfs2_dx_dir_rebalance()
3890 struct ocfs2_dx_leaf *dx_leaf; in ocfs2_find_dir_space_dx() local
3910 dx_leaf = (struct ocfs2_dx_leaf *)dx_leaf_bh->b_data; in ocfs2_find_dir_space_dx()
3912 if (le16_to_cpu(dx_leaf->dl_list.de_num_used) >= in ocfs2_find_dir_space_dx()
3913 le16_to_cpu(dx_leaf->dl_list.de_count)) { in ocfs2_find_dir_space_dx()