• Home
  • Raw
  • Download

Lines Matching refs:leafhdr

69 	struct xfs_dir3_icleaf_hdr leafhdr;  in xfs_dir3_leafn_check()  local
71 xfs_dir3_leaf_hdr_from_disk(&leafhdr, leaf); in xfs_dir3_leafn_check()
73 if (leafhdr.magic == XFS_DIR3_LEAFN_MAGIC) { in xfs_dir3_leafn_check()
77 } else if (leafhdr.magic != XFS_DIR2_LEAFN_MAGIC) in xfs_dir3_leafn_check()
80 return xfs_dir3_leaf_check_int(mp, &leafhdr, leaf); in xfs_dir3_leafn_check()
434 struct xfs_dir3_icleaf_hdr leafhdr; in xfs_dir2_leafn_add() local
443 xfs_dir3_leaf_hdr_from_disk(&leafhdr, leaf); in xfs_dir2_leafn_add()
460 if (leafhdr.count == xfs_dir3_max_leaf_ents(mp, leaf)) { in xfs_dir2_leafn_add()
461 if (!leafhdr.stale) in xfs_dir2_leafn_add()
463 compact = leafhdr.stale > 1; in xfs_dir2_leafn_add()
467 ASSERT(index == leafhdr.count || in xfs_dir2_leafn_add()
478 xfs_dir3_leaf_compact_x1(&leafhdr, ents, &index, &lowstale, in xfs_dir2_leafn_add()
480 else if (leafhdr.stale) { in xfs_dir2_leafn_add()
484 lfloglow = leafhdr.count; in xfs_dir2_leafn_add()
491 lep = xfs_dir3_leaf_find_entry(&leafhdr, ents, index, compact, lowstale, in xfs_dir2_leafn_add()
498 xfs_dir3_leaf_hdr_to_disk(leaf, &leafhdr); in xfs_dir2_leafn_add()
535 struct xfs_dir3_icleaf_hdr leafhdr; in xfs_dir2_leafn_lasthash() local
537 xfs_dir3_leaf_hdr_from_disk(&leafhdr, leaf); in xfs_dir2_leafn_lasthash()
539 ASSERT(leafhdr.magic == XFS_DIR2_LEAFN_MAGIC || in xfs_dir2_leafn_lasthash()
540 leafhdr.magic == XFS_DIR3_LEAFN_MAGIC); in xfs_dir2_leafn_lasthash()
543 *count = leafhdr.count; in xfs_dir2_leafn_lasthash()
544 if (!leafhdr.count) in xfs_dir2_leafn_lasthash()
548 return be32_to_cpu(ents[leafhdr.count - 1].hashval); in xfs_dir2_leafn_lasthash()
578 struct xfs_dir3_icleaf_hdr leafhdr; in xfs_dir2_leafn_lookup_for_addname() local
584 xfs_dir3_leaf_hdr_from_disk(&leafhdr, leaf); in xfs_dir2_leafn_lookup_for_addname()
588 ASSERT(leafhdr.count > 0); in xfs_dir2_leafn_lookup_for_addname()
610 index < leafhdr.count && be32_to_cpu(lep->hashval) == args->hashval; in xfs_dir2_leafn_lookup_for_addname()
728 struct xfs_dir3_icleaf_hdr leafhdr; in xfs_dir2_leafn_lookup_for_entry() local
734 xfs_dir3_leaf_hdr_from_disk(&leafhdr, leaf); in xfs_dir2_leafn_lookup_for_entry()
738 ASSERT(leafhdr.count > 0); in xfs_dir2_leafn_lookup_for_entry()
755 index < leafhdr.count && be32_to_cpu(lep->hashval) == args->hashval; in xfs_dir2_leafn_lookup_for_entry()
829 ASSERT(index == leafhdr.count || (args->op_flags & XFS_DA_OP_OKNOENT)); in xfs_dir2_leafn_lookup_for_entry()
1212 struct xfs_dir3_icleaf_hdr leafhdr; in xfs_dir2_leafn_remove() local
1221 xfs_dir3_leaf_hdr_from_disk(&leafhdr, leaf); in xfs_dir2_leafn_remove()
1241 leafhdr.stale++; in xfs_dir2_leafn_remove()
1242 xfs_dir3_leaf_hdr_to_disk(leaf, &leafhdr); in xfs_dir2_leafn_remove()
1341 (uint)sizeof(ents[0]) * (leafhdr.count - leafhdr.stale)) < in xfs_dir2_leafn_remove()
1431 struct xfs_dir3_icleaf_hdr leafhdr; in xfs_dir2_leafn_toosmall() local
1441 xfs_dir3_leaf_hdr_from_disk(&leafhdr, leaf); in xfs_dir2_leafn_toosmall()
1445 count = leafhdr.count - leafhdr.stale; in xfs_dir2_leafn_toosmall()
1465 forward = (leafhdr.forw != 0); in xfs_dir2_leafn_toosmall()
1481 forward = leafhdr.forw < leafhdr.back; in xfs_dir2_leafn_toosmall()
1485 blkno = forward ? leafhdr.forw : leafhdr.back; in xfs_dir2_leafn_toosmall()
1499 count = leafhdr.count - leafhdr.stale; in xfs_dir2_leafn_toosmall()