Lines Matching refs:dx_leaf
611 struct ocfs2_dx_leaf *dx_leaf = (struct ocfs2_dx_leaf *)bh->b_data; in ocfs2_validate_dx_leaf() local
615 ret = ocfs2_validate_meta_ecc(sb, bh->b_data, &dx_leaf->dl_check); in ocfs2_validate_dx_leaf()
623 if (!OCFS2_IS_VALID_DX_LEAF(dx_leaf)) { in ocfs2_validate_dx_leaf()
625 7, dx_leaf->dl_signature); in ocfs2_validate_dx_leaf()
897 struct ocfs2_dx_leaf *dx_leaf; in ocfs2_dx_dir_search() local
930 dx_leaf = (struct ocfs2_dx_leaf *) dx_leaf_bh->b_data; in ocfs2_dx_dir_search()
933 le16_to_cpu(dx_leaf->dl_list.de_num_used), in ocfs2_dx_dir_search()
934 le16_to_cpu(dx_leaf->dl_list.de_count)); in ocfs2_dx_dir_search()
936 entry_list = &dx_leaf->dl_list; in ocfs2_dx_dir_search()
1235 struct ocfs2_dx_leaf *dx_leaf; in ocfs2_delete_entry_dx() local
1256 dx_leaf = (struct ocfs2_dx_leaf *) lookup->dl_dx_leaf_bh->b_data; in ocfs2_delete_entry_dx()
1257 entry_list = &dx_leaf->dl_list; in ocfs2_delete_entry_dx()
1425 static void ocfs2_dx_dir_leaf_insert_tail(struct ocfs2_dx_leaf *dx_leaf, in ocfs2_dx_dir_leaf_insert_tail() argument
1430 i = le16_to_cpu(dx_leaf->dl_list.de_num_used); in ocfs2_dx_dir_leaf_insert_tail()
1431 dx_leaf->dl_list.de_entries[i] = *dx_new_entry; in ocfs2_dx_dir_leaf_insert_tail()
1433 le16_add_cpu(&dx_leaf->dl_list.de_num_used, 1); in ocfs2_dx_dir_leaf_insert_tail()
1460 struct ocfs2_dx_leaf *dx_leaf; in __ocfs2_dx_dir_leaf_insert() local
1469 dx_leaf = (struct ocfs2_dx_leaf *)dx_leaf_bh->b_data; in __ocfs2_dx_dir_leaf_insert()
1470 ocfs2_dx_entry_list_insert(&dx_leaf->dl_list, hinfo, dirent_blk); in __ocfs2_dx_dir_leaf_insert()
2380 struct ocfs2_dx_leaf *dx_leaf; in ocfs2_dx_dir_format_cluster() local
2400 dx_leaf = (struct ocfs2_dx_leaf *) bh->b_data; in ocfs2_dx_dir_format_cluster()
2402 memset(dx_leaf, 0, osb->sb->s_blocksize); in ocfs2_dx_dir_format_cluster()
2403 strcpy(dx_leaf->dl_signature, OCFS2_DX_LEAF_SIGNATURE); in ocfs2_dx_dir_format_cluster()
2404 dx_leaf->dl_fs_generation = cpu_to_le32(osb->fs_generation); in ocfs2_dx_dir_format_cluster()
2405 dx_leaf->dl_blkno = cpu_to_le64(bh->b_blocknr); in ocfs2_dx_dir_format_cluster()
2406 dx_leaf->dl_list.de_count = in ocfs2_dx_dir_format_cluster()
2412 le16_to_cpu(dx_leaf->dl_list.de_count)); in ocfs2_dx_dir_format_cluster()
3514 static int ocfs2_dx_leaf_same_major(struct ocfs2_dx_leaf *dx_leaf) in ocfs2_dx_leaf_same_major() argument
3516 struct ocfs2_dx_entry_list *dl_list = &dx_leaf->dl_list; in ocfs2_dx_leaf_same_major()
3538 static int ocfs2_dx_dir_find_leaf_split(struct ocfs2_dx_leaf *dx_leaf, in ocfs2_dx_dir_find_leaf_split() argument
3542 struct ocfs2_dx_entry_list *dl_list = &dx_leaf->dl_list; in ocfs2_dx_dir_find_leaf_split()
3554 allsame = ocfs2_dx_leaf_same_major(dx_leaf); in ocfs2_dx_dir_find_leaf_split()
3690 struct ocfs2_dx_leaf *dx_leaf = (struct ocfs2_dx_leaf *)dx_leaf_bh->b_data; in ocfs2_dx_dir_rebalance() local
3717 num_used = le16_to_cpu(dx_leaf->dl_list.de_num_used); in ocfs2_dx_dir_rebalance()
3718 if (num_used < le16_to_cpu(dx_leaf->dl_list.de_count)) { in ocfs2_dx_dir_rebalance()
3772 sort(dx_leaf->dl_list.de_entries, num_used, in ocfs2_dx_dir_rebalance()
3778 ret = ocfs2_dx_dir_find_leaf_split(dx_leaf, leaf_cpos, insert_hash, in ocfs2_dx_dir_rebalance()
3888 struct ocfs2_dx_leaf *dx_leaf; in ocfs2_find_dir_space_dx() local
3908 dx_leaf = (struct ocfs2_dx_leaf *)dx_leaf_bh->b_data; in ocfs2_find_dir_space_dx()
3910 if (le16_to_cpu(dx_leaf->dl_list.de_num_used) >= in ocfs2_find_dir_space_dx()
3911 le16_to_cpu(dx_leaf->dl_list.de_count)) { in ocfs2_find_dir_space_dx()