Lines Matching refs:leaf
75 STATIC int xfs_attr_leaf_entsize(xfs_attr_leafblock_t *leaf, int index);
241 struct xfs_attr_leafblock *leaf, in xfs_attr3_leaf_verify_entry() argument
269 lentry = xfs_attr3_leaf_name_local(leaf, idx); in xfs_attr3_leaf_verify_entry()
276 rentry = xfs_attr3_leaf_name_remote(leaf, idx); in xfs_attr3_leaf_verify_entry()
315 struct xfs_attr_leafblock *leaf = bp->b_addr; in xfs_attr3_leaf_verify() local
324 xfs_attr3_leaf_hdr_from_disk(mp->m_attr_geo, &ichdr, leaf); in xfs_attr3_leaf_verify()
336 if (ichdr.firstused < xfs_attr3_leaf_hdr_size(leaf)) in xfs_attr3_leaf_verify()
354 fa = xfs_attr3_leaf_verify_entry(mp, buf_end, leaf, &ichdr, in xfs_attr3_leaf_verify()
1010 struct xfs_attr_leafblock *leaf; in xfs_attr_shortform_allfit() local
1018 leaf = bp->b_addr; in xfs_attr_shortform_allfit()
1019 xfs_attr3_leaf_hdr_from_disk(mp->m_attr_geo, &leafhdr, leaf); in xfs_attr_shortform_allfit()
1020 entry = xfs_attr3_leaf_entryp(leaf); in xfs_attr_shortform_allfit()
1028 name_loc = xfs_attr3_leaf_name_local(leaf, i); in xfs_attr_shortform_allfit()
1128 struct xfs_attr_leafblock *leaf; in xfs_attr3_leaf_to_shortform() local
1146 leaf = (xfs_attr_leafblock_t *)tmpbuffer; in xfs_attr3_leaf_to_shortform()
1147 xfs_attr3_leaf_hdr_from_disk(args->geo, &ichdr, leaf); in xfs_attr3_leaf_to_shortform()
1148 entry = xfs_attr3_leaf_entryp(leaf); in xfs_attr3_leaf_to_shortform()
1194 name_loc = xfs_attr3_leaf_name_local(leaf, i); in xfs_attr3_leaf_to_shortform()
1217 struct xfs_attr_leafblock *leaf; in xfs_attr3_leaf_to_node() local
1266 leaf = bp2->b_addr; in xfs_attr3_leaf_to_node()
1267 xfs_attr3_leaf_hdr_from_disk(args->geo, &icleafhdr, leaf); in xfs_attr3_leaf_to_node()
1268 entries = xfs_attr3_leaf_entryp(leaf); in xfs_attr3_leaf_to_node()
1295 struct xfs_attr_leafblock *leaf; in xfs_attr3_leaf_create() local
1310 leaf = bp->b_addr; in xfs_attr3_leaf_create()
1311 memset(leaf, 0, args->geo->blksize); in xfs_attr3_leaf_create()
1332 xfs_attr3_leaf_hdr_to_disk(args->geo, leaf, &ichdr); in xfs_attr3_leaf_create()
1406 struct xfs_attr_leafblock *leaf; in xfs_attr3_leaf_add() local
1416 leaf = bp->b_addr; in xfs_attr3_leaf_add()
1417 xfs_attr3_leaf_hdr_from_disk(args->geo, &ichdr, leaf); in xfs_attr3_leaf_add()
1426 + xfs_attr3_leaf_hdr_size(leaf); in xfs_attr3_leaf_add()
1470 xfs_attr3_leaf_hdr_to_disk(args->geo, leaf, &ichdr); in xfs_attr3_leaf_add()
1472 XFS_DA_LOGRANGE(leaf, &leaf->hdr, in xfs_attr3_leaf_add()
1473 xfs_attr3_leaf_hdr_size(leaf))); in xfs_attr3_leaf_add()
1487 struct xfs_attr_leafblock *leaf; in xfs_attr3_leaf_add_work() local
1497 leaf = bp->b_addr; in xfs_attr3_leaf_add_work()
1504 entry = &xfs_attr3_leaf_entryp(leaf)[args->index]; in xfs_attr3_leaf_add_work()
1510 XFS_DA_LOGRANGE(leaf, entry, tmp + sizeof(*entry))); in xfs_attr3_leaf_add_work()
1542 XFS_DA_LOGRANGE(leaf, entry, sizeof(*entry))); in xfs_attr3_leaf_add_work()
1556 name_loc = xfs_attr3_leaf_name_local(leaf, args->index); in xfs_attr3_leaf_add_work()
1563 name_rmt = xfs_attr3_leaf_name_remote(leaf, args->index); in xfs_attr3_leaf_add_work()
1575 XFS_DA_LOGRANGE(leaf, xfs_attr3_leaf_name(leaf, args->index), in xfs_attr3_leaf_add_work()
1576 xfs_attr_leaf_entsize(leaf, args->index))); in xfs_attr3_leaf_add_work()
1585 + xfs_attr3_leaf_hdr_size(leaf)); in xfs_attr3_leaf_add_work()
1587 + xfs_attr3_leaf_hdr_size(leaf); in xfs_attr3_leaf_add_work()
1597 ichdr->usedbytes += xfs_attr_leaf_entsize(leaf, args->index); in xfs_attr3_leaf_add_work()
2006 struct xfs_attr_leafblock *leaf; in xfs_attr3_leaf_toosmall() local
2025 leaf = blk->bp->b_addr; in xfs_attr3_leaf_toosmall()
2026 xfs_attr3_leaf_hdr_from_disk(state->args->geo, &ichdr, leaf); in xfs_attr3_leaf_toosmall()
2027 bytes = xfs_attr3_leaf_hdr_size(leaf) + in xfs_attr3_leaf_toosmall()
2089 xfs_attr3_leaf_hdr_size(leaf); in xfs_attr3_leaf_toosmall()
2133 struct xfs_attr_leafblock *leaf; in xfs_attr3_leaf_remove() local
2146 leaf = bp->b_addr; in xfs_attr3_leaf_remove()
2147 xfs_attr3_leaf_hdr_from_disk(args->geo, &ichdr, leaf); in xfs_attr3_leaf_remove()
2152 xfs_attr3_leaf_hdr_size(leaf)); in xfs_attr3_leaf_remove()
2154 entry = &xfs_attr3_leaf_entryp(leaf)[args->index]; in xfs_attr3_leaf_remove()
2166 + xfs_attr3_leaf_hdr_size(leaf); in xfs_attr3_leaf_remove()
2170 entsize = xfs_attr_leaf_entsize(leaf, args->index); in xfs_attr3_leaf_remove()
2228 memset(xfs_attr3_leaf_name(leaf, args->index), 0, entsize); in xfs_attr3_leaf_remove()
2231 XFS_DA_LOGRANGE(leaf, xfs_attr3_leaf_name(leaf, args->index), in xfs_attr3_leaf_remove()
2238 XFS_DA_LOGRANGE(leaf, entry, tmp + sizeof(xfs_attr_leaf_entry_t))); in xfs_attr3_leaf_remove()
2240 entry = &xfs_attr3_leaf_entryp(leaf)[ichdr.count]; in xfs_attr3_leaf_remove()
2251 entry = xfs_attr3_leaf_entryp(leaf); in xfs_attr3_leaf_remove()
2264 xfs_attr3_leaf_hdr_to_disk(args->geo, leaf, &ichdr); in xfs_attr3_leaf_remove()
2266 XFS_DA_LOGRANGE(leaf, &leaf->hdr, in xfs_attr3_leaf_remove()
2267 xfs_attr3_leaf_hdr_size(leaf))); in xfs_attr3_leaf_remove()
2273 tmp = ichdr.usedbytes + xfs_attr3_leaf_hdr_size(leaf) + in xfs_attr3_leaf_remove()
2413 struct xfs_attr_leafblock *leaf; in xfs_attr3_leaf_lookup_int() local
2425 leaf = bp->b_addr; in xfs_attr3_leaf_lookup_int()
2426 xfs_attr3_leaf_hdr_from_disk(args->geo, &ichdr, leaf); in xfs_attr3_leaf_lookup_int()
2427 entries = xfs_attr3_leaf_entryp(leaf); in xfs_attr3_leaf_lookup_int()
2483 name_loc = xfs_attr3_leaf_name_local(leaf, probe); in xfs_attr3_leaf_lookup_int()
2490 name_rmt = xfs_attr3_leaf_name_remote(leaf, probe); in xfs_attr3_leaf_lookup_int()
2520 struct xfs_attr_leafblock *leaf; in xfs_attr3_leaf_getvalue() local
2526 leaf = bp->b_addr; in xfs_attr3_leaf_getvalue()
2527 xfs_attr3_leaf_hdr_from_disk(args->geo, &ichdr, leaf); in xfs_attr3_leaf_getvalue()
2531 entry = &xfs_attr3_leaf_entryp(leaf)[args->index]; in xfs_attr3_leaf_getvalue()
2533 name_loc = xfs_attr3_leaf_name_local(leaf, args->index); in xfs_attr3_leaf_getvalue()
2541 name_rmt = xfs_attr3_leaf_name_remote(leaf, args->index); in xfs_attr3_leaf_getvalue()
2727 xfs_attr_leaf_entsize(xfs_attr_leafblock_t *leaf, int index) in xfs_attr_leaf_entsize() argument
2734 entries = xfs_attr3_leaf_entryp(leaf); in xfs_attr_leaf_entsize()
2736 name_loc = xfs_attr3_leaf_name_local(leaf, index); in xfs_attr_leaf_entsize()
2740 name_rmt = xfs_attr3_leaf_name_remote(leaf, index); in xfs_attr_leaf_entsize()
2782 struct xfs_attr_leafblock *leaf; in xfs_attr3_leaf_clearflag() local
2802 leaf = bp->b_addr; in xfs_attr3_leaf_clearflag()
2803 entry = &xfs_attr3_leaf_entryp(leaf)[args->index]; in xfs_attr3_leaf_clearflag()
2807 xfs_attr3_leaf_hdr_from_disk(args->geo, &ichdr, leaf); in xfs_attr3_leaf_clearflag()
2812 name_loc = xfs_attr3_leaf_name_local(leaf, args->index); in xfs_attr3_leaf_clearflag()
2816 name_rmt = xfs_attr3_leaf_name_remote(leaf, args->index); in xfs_attr3_leaf_clearflag()
2827 XFS_DA_LOGRANGE(leaf, entry, sizeof(*entry))); in xfs_attr3_leaf_clearflag()
2831 name_rmt = xfs_attr3_leaf_name_remote(leaf, args->index); in xfs_attr3_leaf_clearflag()
2835 XFS_DA_LOGRANGE(leaf, name_rmt, sizeof(*name_rmt))); in xfs_attr3_leaf_clearflag()
2848 struct xfs_attr_leafblock *leaf; in xfs_attr3_leaf_setflag() local
2866 leaf = bp->b_addr; in xfs_attr3_leaf_setflag()
2868 xfs_attr3_leaf_hdr_from_disk(args->geo, &ichdr, leaf); in xfs_attr3_leaf_setflag()
2872 entry = &xfs_attr3_leaf_entryp(leaf)[args->index]; in xfs_attr3_leaf_setflag()
2877 XFS_DA_LOGRANGE(leaf, entry, sizeof(*entry))); in xfs_attr3_leaf_setflag()
2879 name_rmt = xfs_attr3_leaf_name_remote(leaf, args->index); in xfs_attr3_leaf_setflag()
2883 XFS_DA_LOGRANGE(leaf, name_rmt, sizeof(*name_rmt))); in xfs_attr3_leaf_setflag()