• Home
  • Raw
  • Download

Lines Matching refs:hdr

43 		to->forw = be32_to_cpu(from3->hdr.info.hdr.forw);  in xfs_dir2_leaf_hdr_from_disk()
44 to->back = be32_to_cpu(from3->hdr.info.hdr.back); in xfs_dir2_leaf_hdr_from_disk()
45 to->magic = be16_to_cpu(from3->hdr.info.hdr.magic); in xfs_dir2_leaf_hdr_from_disk()
46 to->count = be16_to_cpu(from3->hdr.count); in xfs_dir2_leaf_hdr_from_disk()
47 to->stale = be16_to_cpu(from3->hdr.stale); in xfs_dir2_leaf_hdr_from_disk()
53 to->forw = be32_to_cpu(from->hdr.info.forw); in xfs_dir2_leaf_hdr_from_disk()
54 to->back = be32_to_cpu(from->hdr.info.back); in xfs_dir2_leaf_hdr_from_disk()
55 to->magic = be16_to_cpu(from->hdr.info.magic); in xfs_dir2_leaf_hdr_from_disk()
56 to->count = be16_to_cpu(from->hdr.count); in xfs_dir2_leaf_hdr_from_disk()
57 to->stale = be16_to_cpu(from->hdr.stale); in xfs_dir2_leaf_hdr_from_disk()
77 to3->hdr.info.hdr.forw = cpu_to_be32(from->forw); in xfs_dir2_leaf_hdr_to_disk()
78 to3->hdr.info.hdr.back = cpu_to_be32(from->back); in xfs_dir2_leaf_hdr_to_disk()
79 to3->hdr.info.hdr.magic = cpu_to_be16(from->magic); in xfs_dir2_leaf_hdr_to_disk()
80 to3->hdr.count = cpu_to_be16(from->count); in xfs_dir2_leaf_hdr_to_disk()
81 to3->hdr.stale = cpu_to_be16(from->stale); in xfs_dir2_leaf_hdr_to_disk()
86 to->hdr.info.forw = cpu_to_be32(from->forw); in xfs_dir2_leaf_hdr_to_disk()
87 to->hdr.info.back = cpu_to_be32(from->back); in xfs_dir2_leaf_hdr_to_disk()
88 to->hdr.info.magic = cpu_to_be16(from->magic); in xfs_dir2_leaf_hdr_to_disk()
89 to->hdr.count = cpu_to_be16(from->count); in xfs_dir2_leaf_hdr_to_disk()
90 to->hdr.stale = cpu_to_be16(from->stale); in xfs_dir2_leaf_hdr_to_disk()
141 struct xfs_dir3_icleaf_hdr *hdr, in xfs_dir3_leaf_check_int() argument
149 bool isleaf1 = (hdr->magic == XFS_DIR2_LEAF1_MAGIC || in xfs_dir3_leaf_check_int()
150 hdr->magic == XFS_DIR3_LEAF1_MAGIC); in xfs_dir3_leaf_check_int()
159 if (hdr->count > geo->leaf_max_ents) in xfs_dir3_leaf_check_int()
164 (char *)&hdr->ents[hdr->count] > (char *)xfs_dir2_leaf_bests_p(ltp)) in xfs_dir3_leaf_check_int()
171 for (i = stale = 0; i < hdr->count; i++) { in xfs_dir3_leaf_check_int()
172 if (i + 1 < hdr->count) { in xfs_dir3_leaf_check_int()
173 if (be32_to_cpu(hdr->ents[i].hashval) > in xfs_dir3_leaf_check_int()
174 be32_to_cpu(hdr->ents[i + 1].hashval)) in xfs_dir3_leaf_check_int()
177 if (hdr->ents[i].address == cpu_to_be32(XFS_DIR2_NULL_DATAPTR)) in xfs_dir3_leaf_check_int()
180 be32_to_cpu(hdr->ents[i].address)) >= in xfs_dir3_leaf_check_int()
184 if (hdr->stale != stale) in xfs_dir3_leaf_check_int()
321 leaf3->info.hdr.magic = (type == XFS_DIR2_LEAF1_MAGIC) in xfs_dir3_leaf_init()
329 leaf->hdr.info.magic = cpu_to_be16(type); in xfs_dir3_leaf_init()
389 xfs_dir2_data_hdr_t *hdr; /* block header */ in xfs_dir2_block_to_leaf() local
426 hdr = dbp->b_addr; in xfs_dir2_block_to_leaf()
428 btp = xfs_dir2_block_tail_p(args->geo, hdr); in xfs_dir2_block_to_leaf()
430 bf = xfs_dir2_data_bestfree_p(dp->i_mount, hdr); in xfs_dir2_block_to_leaf()
455 (xfs_dir2_data_aoff_t)((char *)blp - (char *)hdr), in xfs_dir2_block_to_leaf()
456 (xfs_dir2_data_aoff_t)((char *)hdr + args->geo->blksize - in xfs_dir2_block_to_leaf()
464 if (hdr->magic == cpu_to_be32(XFS_DIR2_BLOCK_MAGIC)) in xfs_dir2_block_to_leaf()
465 hdr->magic = cpu_to_be32(XFS_DIR2_DATA_MAGIC); in xfs_dir2_block_to_leaf()
467 hdr->magic = cpu_to_be32(XFS_DIR3_DATA_MAGIC); in xfs_dir2_block_to_leaf()
470 xfs_dir2_data_freescan(dp->i_mount, hdr, &needlog); in xfs_dir2_block_to_leaf()
625 struct xfs_dir2_data_hdr *hdr; /* data block header */ in xfs_dir2_leaf_addname() local
827 hdr = dbp->b_addr; in xfs_dir2_leaf_addname()
828 bf = xfs_dir2_data_bestfree_p(dp->i_mount, hdr); in xfs_dir2_leaf_addname()
843 hdr = dbp->b_addr; in xfs_dir2_leaf_addname()
844 bf = xfs_dir2_data_bestfree_p(dp->i_mount, hdr); in xfs_dir2_leaf_addname()
851 ((char *)hdr + be16_to_cpu(bf[0].offset)); in xfs_dir2_leaf_addname()
857 (xfs_dir2_data_aoff_t)((char *)dup - (char *)hdr), in xfs_dir2_leaf_addname()
872 *tagp = cpu_to_be16((char *)dep - (char *)hdr); in xfs_dir2_leaf_addname()
877 xfs_dir2_data_freescan(dp->i_mount, hdr, &needlog); in xfs_dir2_leaf_addname()
1074 ASSERT(leaf->hdr.info.magic == cpu_to_be16(XFS_DIR2_LEAF1_MAGIC) || in xfs_dir3_leaf_log_bests()
1075 leaf->hdr.info.magic == cpu_to_be16(XFS_DIR3_LEAF1_MAGIC)); in xfs_dir3_leaf_log_bests()
1091 struct xfs_dir3_icleaf_hdr *hdr, in xfs_dir3_leaf_log_ents() argument
1100 ASSERT(leaf->hdr.info.magic == cpu_to_be16(XFS_DIR2_LEAF1_MAGIC) || in xfs_dir3_leaf_log_ents()
1101 leaf->hdr.info.magic == cpu_to_be16(XFS_DIR3_LEAF1_MAGIC) || in xfs_dir3_leaf_log_ents()
1102 leaf->hdr.info.magic == cpu_to_be16(XFS_DIR2_LEAFN_MAGIC) || in xfs_dir3_leaf_log_ents()
1103 leaf->hdr.info.magic == cpu_to_be16(XFS_DIR3_LEAFN_MAGIC)); in xfs_dir3_leaf_log_ents()
1105 firstlep = &hdr->ents[first]; in xfs_dir3_leaf_log_ents()
1106 lastlep = &hdr->ents[last]; in xfs_dir3_leaf_log_ents()
1122 ASSERT(leaf->hdr.info.magic == cpu_to_be16(XFS_DIR2_LEAF1_MAGIC) || in xfs_dir3_leaf_log_header()
1123 leaf->hdr.info.magic == cpu_to_be16(XFS_DIR3_LEAF1_MAGIC) || in xfs_dir3_leaf_log_header()
1124 leaf->hdr.info.magic == cpu_to_be16(XFS_DIR2_LEAFN_MAGIC) || in xfs_dir3_leaf_log_header()
1125 leaf->hdr.info.magic == cpu_to_be16(XFS_DIR3_LEAFN_MAGIC)); in xfs_dir3_leaf_log_header()
1128 (uint)((char *)&leaf->hdr - (char *)leaf), in xfs_dir3_leaf_log_header()
1143 ASSERT(leaf->hdr.info.magic == cpu_to_be16(XFS_DIR2_LEAF1_MAGIC) || in xfs_dir3_leaf_log_tail()
1144 leaf->hdr.info.magic == cpu_to_be16(XFS_DIR3_LEAF1_MAGIC) || in xfs_dir3_leaf_log_tail()
1145 leaf->hdr.info.magic == cpu_to_be16(XFS_DIR2_LEAFN_MAGIC) || in xfs_dir3_leaf_log_tail()
1146 leaf->hdr.info.magic == cpu_to_be16(XFS_DIR3_LEAFN_MAGIC)); in xfs_dir3_leaf_log_tail()
1350 xfs_dir2_data_hdr_t *hdr; /* data block header */ in xfs_dir2_leaf_removename() local
1379 hdr = dbp->b_addr; in xfs_dir2_leaf_removename()
1381 bf = xfs_dir2_data_bestfree_p(dp->i_mount, hdr); in xfs_dir2_leaf_removename()
1388 dep = (xfs_dir2_data_entry_t *)((char *)hdr + in xfs_dir2_leaf_removename()
1402 (xfs_dir2_data_aoff_t)((char *)dep - (char *)hdr), in xfs_dir2_leaf_removename()
1420 xfs_dir2_data_freescan(dp->i_mount, hdr, &needlog); in xfs_dir2_leaf_removename()
1623 struct xfs_dir2_data_hdr *hdr = dbp->b_addr; in xfs_dir2_leaf_trim_data() local
1625 xfs_dir2_data_bestfree_p(dp->i_mount, hdr); in xfs_dir2_leaf_trim_data()
1627 ASSERT(hdr->magic == cpu_to_be32(XFS_DIR2_DATA_MAGIC) || in xfs_dir2_leaf_trim_data()
1628 hdr->magic == cpu_to_be32(XFS_DIR3_DATA_MAGIC)); in xfs_dir2_leaf_trim_data()
1656 struct xfs_dir3_icleaf_hdr *hdr, in xfs_dir3_leaf_size() argument
1662 entries = hdr->count - hdr->stale; in xfs_dir3_leaf_size()
1663 if (hdr->magic == XFS_DIR2_LEAF1_MAGIC || in xfs_dir3_leaf_size()
1664 hdr->magic == XFS_DIR2_LEAFN_MAGIC) in xfs_dir3_leaf_size()