• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/ocfs2/

Lines Matching refs:dx_root

170 	struct ocfs2_dx_root_block *dx_root;
180 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data;
182 trailer->db_free_next = dx_root->dr_free_blk;
183 dx_root->dr_free_blk = cpu_to_le64(dirdata_bh->b_blocknr);
211 static inline int ocfs2_dx_root_inline(struct ocfs2_dx_root_block *dx_root)
213 return dx_root->dr_flags & OCFS2_DX_FLAG_INLINE;
584 struct ocfs2_dx_root_block *dx_root;
588 dx_root = (struct ocfs2_dx_root_block *) bh->b_data;
590 ret = ocfs2_validate_meta_ecc(sb, bh->b_data, &dx_root->dr_check);
598 if (!OCFS2_IS_VALID_DX_ROOT(dx_root)) {
601 (unsigned long long)le64_to_cpu(dx_root->dr_blkno),
602 7, dx_root->dr_signature);
914 struct ocfs2_dx_root_block *dx_root,
930 if (ocfs2_dx_root_inline(dx_root)) {
931 entry_list = &dx_root->dr_entries;
935 dr_el = &dx_root->dr_list;
1032 struct ocfs2_dx_root_block *dx_root;
1047 dx_root = (struct ocfs2_dx_root_block *) dx_root_bh->b_data;
1049 ret = ocfs2_dx_dir_search(name, namelen, dir, dx_root, lookup);
1263 struct ocfs2_dx_root_block *dx_root;
1277 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data;
1278 if (ocfs2_dx_root_inline(dx_root)) {
1279 entry_list = &dx_root->dr_entries;
1327 if (!ocfs2_dx_root_inline(dx_root)) {
1350 trailer->db_free_next = dx_root->dr_free_blk;
1351 dx_root->dr_free_blk = cpu_to_le64(leaf_bh->b_blocknr);
1358 le32_add_cpu(&dx_root->dr_num_entries, -1);
1363 if (!ocfs2_dx_root_inline(dx_root))
1505 struct ocfs2_dx_root_block *dx_root)
1507 ocfs2_dx_entry_list_insert(&dx_root->dr_entries, hinfo, dirent_blk);
1514 struct ocfs2_dx_root_block *dx_root;
1524 dx_root = (struct ocfs2_dx_root_block *)lookup->dl_dx_root_bh->b_data;
1525 if (ocfs2_dx_root_inline(dx_root)) {
1529 dx_root);
1538 le32_add_cpu(&dx_root->dr_num_entries, 1);
1550 struct ocfs2_dx_root_block *dx_root;
1557 dx_root = (struct ocfs2_dx_root_block *)bh->b_data;
1558 dx_root->dr_free_blk = trailer->db_free_next;
2158 struct ocfs2_dx_root_block *dx_root;
2174 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data;
2176 if (le32_to_cpu(dx_root->dr_num_entries) != 2)
2369 struct ocfs2_dx_root_block *dx_root;
2398 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data;
2399 memset(dx_root, 0, osb->sb->s_blocksize);
2400 strcpy(dx_root->dr_signature, OCFS2_DX_ROOT_SIGNATURE);
2401 dx_root->dr_suballoc_slot = cpu_to_le16(meta_ac->ac_alloc_slot);
2402 dx_root->dr_suballoc_loc = cpu_to_le64(suballoc_loc);
2403 dx_root->dr_suballoc_bit = cpu_to_le16(dr_suballoc_bit);
2404 dx_root->dr_fs_generation = cpu_to_le32(osb->fs_generation);
2405 dx_root->dr_blkno = cpu_to_le64(dr_blkno);
2406 dx_root->dr_dir_blkno = cpu_to_le64(OCFS2_I(dir)->ip_blkno);
2407 dx_root->dr_num_entries = cpu_to_le32(num_entries);
2409 dx_root->dr_free_blk = cpu_to_le64(dirdata_bh->b_blocknr);
2411 dx_root->dr_free_blk = cpu_to_le64(0);
2414 dx_root->dr_flags |= OCFS2_DX_FLAG_INLINE;
2415 dx_root->dr_entries.de_count =
2418 dx_root->dr_list.l_count =
2585 struct ocfs2_dx_root_block *dx_root;
2612 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data;
2613 entry_list = &dx_root->dr_entries;
2701 struct ocfs2_dx_root_block *dx_root;
2706 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data;
2723 le16_to_cpu(dx_root->dr_entries.de_num_used),
2726 ocfs2_dx_entry_list_insert(&dx_root->dr_entries, &hinfo,
2729 le32_add_cpu(&dx_root->dr_num_entries, 1);
2875 /* This gets us the dx_root */
2993 * be correctly set once the dx_root has been
3324 * dx_root */
3743 struct ocfs2_dx_root_block *dx_root)
3747 credits += ocfs2_calc_extend_credits(osb->sb, &dx_root->dr_list, 1);
3772 struct ocfs2_dx_root_block *dx_root;
3781 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data;
3782 if (le32_to_cpu(dx_root->dr_clusters) == UINT_MAX)
3815 credits = ocfs2_dx_dir_rebalance_credits(osb, dx_root);
3954 struct ocfs2_dx_root_block *dx_root;
3960 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data;
3963 ret = ocfs2_dx_dir_lookup(dir, &dx_root->dr_list, &lookup->dl_hinfo,
4023 struct ocfs2_dx_root_block *dx_root;
4025 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data;
4026 next_block = le64_to_cpu(dx_root->dr_free_blk);
4071 struct ocfs2_dx_root_block *dx_root;
4122 * Transfer the entries from our dx_root into the appropriate
4125 dx_root = (struct ocfs2_dx_root_block *) dx_root_bh->b_data;
4126 entry_list = &dx_root->dr_entries;
4141 dx_root->dr_flags &= ~OCFS2_DX_FLAG_INLINE;
4142 memset(&dx_root->dr_list, 0, osb->sb->s_blocksize -
4144 dx_root->dr_list.l_count =
4148 * dx_root. */
4178 struct ocfs2_dx_root_block *dx_root;
4181 dx_root = (struct ocfs2_dx_root_block *) dx_root_bh->b_data;
4182 entry_list = &dx_root->dr_entries;
4202 struct ocfs2_dx_root_block *dx_root;
4210 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data;
4211 if (le32_to_cpu(dx_root->dr_num_entries) == OCFS2_DX_ENTRIES_MAX) {
4217 if (ocfs2_dx_root_inline(dx_root)) {
4261 /* Do this up here - ocfs2_extend_dir might need the dx_root */
4377 struct ocfs2_dx_root_block *dx_root;
4385 dx_root = (struct ocfs2_dx_root_block *) dx_root_bh->b_data;
4389 le16_to_cpu(dx_root->dr_suballoc_slot));
4423 blk = le64_to_cpu(dx_root->dr_blkno);
4424 bit = le16_to_cpu(dx_root->dr_suballoc_bit);
4425 if (dx_root->dr_suballoc_loc)
4426 bg_blkno = le64_to_cpu(dx_root->dr_suballoc_loc);
4456 struct ocfs2_dx_root_block *dx_root;
4471 dx_root = (struct ocfs2_dx_root_block *)dx_root_bh->b_data;
4473 if (ocfs2_dx_root_inline(dx_root))
4478 while (le32_to_cpu(dx_root->dr_clusters)) {
4479 ret = ocfs2_dx_dir_lookup_rec(dir, &dx_root->dr_list,