Lines Matching refs:leaf
73 STATIC int xfs_attr_leaf_entsize(xfs_attr_leafblock_t *leaf, int index);
239 struct xfs_attr_leafblock *leaf, in xfs_attr3_leaf_verify_entry() argument
267 lentry = xfs_attr3_leaf_name_local(leaf, idx); in xfs_attr3_leaf_verify_entry()
274 rentry = xfs_attr3_leaf_name_remote(leaf, idx); in xfs_attr3_leaf_verify_entry()
296 struct xfs_attr_leafblock *leaf = bp->b_addr; in xfs_attr3_leaf_verify() local
305 xfs_attr3_leaf_hdr_from_disk(mp->m_attr_geo, &ichdr, leaf); in xfs_attr3_leaf_verify()
317 if (ichdr.firstused < xfs_attr3_leaf_hdr_size(leaf)) in xfs_attr3_leaf_verify()
335 fa = xfs_attr3_leaf_verify_entry(mp, buf_end, leaf, &ichdr, in xfs_attr3_leaf_verify()
978 struct xfs_attr_leafblock *leaf; in xfs_attr_shortform_allfit() local
986 leaf = bp->b_addr; in xfs_attr_shortform_allfit()
987 xfs_attr3_leaf_hdr_from_disk(mp->m_attr_geo, &leafhdr, leaf); in xfs_attr_shortform_allfit()
988 entry = xfs_attr3_leaf_entryp(leaf); in xfs_attr_shortform_allfit()
996 name_loc = xfs_attr3_leaf_name_local(leaf, i); in xfs_attr_shortform_allfit()
1096 struct xfs_attr_leafblock *leaf; in xfs_attr3_leaf_to_shortform() local
1114 leaf = (xfs_attr_leafblock_t *)tmpbuffer; in xfs_attr3_leaf_to_shortform()
1115 xfs_attr3_leaf_hdr_from_disk(args->geo, &ichdr, leaf); in xfs_attr3_leaf_to_shortform()
1116 entry = xfs_attr3_leaf_entryp(leaf); in xfs_attr3_leaf_to_shortform()
1154 name_loc = xfs_attr3_leaf_name_local(leaf, i); in xfs_attr3_leaf_to_shortform()
1177 struct xfs_attr_leafblock *leaf; in xfs_attr3_leaf_to_node() local
1221 leaf = bp2->b_addr; in xfs_attr3_leaf_to_node()
1222 xfs_attr3_leaf_hdr_from_disk(args->geo, &icleafhdr, leaf); in xfs_attr3_leaf_to_node()
1223 entries = xfs_attr3_leaf_entryp(leaf); in xfs_attr3_leaf_to_node()
1250 struct xfs_attr_leafblock *leaf; in xfs_attr3_leaf_create() local
1265 leaf = bp->b_addr; in xfs_attr3_leaf_create()
1266 memset(leaf, 0, args->geo->blksize); in xfs_attr3_leaf_create()
1287 xfs_attr3_leaf_hdr_to_disk(args->geo, leaf, &ichdr); in xfs_attr3_leaf_create()
1361 struct xfs_attr_leafblock *leaf; in xfs_attr3_leaf_add() local
1371 leaf = bp->b_addr; in xfs_attr3_leaf_add()
1372 xfs_attr3_leaf_hdr_from_disk(args->geo, &ichdr, leaf); in xfs_attr3_leaf_add()
1381 + xfs_attr3_leaf_hdr_size(leaf); in xfs_attr3_leaf_add()
1425 xfs_attr3_leaf_hdr_to_disk(args->geo, leaf, &ichdr); in xfs_attr3_leaf_add()
1427 XFS_DA_LOGRANGE(leaf, &leaf->hdr, in xfs_attr3_leaf_add()
1428 xfs_attr3_leaf_hdr_size(leaf))); in xfs_attr3_leaf_add()
1442 struct xfs_attr_leafblock *leaf; in xfs_attr3_leaf_add_work() local
1452 leaf = bp->b_addr; in xfs_attr3_leaf_add_work()
1459 entry = &xfs_attr3_leaf_entryp(leaf)[args->index]; in xfs_attr3_leaf_add_work()
1465 XFS_DA_LOGRANGE(leaf, entry, tmp + sizeof(*entry))); in xfs_attr3_leaf_add_work()
1496 XFS_DA_LOGRANGE(leaf, entry, sizeof(*entry))); in xfs_attr3_leaf_add_work()
1510 name_loc = xfs_attr3_leaf_name_local(leaf, args->index); in xfs_attr3_leaf_add_work()
1517 name_rmt = xfs_attr3_leaf_name_remote(leaf, args->index); in xfs_attr3_leaf_add_work()
1529 XFS_DA_LOGRANGE(leaf, xfs_attr3_leaf_name(leaf, args->index), in xfs_attr3_leaf_add_work()
1530 xfs_attr_leaf_entsize(leaf, args->index))); in xfs_attr3_leaf_add_work()
1539 + xfs_attr3_leaf_hdr_size(leaf)); in xfs_attr3_leaf_add_work()
1541 + xfs_attr3_leaf_hdr_size(leaf); in xfs_attr3_leaf_add_work()
1551 ichdr->usedbytes += xfs_attr_leaf_entsize(leaf, args->index); in xfs_attr3_leaf_add_work()
1960 struct xfs_attr_leafblock *leaf; in xfs_attr3_leaf_toosmall() local
1979 leaf = blk->bp->b_addr; in xfs_attr3_leaf_toosmall()
1980 xfs_attr3_leaf_hdr_from_disk(state->args->geo, &ichdr, leaf); in xfs_attr3_leaf_toosmall()
1981 bytes = xfs_attr3_leaf_hdr_size(leaf) + in xfs_attr3_leaf_toosmall()
2043 xfs_attr3_leaf_hdr_size(leaf); in xfs_attr3_leaf_toosmall()
2087 struct xfs_attr_leafblock *leaf; in xfs_attr3_leaf_remove() local
2100 leaf = bp->b_addr; in xfs_attr3_leaf_remove()
2101 xfs_attr3_leaf_hdr_from_disk(args->geo, &ichdr, leaf); in xfs_attr3_leaf_remove()
2106 xfs_attr3_leaf_hdr_size(leaf)); in xfs_attr3_leaf_remove()
2108 entry = &xfs_attr3_leaf_entryp(leaf)[args->index]; in xfs_attr3_leaf_remove()
2120 + xfs_attr3_leaf_hdr_size(leaf); in xfs_attr3_leaf_remove()
2124 entsize = xfs_attr_leaf_entsize(leaf, args->index); in xfs_attr3_leaf_remove()
2182 memset(xfs_attr3_leaf_name(leaf, args->index), 0, entsize); in xfs_attr3_leaf_remove()
2185 XFS_DA_LOGRANGE(leaf, xfs_attr3_leaf_name(leaf, args->index), in xfs_attr3_leaf_remove()
2192 XFS_DA_LOGRANGE(leaf, entry, tmp + sizeof(xfs_attr_leaf_entry_t))); in xfs_attr3_leaf_remove()
2194 entry = &xfs_attr3_leaf_entryp(leaf)[ichdr.count]; in xfs_attr3_leaf_remove()
2205 entry = xfs_attr3_leaf_entryp(leaf); in xfs_attr3_leaf_remove()
2218 xfs_attr3_leaf_hdr_to_disk(args->geo, leaf, &ichdr); in xfs_attr3_leaf_remove()
2220 XFS_DA_LOGRANGE(leaf, &leaf->hdr, in xfs_attr3_leaf_remove()
2221 xfs_attr3_leaf_hdr_size(leaf))); in xfs_attr3_leaf_remove()
2227 tmp = ichdr.usedbytes + xfs_attr3_leaf_hdr_size(leaf) + in xfs_attr3_leaf_remove()
2367 struct xfs_attr_leafblock *leaf; in xfs_attr3_leaf_lookup_int() local
2379 leaf = bp->b_addr; in xfs_attr3_leaf_lookup_int()
2380 xfs_attr3_leaf_hdr_from_disk(args->geo, &ichdr, leaf); in xfs_attr3_leaf_lookup_int()
2381 entries = xfs_attr3_leaf_entryp(leaf); in xfs_attr3_leaf_lookup_int()
2437 name_loc = xfs_attr3_leaf_name_local(leaf, probe); in xfs_attr3_leaf_lookup_int()
2444 name_rmt = xfs_attr3_leaf_name_remote(leaf, probe); in xfs_attr3_leaf_lookup_int()
2474 struct xfs_attr_leafblock *leaf; in xfs_attr3_leaf_getvalue() local
2480 leaf = bp->b_addr; in xfs_attr3_leaf_getvalue()
2481 xfs_attr3_leaf_hdr_from_disk(args->geo, &ichdr, leaf); in xfs_attr3_leaf_getvalue()
2485 entry = &xfs_attr3_leaf_entryp(leaf)[args->index]; in xfs_attr3_leaf_getvalue()
2487 name_loc = xfs_attr3_leaf_name_local(leaf, args->index); in xfs_attr3_leaf_getvalue()
2495 name_rmt = xfs_attr3_leaf_name_remote(leaf, args->index); in xfs_attr3_leaf_getvalue()
2681 xfs_attr_leaf_entsize(xfs_attr_leafblock_t *leaf, int index) in xfs_attr_leaf_entsize() argument
2688 entries = xfs_attr3_leaf_entryp(leaf); in xfs_attr_leaf_entsize()
2690 name_loc = xfs_attr3_leaf_name_local(leaf, index); in xfs_attr_leaf_entsize()
2694 name_rmt = xfs_attr3_leaf_name_remote(leaf, index); in xfs_attr_leaf_entsize()
2736 struct xfs_attr_leafblock *leaf; in xfs_attr3_leaf_clearflag() local
2756 leaf = bp->b_addr; in xfs_attr3_leaf_clearflag()
2757 entry = &xfs_attr3_leaf_entryp(leaf)[args->index]; in xfs_attr3_leaf_clearflag()
2761 xfs_attr3_leaf_hdr_from_disk(args->geo, &ichdr, leaf); in xfs_attr3_leaf_clearflag()
2766 name_loc = xfs_attr3_leaf_name_local(leaf, args->index); in xfs_attr3_leaf_clearflag()
2770 name_rmt = xfs_attr3_leaf_name_remote(leaf, args->index); in xfs_attr3_leaf_clearflag()
2781 XFS_DA_LOGRANGE(leaf, entry, sizeof(*entry))); in xfs_attr3_leaf_clearflag()
2785 name_rmt = xfs_attr3_leaf_name_remote(leaf, args->index); in xfs_attr3_leaf_clearflag()
2789 XFS_DA_LOGRANGE(leaf, name_rmt, sizeof(*name_rmt))); in xfs_attr3_leaf_clearflag()
2802 struct xfs_attr_leafblock *leaf; in xfs_attr3_leaf_setflag() local
2820 leaf = bp->b_addr; in xfs_attr3_leaf_setflag()
2822 xfs_attr3_leaf_hdr_from_disk(args->geo, &ichdr, leaf); in xfs_attr3_leaf_setflag()
2826 entry = &xfs_attr3_leaf_entryp(leaf)[args->index]; in xfs_attr3_leaf_setflag()
2831 XFS_DA_LOGRANGE(leaf, entry, sizeof(*entry))); in xfs_attr3_leaf_setflag()
2833 name_rmt = xfs_attr3_leaf_name_remote(leaf, args->index); in xfs_attr3_leaf_setflag()
2837 XFS_DA_LOGRANGE(leaf, name_rmt, sizeof(*name_rmt))); in xfs_attr3_leaf_setflag()