Home
last modified time | relevance | path

Searched refs:leafhdr (Results 1 – 8 of 8) sorted by relevance

/linux-4.1.27/fs/xfs/libxfs/
Dxfs_dir2_leaf.c64 struct xfs_dir3_icleaf_hdr leafhdr; in xfs_dir3_leaf1_check() local
66 dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); in xfs_dir3_leaf1_check()
68 if (leafhdr.magic == XFS_DIR3_LEAF1_MAGIC) { in xfs_dir3_leaf1_check()
72 } else if (leafhdr.magic != XFS_DIR2_LEAF1_MAGIC) in xfs_dir3_leaf1_check()
75 return xfs_dir3_leaf_check_int(dp->i_mount, dp, &leafhdr, leaf); in xfs_dir3_leaf1_check()
93 struct xfs_dir3_icleaf_hdr leafhdr; in xfs_dir3_leaf_check_int() local
103 ops->leaf_hdr_from_disk(&leafhdr, leaf); in xfs_dir3_leaf_check_int()
104 hdr = &leafhdr; in xfs_dir3_leaf_check_int()
390 struct xfs_dir3_icleaf_hdr leafhdr; in xfs_dir2_block_to_leaf() local
424 dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); in xfs_dir2_block_to_leaf()
[all …]
Dxfs_dir2_node.c67 struct xfs_dir3_icleaf_hdr leafhdr; in xfs_dir3_leafn_check() local
69 dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); in xfs_dir3_leafn_check()
71 if (leafhdr.magic == XFS_DIR3_LEAFN_MAGIC) { in xfs_dir3_leafn_check()
75 } else if (leafhdr.magic != XFS_DIR2_LEAFN_MAGIC) in xfs_dir3_leafn_check()
78 return xfs_dir3_leaf_check_int(dp->i_mount, dp, &leafhdr, leaf); in xfs_dir3_leafn_check()
386 struct xfs_dir3_icleaf_hdr leafhdr; in xfs_dir2_leafn_add() local
393 dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); in xfs_dir2_leafn_add()
410 if (leafhdr.count == dp->d_ops->leaf_max_ents(args->geo)) { in xfs_dir2_leafn_add()
411 if (!leafhdr.stale) in xfs_dir2_leafn_add()
413 compact = leafhdr.stale > 1; in xfs_dir2_leafn_add()
[all …]
Dxfs_dir2_priv.h68 struct xfs_dir3_icleaf_hdr *leafhdr, struct xfs_buf *bp);
69 extern void xfs_dir3_leaf_compact_x1(struct xfs_dir3_icleaf_hdr *leafhdr,
86 xfs_dir3_leaf_find_entry(struct xfs_dir3_icleaf_hdr *leafhdr,
Dxfs_dir2_block.c922 struct xfs_dir3_icleaf_hdr leafhdr; in xfs_dir2_leaf_to_block() local
930 dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); in xfs_dir2_leaf_to_block()
934 ASSERT(leafhdr.magic == XFS_DIR2_LEAF1_MAGIC || in xfs_dir2_leaf_to_block()
935 leafhdr.magic == XFS_DIR3_LEAF1_MAGIC); in xfs_dir2_leaf_to_block()
972 (uint)sizeof(*lep) * (leafhdr.count - leafhdr.stale); in xfs_dir2_leaf_to_block()
1001 btp->count = cpu_to_be32(leafhdr.count - leafhdr.stale); in xfs_dir2_leaf_to_block()
1008 for (from = to = 0; from < leafhdr.count; from++) { in xfs_dir2_leaf_to_block()
Dxfs_da_btree.c554 struct xfs_dir3_icleaf_hdr leafhdr; in xfs_da3_root_split() local
558 dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); in xfs_da3_root_split()
561 ASSERT(leafhdr.magic == XFS_DIR2_LEAFN_MAGIC || in xfs_da3_root_split()
562 leafhdr.magic == XFS_DIR3_LEAFN_MAGIC); in xfs_da3_root_split()
563 size = (int)((char *)&ents[leafhdr.count] - (char *)leaf); in xfs_da3_root_split()
2177 struct xfs_dir3_icleaf_hdr leafhdr; in xfs_da3_swap_lastblock() local
2181 dp->d_ops->leaf_hdr_from_disk(&leafhdr, dead_leaf2); in xfs_da3_swap_lastblock()
2184 dead_hash = be32_to_cpu(ents[leafhdr.count - 1].hashval); in xfs_da3_swap_lastblock()
Dxfs_attr_leaf.c833 struct xfs_attr3_icleaf_hdr leafhdr; in xfs_attr_shortform_allfit() local
839 xfs_attr3_leaf_hdr_from_disk(mp->m_attr_geo, &leafhdr, leaf); in xfs_attr_shortform_allfit()
843 for (i = 0; i < leafhdr.count; entry++, i++) { in xfs_attr_shortform_allfit()
/linux-4.1.27/fs/xfs/
Dxfs_attr_list.c224 struct xfs_attr3_icleaf_hdr leafhdr; in xfs_attr_node_list() local
263 &leafhdr, leaf); in xfs_attr_node_list()
266 entries[leafhdr.count - 1].hashval)) { in xfs_attr_node_list()
347 xfs_attr3_leaf_hdr_from_disk(mp->m_attr_geo, &leafhdr, leaf); in xfs_attr_node_list()
348 if (context->seen_enough || leafhdr.forw == 0) in xfs_attr_node_list()
350 cursor->blkno = leafhdr.forw; in xfs_attr_node_list()
/linux-4.1.27/fs/btrfs/
Dcheck-integrity.c1000 struct btrfs_leaf *const leafhdr = in btrfsic_process_metablock() local
1004 sf->nr = btrfs_stack_header_nritems(&leafhdr->header); in btrfsic_process_metablock()
1012 &leafhdr->header), in btrfsic_process_metablock()
1014 &leafhdr->header)); in btrfsic_process_metablock()
1026 (uintptr_t)(leafhdr->items + sf->i) - in btrfsic_process_metablock()
1027 (uintptr_t)leafhdr; in btrfsic_process_metablock()