leafhdr 968 fs/btrfs/check-integrity.c struct btrfs_leaf *const leafhdr = leafhdr 972 fs/btrfs/check-integrity.c sf->nr = btrfs_stack_header_nritems(&leafhdr->header); leafhdr 978 fs/btrfs/check-integrity.c &leafhdr->header), leafhdr 980 fs/btrfs/check-integrity.c &leafhdr->header)); leafhdr 992 fs/btrfs/check-integrity.c (uintptr_t)(leafhdr->items + sf->i) - leafhdr 993 fs/btrfs/check-integrity.c (uintptr_t)leafhdr; leafhdr 885 fs/xfs/libxfs/xfs_attr_leaf.c struct xfs_attr3_icleaf_hdr leafhdr; leafhdr 891 fs/xfs/libxfs/xfs_attr_leaf.c xfs_attr3_leaf_hdr_from_disk(mp->m_attr_geo, &leafhdr, leaf); leafhdr 895 fs/xfs/libxfs/xfs_attr_leaf.c for (i = 0; i < leafhdr.count; entry++, i++) { leafhdr 591 fs/xfs/libxfs/xfs_da_btree.c struct xfs_dir3_icleaf_hdr leafhdr; leafhdr 595 fs/xfs/libxfs/xfs_da_btree.c dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); leafhdr 598 fs/xfs/libxfs/xfs_da_btree.c ASSERT(leafhdr.magic == XFS_DIR2_LEAFN_MAGIC || leafhdr 599 fs/xfs/libxfs/xfs_da_btree.c leafhdr.magic == XFS_DIR3_LEAFN_MAGIC); leafhdr 600 fs/xfs/libxfs/xfs_da_btree.c size = (int)((char *)&ents[leafhdr.count] - (char *)leaf); leafhdr 2239 fs/xfs/libxfs/xfs_da_btree.c struct xfs_dir3_icleaf_hdr leafhdr; leafhdr 2243 fs/xfs/libxfs/xfs_da_btree.c dp->d_ops->leaf_hdr_from_disk(&leafhdr, dead_leaf2); leafhdr 2246 fs/xfs/libxfs/xfs_da_btree.c dead_hash = be32_to_cpu(ents[leafhdr.count - 1].hashval); leafhdr 918 fs/xfs/libxfs/xfs_dir2_block.c struct xfs_dir3_icleaf_hdr leafhdr; leafhdr 926 fs/xfs/libxfs/xfs_dir2_block.c dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); leafhdr 930 fs/xfs/libxfs/xfs_dir2_block.c ASSERT(leafhdr.magic == XFS_DIR2_LEAF1_MAGIC || leafhdr 931 fs/xfs/libxfs/xfs_dir2_block.c leafhdr.magic == XFS_DIR3_LEAF1_MAGIC); leafhdr 968 fs/xfs/libxfs/xfs_dir2_block.c (uint)sizeof(*lep) * (leafhdr.count - leafhdr.stale); leafhdr 999 fs/xfs/libxfs/xfs_dir2_block.c btp->count = cpu_to_be32(leafhdr.count - leafhdr.stale); leafhdr 1006 fs/xfs/libxfs/xfs_dir2_block.c for (from = to = 0; from < leafhdr.count; from++) { leafhdr 44 fs/xfs/libxfs/xfs_dir2_leaf.c struct xfs_dir3_icleaf_hdr leafhdr; leafhdr 46 fs/xfs/libxfs/xfs_dir2_leaf.c dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); leafhdr 48 fs/xfs/libxfs/xfs_dir2_leaf.c if (leafhdr.magic == XFS_DIR3_LEAF1_MAGIC) { leafhdr 52 fs/xfs/libxfs/xfs_dir2_leaf.c } else if (leafhdr.magic != XFS_DIR2_LEAF1_MAGIC) leafhdr 55 fs/xfs/libxfs/xfs_dir2_leaf.c return xfs_dir3_leaf_check_int(dp->i_mount, dp, &leafhdr, leaf); leafhdr 89 fs/xfs/libxfs/xfs_dir2_leaf.c struct xfs_dir3_icleaf_hdr leafhdr; leafhdr 99 fs/xfs/libxfs/xfs_dir2_leaf.c ops->leaf_hdr_from_disk(&leafhdr, leaf); leafhdr 100 fs/xfs/libxfs/xfs_dir2_leaf.c hdr = &leafhdr; leafhdr 350 fs/xfs/libxfs/xfs_dir2_leaf.c struct xfs_dir3_icleaf_hdr leafhdr; leafhdr 384 fs/xfs/libxfs/xfs_dir2_leaf.c dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); leafhdr 385 fs/xfs/libxfs/xfs_dir2_leaf.c leafhdr.count = be32_to_cpu(btp->count); leafhdr 386 fs/xfs/libxfs/xfs_dir2_leaf.c leafhdr.stale = be32_to_cpu(btp->stale); leafhdr 387 fs/xfs/libxfs/xfs_dir2_leaf.c dp->d_ops->leaf_hdr_to_disk(leaf, &leafhdr); leafhdr 395 fs/xfs/libxfs/xfs_dir2_leaf.c xfs_dir3_leaf_log_ents(args, lbp, 0, leafhdr.count - 1); leafhdr 439 fs/xfs/libxfs/xfs_dir2_leaf.c struct xfs_dir3_icleaf_hdr *leafhdr, leafhdr 459 fs/xfs/libxfs/xfs_dir2_leaf.c for (*highstale = index; *highstale < leafhdr->count; ++*highstale) { leafhdr 470 fs/xfs/libxfs/xfs_dir2_leaf.c struct xfs_dir3_icleaf_hdr *leafhdr, leafhdr 479 fs/xfs/libxfs/xfs_dir2_leaf.c if (!leafhdr->stale) { leafhdr 488 fs/xfs/libxfs/xfs_dir2_leaf.c if (index < leafhdr->count) leafhdr 490 fs/xfs/libxfs/xfs_dir2_leaf.c (leafhdr->count - index) * sizeof(*lep)); leafhdr 496 fs/xfs/libxfs/xfs_dir2_leaf.c *lfloghigh = leafhdr->count++; leafhdr 510 fs/xfs/libxfs/xfs_dir2_leaf.c xfs_dir3_leaf_find_stale(leafhdr, ents, index, leafhdr 517 fs/xfs/libxfs/xfs_dir2_leaf.c (highstale == leafhdr->count || leafhdr 534 fs/xfs/libxfs/xfs_dir2_leaf.c leafhdr->stale--; leafhdr 554 fs/xfs/libxfs/xfs_dir2_leaf.c leafhdr->stale--; leafhdr 565 fs/xfs/libxfs/xfs_dir2_leaf.c struct xfs_dir3_icleaf_hdr leafhdr; leafhdr 611 fs/xfs/libxfs/xfs_dir2_leaf.c dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); leafhdr 622 fs/xfs/libxfs/xfs_dir2_leaf.c index < leafhdr.count && be32_to_cpu(lep->hashval) == args->hashval; leafhdr 655 fs/xfs/libxfs/xfs_dir2_leaf.c if (!leafhdr.stale) leafhdr 670 fs/xfs/libxfs/xfs_dir2_leaf.c if ((char *)bestsp - (char *)&ents[leafhdr.count] < needbytes && leafhdr 671 fs/xfs/libxfs/xfs_dir2_leaf.c leafhdr.stale > 1) leafhdr 678 fs/xfs/libxfs/xfs_dir2_leaf.c else if ((char *)bestsp - (char *)&ents[leafhdr.count] < needbytes) { leafhdr 726 fs/xfs/libxfs/xfs_dir2_leaf.c xfs_dir3_leaf_compact_x1(&leafhdr, ents, &index, &lowstale, leafhdr 733 fs/xfs/libxfs/xfs_dir2_leaf.c else if (leafhdr.stale) { leafhdr 734 fs/xfs/libxfs/xfs_dir2_leaf.c lfloglow = leafhdr.count; leafhdr 842 fs/xfs/libxfs/xfs_dir2_leaf.c lep = xfs_dir3_leaf_find_entry(&leafhdr, ents, index, compact, lowstale, leafhdr 855 fs/xfs/libxfs/xfs_dir2_leaf.c dp->d_ops->leaf_hdr_to_disk(leaf, &leafhdr); leafhdr 870 fs/xfs/libxfs/xfs_dir2_leaf.c struct xfs_dir3_icleaf_hdr *leafhdr, leafhdr 881 fs/xfs/libxfs/xfs_dir2_leaf.c if (!leafhdr->stale) leafhdr 888 fs/xfs/libxfs/xfs_dir2_leaf.c for (from = to = 0, loglow = -1; from < leafhdr->count; from++) { leafhdr 904 fs/xfs/libxfs/xfs_dir2_leaf.c ASSERT(leafhdr->stale == from - to); leafhdr 905 fs/xfs/libxfs/xfs_dir2_leaf.c leafhdr->count -= leafhdr->stale; leafhdr 906 fs/xfs/libxfs/xfs_dir2_leaf.c leafhdr->stale = 0; leafhdr 908 fs/xfs/libxfs/xfs_dir2_leaf.c dp->d_ops->leaf_hdr_to_disk(leaf, leafhdr); leafhdr 924 fs/xfs/libxfs/xfs_dir2_leaf.c struct xfs_dir3_icleaf_hdr *leafhdr, leafhdr 940 fs/xfs/libxfs/xfs_dir2_leaf.c ASSERT(leafhdr->stale > 1); leafhdr 943 fs/xfs/libxfs/xfs_dir2_leaf.c xfs_dir3_leaf_find_stale(leafhdr, ents, index, &lowstale, &highstale); leafhdr 949 fs/xfs/libxfs/xfs_dir2_leaf.c (highstale == leafhdr->count || leafhdr 958 fs/xfs/libxfs/xfs_dir2_leaf.c for (from = to = 0; from < leafhdr->count; from++) { leafhdr 993 fs/xfs/libxfs/xfs_dir2_leaf.c leafhdr->count -= from - to; leafhdr 994 fs/xfs/libxfs/xfs_dir2_leaf.c leafhdr->stale = 1; leafhdr 1002 fs/xfs/libxfs/xfs_dir2_leaf.c highstale = leafhdr->count; leafhdr 1003 fs/xfs/libxfs/xfs_dir2_leaf.c *highlogp = leafhdr->count - 1; leafhdr 1186 fs/xfs/libxfs/xfs_dir2_leaf.c struct xfs_dir3_icleaf_hdr leafhdr; leafhdr 1200 fs/xfs/libxfs/xfs_dir2_leaf.c dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); leafhdr 1211 fs/xfs/libxfs/xfs_dir2_leaf.c index < leafhdr.count && be32_to_cpu(lep->hashval) == args->hashval; leafhdr 1318 fs/xfs/libxfs/xfs_dir2_leaf.c struct xfs_dir3_icleaf_hdr leafhdr; leafhdr 1333 fs/xfs/libxfs/xfs_dir2_leaf.c dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); leafhdr 1357 fs/xfs/libxfs/xfs_dir2_leaf.c leafhdr.stale++; leafhdr 1358 fs/xfs/libxfs/xfs_dir2_leaf.c dp->d_ops->leaf_hdr_to_disk(leaf, &leafhdr); leafhdr 1508 fs/xfs/libxfs/xfs_dir2_leaf.c struct xfs_dir3_icleaf_hdr leafhdr; leafhdr 1512 fs/xfs/libxfs/xfs_dir2_leaf.c args->dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); leafhdr 1518 fs/xfs/libxfs/xfs_dir2_leaf.c for (lep = ents, low = 0, high = leafhdr.count - 1, leafhdr 1649 fs/xfs/libxfs/xfs_dir2_leaf.c struct xfs_dir3_icleaf_hdr leafhdr; leafhdr 1700 fs/xfs/libxfs/xfs_dir2_leaf.c dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); leafhdr 1702 fs/xfs/libxfs/xfs_dir2_leaf.c ASSERT(leafhdr.magic == XFS_DIR2_LEAFN_MAGIC || leafhdr 1703 fs/xfs/libxfs/xfs_dir2_leaf.c leafhdr.magic == XFS_DIR3_LEAFN_MAGIC); leafhdr 1720 fs/xfs/libxfs/xfs_dir2_leaf.c if (xfs_dir3_leaf_size(&leafhdr, freehdr.nvalid) > args->geo->blksize) { leafhdr 1728 fs/xfs/libxfs/xfs_dir2_leaf.c if (leafhdr.stale) leafhdr 1729 fs/xfs/libxfs/xfs_dir2_leaf.c xfs_dir3_leaf_compact(args, &leafhdr, lbp); leafhdr 1733 fs/xfs/libxfs/xfs_dir2_leaf.c leafhdr.magic = (leafhdr.magic == XFS_DIR2_LEAFN_MAGIC) leafhdr 1749 fs/xfs/libxfs/xfs_dir2_leaf.c dp->d_ops->leaf_hdr_to_disk(leaf, &leafhdr); leafhdr 46 fs/xfs/libxfs/xfs_dir2_node.c struct xfs_dir3_icleaf_hdr leafhdr; leafhdr 48 fs/xfs/libxfs/xfs_dir2_node.c dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); leafhdr 50 fs/xfs/libxfs/xfs_dir2_node.c if (leafhdr.magic == XFS_DIR3_LEAFN_MAGIC) { leafhdr 54 fs/xfs/libxfs/xfs_dir2_node.c } else if (leafhdr.magic != XFS_DIR2_LEAFN_MAGIC) leafhdr 57 fs/xfs/libxfs/xfs_dir2_node.c return xfs_dir3_leaf_check_int(dp->i_mount, dp, &leafhdr, leaf); leafhdr 428 fs/xfs/libxfs/xfs_dir2_node.c struct xfs_dir3_icleaf_hdr leafhdr; leafhdr 441 fs/xfs/libxfs/xfs_dir2_node.c dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); leafhdr 458 fs/xfs/libxfs/xfs_dir2_node.c if (leafhdr.count == dp->d_ops->leaf_max_ents(args->geo)) { leafhdr 459 fs/xfs/libxfs/xfs_dir2_node.c if (!leafhdr.stale) leafhdr 461 fs/xfs/libxfs/xfs_dir2_node.c compact = leafhdr.stale > 1; leafhdr 465 fs/xfs/libxfs/xfs_dir2_node.c ASSERT(index == leafhdr.count || leafhdr 476 fs/xfs/libxfs/xfs_dir2_node.c xfs_dir3_leaf_compact_x1(&leafhdr, ents, &index, &lowstale, leafhdr 478 fs/xfs/libxfs/xfs_dir2_node.c else if (leafhdr.stale) { leafhdr 482 fs/xfs/libxfs/xfs_dir2_node.c lfloglow = leafhdr.count; leafhdr 489 fs/xfs/libxfs/xfs_dir2_node.c lep = xfs_dir3_leaf_find_entry(&leafhdr, ents, index, compact, lowstale, leafhdr 496 fs/xfs/libxfs/xfs_dir2_node.c dp->d_ops->leaf_hdr_to_disk(leaf, &leafhdr); leafhdr 535 fs/xfs/libxfs/xfs_dir2_node.c struct xfs_dir3_icleaf_hdr leafhdr; leafhdr 537 fs/xfs/libxfs/xfs_dir2_node.c dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); leafhdr 539 fs/xfs/libxfs/xfs_dir2_node.c ASSERT(leafhdr.magic == XFS_DIR2_LEAFN_MAGIC || leafhdr 540 fs/xfs/libxfs/xfs_dir2_node.c leafhdr.magic == XFS_DIR3_LEAFN_MAGIC || leafhdr 541 fs/xfs/libxfs/xfs_dir2_node.c leafhdr.magic == XFS_DIR2_LEAF1_MAGIC || leafhdr 542 fs/xfs/libxfs/xfs_dir2_node.c leafhdr.magic == XFS_DIR3_LEAF1_MAGIC); leafhdr 545 fs/xfs/libxfs/xfs_dir2_node.c *count = leafhdr.count; leafhdr 546 fs/xfs/libxfs/xfs_dir2_node.c if (!leafhdr.count) leafhdr 550 fs/xfs/libxfs/xfs_dir2_node.c return be32_to_cpu(ents[leafhdr.count - 1].hashval); leafhdr 580 fs/xfs/libxfs/xfs_dir2_node.c struct xfs_dir3_icleaf_hdr leafhdr; leafhdr 586 fs/xfs/libxfs/xfs_dir2_node.c dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); leafhdr 590 fs/xfs/libxfs/xfs_dir2_node.c ASSERT(leafhdr.count > 0); leafhdr 612 fs/xfs/libxfs/xfs_dir2_node.c index < leafhdr.count && be32_to_cpu(lep->hashval) == args->hashval; leafhdr 732 fs/xfs/libxfs/xfs_dir2_node.c struct xfs_dir3_icleaf_hdr leafhdr; leafhdr 738 fs/xfs/libxfs/xfs_dir2_node.c dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); leafhdr 742 fs/xfs/libxfs/xfs_dir2_node.c if (leafhdr.count <= 0) leafhdr 760 fs/xfs/libxfs/xfs_dir2_node.c index < leafhdr.count && be32_to_cpu(lep->hashval) == args->hashval; leafhdr 838 fs/xfs/libxfs/xfs_dir2_node.c ASSERT(index == leafhdr.count || (args->op_flags & XFS_DA_OP_OKNOENT)); leafhdr 1217 fs/xfs/libxfs/xfs_dir2_node.c struct xfs_dir3_icleaf_hdr leafhdr; leafhdr 1225 fs/xfs/libxfs/xfs_dir2_node.c dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); leafhdr 1245 fs/xfs/libxfs/xfs_dir2_node.c leafhdr.stale++; leafhdr 1246 fs/xfs/libxfs/xfs_dir2_node.c dp->d_ops->leaf_hdr_to_disk(leaf, &leafhdr); leafhdr 1347 fs/xfs/libxfs/xfs_dir2_node.c (uint)sizeof(ents[0]) * (leafhdr.count - leafhdr.stale)) < leafhdr 1436 fs/xfs/libxfs/xfs_dir2_node.c struct xfs_dir3_icleaf_hdr leafhdr; leafhdr 1447 fs/xfs/libxfs/xfs_dir2_node.c dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); leafhdr 1451 fs/xfs/libxfs/xfs_dir2_node.c count = leafhdr.count - leafhdr.stale; leafhdr 1471 fs/xfs/libxfs/xfs_dir2_node.c forward = (leafhdr.forw != 0); leafhdr 1487 fs/xfs/libxfs/xfs_dir2_node.c forward = leafhdr.forw < leafhdr.back; leafhdr 1491 fs/xfs/libxfs/xfs_dir2_node.c blkno = forward ? leafhdr.forw : leafhdr.back; leafhdr 1505 fs/xfs/libxfs/xfs_dir2_node.c count = leafhdr.count - leafhdr.stale; leafhdr 58 fs/xfs/libxfs/xfs_dir2_priv.h struct xfs_dir3_icleaf_hdr *leafhdr, struct xfs_buf *bp); leafhdr 59 fs/xfs/libxfs/xfs_dir2_priv.h extern void xfs_dir3_leaf_compact_x1(struct xfs_dir3_icleaf_hdr *leafhdr, leafhdr 76 fs/xfs/libxfs/xfs_dir2_priv.h xfs_dir3_leaf_find_entry(struct xfs_dir3_icleaf_hdr *leafhdr, leafhdr 217 fs/xfs/scrub/attr.c struct xfs_attr3_icleaf_hdr *leafhdr) leafhdr 228 fs/xfs/scrub/attr.c leafhdr->freemap[i].base, leafhdr 229 fs/xfs/scrub/attr.c leafhdr->freemap[i].size)) leafhdr 247 fs/xfs/scrub/attr.c struct xfs_attr3_icleaf_hdr *leafhdr, leafhdr 270 fs/xfs/scrub/attr.c if (nameidx < leafhdr->firstused || leafhdr 306 fs/xfs/scrub/attr.c struct xfs_attr3_icleaf_hdr leafhdr; leafhdr 350 fs/xfs/scrub/attr.c xfs_attr3_leaf_hdr_from_disk(mp->m_attr_geo, &leafhdr, leaf); leafhdr 353 fs/xfs/scrub/attr.c if (leafhdr.usedbytes > mp->m_attr_geo->blksize) leafhdr 355 fs/xfs/scrub/attr.c if (leafhdr.firstused > mp->m_attr_geo->blksize) leafhdr 357 fs/xfs/scrub/attr.c if (leafhdr.firstused < hdrsize) leafhdr 366 fs/xfs/scrub/attr.c if ((char *)&entries[leafhdr.count] > (char *)leaf + leafhdr.firstused) leafhdr 370 fs/xfs/scrub/attr.c for (i = 0, ent = entries; i < leafhdr.count; ent++, i++) { leafhdr 380 fs/xfs/scrub/attr.c xchk_xattr_entry(ds, level, buf_end, leaf, &leafhdr, leafhdr 387 fs/xfs/scrub/attr.c if (!xchk_xattr_check_freemap(ds->sc, usedmap, &leafhdr)) leafhdr 390 fs/xfs/scrub/attr.c if (leafhdr.usedbytes != usedbytes) leafhdr 477 fs/xfs/scrub/dir.c struct xfs_dir3_icleaf_hdr leafhdr; leafhdr 501 fs/xfs/scrub/dir.c d_ops->leaf_hdr_from_disk(&leafhdr, leaf); leafhdr 524 fs/xfs/scrub/dir.c if (leafhdr.count > d_ops->leaf_max_ents(geo)) { leafhdr 530 fs/xfs/scrub/dir.c if ((char *)&ents[leafhdr.count] > (char *)bestp) { leafhdr 536 fs/xfs/scrub/dir.c for (i = 0; i < leafhdr.count; i++) { leafhdr 544 fs/xfs/scrub/dir.c if (leafhdr.stale != stale) leafhdr 280 fs/xfs/xfs_attr_list.c struct xfs_attr3_icleaf_hdr leafhdr; leafhdr 320 fs/xfs/xfs_attr_list.c &leafhdr, leaf); leafhdr 323 fs/xfs/xfs_attr_list.c entries[leafhdr.count - 1].hashval)) { leafhdr 362 fs/xfs/xfs_attr_list.c xfs_attr3_leaf_hdr_from_disk(mp->m_attr_geo, &leafhdr, leaf); leafhdr 363 fs/xfs/xfs_attr_list.c if (context->seen_enough || leafhdr.forw == 0) leafhdr 365 fs/xfs/xfs_attr_list.c cursor->blkno = leafhdr.forw;