Lines Matching refs:dx_root

158 	struct ocfs2_dx_root_block *dx_root;
168 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data;
170 trailer->db_free_next = dx_root->dr_free_blk;
171 dx_root->dr_free_blk = cpu_to_le64(dirdata_bh->b_blocknr);
199 static inline int ocfs2_dx_root_inline(struct ocfs2_dx_root_block *dx_root)
201 return dx_root->dr_flags & OCFS2_DX_FLAG_INLINE;
574 struct ocfs2_dx_root_block *dx_root;
578 dx_root = (struct ocfs2_dx_root_block *) bh->b_data;
580 ret = ocfs2_validate_meta_ecc(sb, bh->b_data, &dx_root->dr_check);
588 if (!OCFS2_IS_VALID_DX_ROOT(dx_root)) {
591 (unsigned long long)le64_to_cpu(dx_root->dr_blkno),
592 7, dx_root->dr_signature);
899 struct ocfs2_dx_root_block *dx_root,
915 if (ocfs2_dx_root_inline(dx_root)) {
916 entry_list = &dx_root->dr_entries;
920 dr_el = &dx_root->dr_list;
1019 struct ocfs2_dx_root_block *dx_root;
1034 dx_root = (struct ocfs2_dx_root_block *) dx_root_bh->b_data;
1036 ret = ocfs2_dx_dir_search(name, namelen, dir, dx_root, lookup);
1246 struct ocfs2_dx_root_block *dx_root;
1260 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data;
1261 if (ocfs2_dx_root_inline(dx_root)) {
1262 entry_list = &dx_root->dr_entries;
1310 if (!ocfs2_dx_root_inline(dx_root)) {
1333 trailer->db_free_next = dx_root->dr_free_blk;
1334 dx_root->dr_free_blk = cpu_to_le64(leaf_bh->b_blocknr);
1341 le32_add_cpu(&dx_root->dr_num_entries, -1);
1346 if (!ocfs2_dx_root_inline(dx_root))
1488 struct ocfs2_dx_root_block *dx_root)
1490 ocfs2_dx_entry_list_insert(&dx_root->dr_entries, hinfo, dirent_blk);
1497 struct ocfs2_dx_root_block *dx_root;
1507 dx_root = (struct ocfs2_dx_root_block *)lookup->dl_dx_root_bh->b_data;
1508 if (ocfs2_dx_root_inline(dx_root)) {
1512 dx_root);
1521 le32_add_cpu(&dx_root->dr_num_entries, 1);
1533 struct ocfs2_dx_root_block *dx_root;
1540 dx_root = (struct ocfs2_dx_root_block *)bh->b_data;
1541 dx_root->dr_free_blk = trailer->db_free_next;
2090 struct ocfs2_dx_root_block *dx_root;
2106 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data;
2108 if (le32_to_cpu(dx_root->dr_num_entries) != 2)
2307 struct ocfs2_dx_root_block *dx_root;
2336 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data;
2337 memset(dx_root, 0, osb->sb->s_blocksize);
2338 strcpy(dx_root->dr_signature, OCFS2_DX_ROOT_SIGNATURE);
2339 dx_root->dr_suballoc_slot = cpu_to_le16(meta_ac->ac_alloc_slot);
2340 dx_root->dr_suballoc_loc = cpu_to_le64(suballoc_loc);
2341 dx_root->dr_suballoc_bit = cpu_to_le16(dr_suballoc_bit);
2342 dx_root->dr_fs_generation = cpu_to_le32(osb->fs_generation);
2343 dx_root->dr_blkno = cpu_to_le64(dr_blkno);
2344 dx_root->dr_dir_blkno = cpu_to_le64(OCFS2_I(dir)->ip_blkno);
2345 dx_root->dr_num_entries = cpu_to_le32(num_entries);
2347 dx_root->dr_free_blk = cpu_to_le64(dirdata_bh->b_blocknr);
2349 dx_root->dr_free_blk = cpu_to_le64(0);
2352 dx_root->dr_flags |= OCFS2_DX_FLAG_INLINE;
2353 dx_root->dr_entries.de_count =
2356 dx_root->dr_list.l_count =
2530 struct ocfs2_dx_root_block *dx_root;
2557 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data;
2558 entry_list = &dx_root->dr_entries;
2649 struct ocfs2_dx_root_block *dx_root;
2654 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data;
2671 le16_to_cpu(dx_root->dr_entries.de_num_used));
2673 ocfs2_dx_entry_list_insert(&dx_root->dr_entries, &hinfo,
2676 le32_add_cpu(&dx_root->dr_num_entries, 1);
2822 /* This gets us the dx_root */
2941 * be correctly set once the dx_root has been
3270 * dx_root */
3685 struct ocfs2_dx_root_block *dx_root)
3689 credits += ocfs2_calc_extend_credits(osb->sb, &dx_root->dr_list);
3714 struct ocfs2_dx_root_block *dx_root;
3723 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data;
3728 if (le32_to_cpu(dx_root->dr_clusters) == UINT_MAX)
3761 credits = ocfs2_dx_dir_rebalance_credits(osb, dx_root);
3900 struct ocfs2_dx_root_block *dx_root;
3906 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data;
3909 ret = ocfs2_dx_dir_lookup(dir, &dx_root->dr_list, &lookup->dl_hinfo,
3976 struct ocfs2_dx_root_block *dx_root;
3978 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data;
3979 next_block = le64_to_cpu(dx_root->dr_free_blk);
4024 struct ocfs2_dx_root_block *dx_root;
4075 * Transfer the entries from our dx_root into the appropriate
4078 dx_root = (struct ocfs2_dx_root_block *) dx_root_bh->b_data;
4079 entry_list = &dx_root->dr_entries;
4094 dx_root->dr_flags &= ~OCFS2_DX_FLAG_INLINE;
4095 memset(&dx_root->dr_list, 0, osb->sb->s_blocksize -
4097 dx_root->dr_list.l_count =
4101 * dx_root. */
4132 struct ocfs2_dx_root_block *dx_root;
4135 dx_root = (struct ocfs2_dx_root_block *) dx_root_bh->b_data;
4136 entry_list = &dx_root->dr_entries;
4156 struct ocfs2_dx_root_block *dx_root;
4164 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data;
4165 if (le32_to_cpu(dx_root->dr_num_entries) == OCFS2_DX_ENTRIES_MAX) {
4171 if (ocfs2_dx_root_inline(dx_root)) {
4215 /* Do this up here - ocfs2_extend_dir might need the dx_root */
4331 struct ocfs2_dx_root_block *dx_root;
4339 dx_root = (struct ocfs2_dx_root_block *) dx_root_bh->b_data;
4343 le16_to_cpu(dx_root->dr_suballoc_slot));
4380 blk = le64_to_cpu(dx_root->dr_blkno);
4381 bit = le16_to_cpu(dx_root->dr_suballoc_bit);
4382 if (dx_root->dr_suballoc_loc)
4383 bg_blkno = le64_to_cpu(dx_root->dr_suballoc_loc);
4413 struct ocfs2_dx_root_block *dx_root;
4428 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data;
4430 if (ocfs2_dx_root_inline(dx_root))
4436 while (le32_to_cpu(dx_root->dr_clusters)) {
4437 ret = ocfs2_dx_dir_lookup_rec(dir, &dx_root->dr_list,