• Home
  • Raw
  • Download

Lines Matching refs:leafhdr

65 	struct xfs_dir3_icleaf_hdr leafhdr;  in xfs_dir3_leafn_check()  local
67 xfs_dir2_leaf_hdr_from_disk(dp->i_mount, &leafhdr, leaf); in xfs_dir3_leafn_check()
69 if (leafhdr.magic == XFS_DIR3_LEAFN_MAGIC) { in xfs_dir3_leafn_check()
73 } else if (leafhdr.magic != XFS_DIR2_LEAFN_MAGIC) in xfs_dir3_leafn_check()
76 return xfs_dir3_leaf_check_int(dp->i_mount, &leafhdr, leaf, false); in xfs_dir3_leafn_check()
498 struct xfs_dir3_icleaf_hdr leafhdr; in xfs_dir2_leafn_add() local
511 xfs_dir2_leaf_hdr_from_disk(dp->i_mount, &leafhdr, leaf); in xfs_dir2_leafn_add()
512 ents = leafhdr.ents; in xfs_dir2_leafn_add()
530 if (leafhdr.count == args->geo->leaf_max_ents) { in xfs_dir2_leafn_add()
531 if (!leafhdr.stale) in xfs_dir2_leafn_add()
533 compact = leafhdr.stale > 1; in xfs_dir2_leafn_add()
537 ASSERT(index == leafhdr.count || in xfs_dir2_leafn_add()
548 xfs_dir3_leaf_compact_x1(&leafhdr, ents, &index, &lowstale, in xfs_dir2_leafn_add()
550 else if (leafhdr.stale) { in xfs_dir2_leafn_add()
554 lfloglow = leafhdr.count; in xfs_dir2_leafn_add()
561 lep = xfs_dir3_leaf_find_entry(&leafhdr, ents, index, compact, lowstale, in xfs_dir2_leafn_add()
568 xfs_dir2_leaf_hdr_to_disk(dp->i_mount, leaf, &leafhdr); in xfs_dir2_leafn_add()
570 xfs_dir3_leaf_log_ents(args, &leafhdr, bp, lfloglow, lfloghigh); in xfs_dir2_leafn_add()
604 struct xfs_dir3_icleaf_hdr leafhdr; in xfs_dir2_leaf_lasthash() local
606 xfs_dir2_leaf_hdr_from_disk(dp->i_mount, &leafhdr, bp->b_addr); in xfs_dir2_leaf_lasthash()
608 ASSERT(leafhdr.magic == XFS_DIR2_LEAFN_MAGIC || in xfs_dir2_leaf_lasthash()
609 leafhdr.magic == XFS_DIR3_LEAFN_MAGIC || in xfs_dir2_leaf_lasthash()
610 leafhdr.magic == XFS_DIR2_LEAF1_MAGIC || in xfs_dir2_leaf_lasthash()
611 leafhdr.magic == XFS_DIR3_LEAF1_MAGIC); in xfs_dir2_leaf_lasthash()
614 *count = leafhdr.count; in xfs_dir2_leaf_lasthash()
615 if (!leafhdr.count) in xfs_dir2_leaf_lasthash()
617 return be32_to_cpu(leafhdr.ents[leafhdr.count - 1].hashval); in xfs_dir2_leaf_lasthash()
646 struct xfs_dir3_icleaf_hdr leafhdr; in xfs_dir2_leafn_lookup_for_addname() local
652 xfs_dir2_leaf_hdr_from_disk(mp, &leafhdr, leaf); in xfs_dir2_leafn_lookup_for_addname()
655 ASSERT(leafhdr.count > 0); in xfs_dir2_leafn_lookup_for_addname()
676 for (lep = &leafhdr.ents[index]; in xfs_dir2_leafn_lookup_for_addname()
677 index < leafhdr.count && be32_to_cpu(lep->hashval) == args->hashval; in xfs_dir2_leafn_lookup_for_addname()
796 struct xfs_dir3_icleaf_hdr leafhdr; in xfs_dir2_leafn_lookup_for_entry() local
802 xfs_dir2_leaf_hdr_from_disk(mp, &leafhdr, leaf); in xfs_dir2_leafn_lookup_for_entry()
805 if (leafhdr.count <= 0) { in xfs_dir2_leafn_lookup_for_entry()
824 for (lep = &leafhdr.ents[index]; in xfs_dir2_leafn_lookup_for_entry()
825 index < leafhdr.count && be32_to_cpu(lep->hashval) == args->hashval; in xfs_dir2_leafn_lookup_for_entry()
903 ASSERT(index == leafhdr.count || (args->op_flags & XFS_DA_OP_OKNOENT)); in xfs_dir2_leafn_lookup_for_entry()
1282 struct xfs_dir3_icleaf_hdr leafhdr; in xfs_dir2_leafn_remove() local
1289 xfs_dir2_leaf_hdr_from_disk(dp->i_mount, &leafhdr, leaf); in xfs_dir2_leafn_remove()
1294 lep = &leafhdr.ents[index]; in xfs_dir2_leafn_remove()
1308 leafhdr.stale++; in xfs_dir2_leafn_remove()
1309 xfs_dir2_leaf_hdr_to_disk(dp->i_mount, leaf, &leafhdr); in xfs_dir2_leafn_remove()
1313 xfs_dir3_leaf_log_ents(args, &leafhdr, bp, index, index); in xfs_dir2_leafn_remove()
1409 (uint)sizeof(leafhdr.ents) * (leafhdr.count - leafhdr.stale)) < in xfs_dir2_leafn_remove()
1498 struct xfs_dir3_icleaf_hdr leafhdr; in xfs_dir2_leafn_toosmall() local
1509 xfs_dir2_leaf_hdr_from_disk(dp->i_mount, &leafhdr, leaf); in xfs_dir2_leafn_toosmall()
1510 ents = leafhdr.ents; in xfs_dir2_leafn_toosmall()
1513 count = leafhdr.count - leafhdr.stale; in xfs_dir2_leafn_toosmall()
1533 forward = (leafhdr.forw != 0); in xfs_dir2_leafn_toosmall()
1549 forward = leafhdr.forw < leafhdr.back; in xfs_dir2_leafn_toosmall()
1553 blkno = forward ? leafhdr.forw : leafhdr.back; in xfs_dir2_leafn_toosmall()
1566 count = leafhdr.count - leafhdr.stale; in xfs_dir2_leafn_toosmall()
2225 struct xfs_dir3_icleaf_hdr leafhdr; in xfs_dir2_node_replace() local
2234 xfs_dir2_leaf_hdr_from_disk(state->mp, &leafhdr, in xfs_dir2_node_replace()
2245 be32_to_cpu(leafhdr.ents[blk->index].address))); in xfs_dir2_node_replace()