Lines Matching refs:leaf
87 STATIC int xfs_attr_leaf_entsize(xfs_attr_leafblock_t *leaf, int index);
254 struct xfs_attr_leafblock *leaf = bp->b_addr; in xfs_attr3_leaf_verify() local
257 xfs_attr3_leaf_hdr_from_disk(mp->m_attr_geo, &ichdr, leaf); in xfs_attr3_leaf_verify()
830 struct xfs_attr_leafblock *leaf; in xfs_attr_shortform_allfit() local
838 leaf = bp->b_addr; in xfs_attr_shortform_allfit()
839 xfs_attr3_leaf_hdr_from_disk(mp->m_attr_geo, &leafhdr, leaf); in xfs_attr_shortform_allfit()
840 entry = xfs_attr3_leaf_entryp(leaf); in xfs_attr_shortform_allfit()
848 name_loc = xfs_attr3_leaf_name_local(leaf, i); in xfs_attr_shortform_allfit()
873 struct xfs_attr_leafblock *leaf; in xfs_attr3_leaf_to_shortform() local
891 leaf = (xfs_attr_leafblock_t *)tmpbuffer; in xfs_attr3_leaf_to_shortform()
892 xfs_attr3_leaf_hdr_from_disk(args->geo, &ichdr, leaf); in xfs_attr3_leaf_to_shortform()
893 entry = xfs_attr3_leaf_entryp(leaf); in xfs_attr3_leaf_to_shortform()
933 name_loc = xfs_attr3_leaf_name_local(leaf, i); in xfs_attr3_leaf_to_shortform()
956 struct xfs_attr_leafblock *leaf; in xfs_attr3_leaf_to_node() local
1002 leaf = bp2->b_addr; in xfs_attr3_leaf_to_node()
1003 xfs_attr3_leaf_hdr_from_disk(args->geo, &icleafhdr, leaf); in xfs_attr3_leaf_to_node()
1004 entries = xfs_attr3_leaf_entryp(leaf); in xfs_attr3_leaf_to_node()
1031 struct xfs_attr_leafblock *leaf; in xfs_attr3_leaf_create() local
1046 leaf = bp->b_addr; in xfs_attr3_leaf_create()
1047 memset(leaf, 0, args->geo->blksize); in xfs_attr3_leaf_create()
1068 xfs_attr3_leaf_hdr_to_disk(args->geo, leaf, &ichdr); in xfs_attr3_leaf_create()
1142 struct xfs_attr_leafblock *leaf; in xfs_attr3_leaf_add() local
1152 leaf = bp->b_addr; in xfs_attr3_leaf_add()
1153 xfs_attr3_leaf_hdr_from_disk(args->geo, &ichdr, leaf); in xfs_attr3_leaf_add()
1162 + xfs_attr3_leaf_hdr_size(leaf); in xfs_attr3_leaf_add()
1206 xfs_attr3_leaf_hdr_to_disk(args->geo, leaf, &ichdr); in xfs_attr3_leaf_add()
1208 XFS_DA_LOGRANGE(leaf, &leaf->hdr, in xfs_attr3_leaf_add()
1209 xfs_attr3_leaf_hdr_size(leaf))); in xfs_attr3_leaf_add()
1223 struct xfs_attr_leafblock *leaf; in xfs_attr3_leaf_add_work() local
1233 leaf = bp->b_addr; in xfs_attr3_leaf_add_work()
1240 entry = &xfs_attr3_leaf_entryp(leaf)[args->index]; in xfs_attr3_leaf_add_work()
1246 XFS_DA_LOGRANGE(leaf, entry, tmp + sizeof(*entry))); in xfs_attr3_leaf_add_work()
1276 XFS_DA_LOGRANGE(leaf, entry, sizeof(*entry))); in xfs_attr3_leaf_add_work()
1290 name_loc = xfs_attr3_leaf_name_local(leaf, args->index); in xfs_attr3_leaf_add_work()
1297 name_rmt = xfs_attr3_leaf_name_remote(leaf, args->index); in xfs_attr3_leaf_add_work()
1309 XFS_DA_LOGRANGE(leaf, xfs_attr3_leaf_name(leaf, args->index), in xfs_attr3_leaf_add_work()
1310 xfs_attr_leaf_entsize(leaf, args->index))); in xfs_attr3_leaf_add_work()
1319 + xfs_attr3_leaf_hdr_size(leaf)); in xfs_attr3_leaf_add_work()
1321 + xfs_attr3_leaf_hdr_size(leaf); in xfs_attr3_leaf_add_work()
1329 ichdr->usedbytes += xfs_attr_leaf_entsize(leaf, args->index); in xfs_attr3_leaf_add_work()
1745 struct xfs_attr_leafblock *leaf; in xfs_attr3_leaf_toosmall() local
1764 leaf = blk->bp->b_addr; in xfs_attr3_leaf_toosmall()
1765 xfs_attr3_leaf_hdr_from_disk(state->args->geo, &ichdr, leaf); in xfs_attr3_leaf_toosmall()
1766 bytes = xfs_attr3_leaf_hdr_size(leaf) + in xfs_attr3_leaf_toosmall()
1828 xfs_attr3_leaf_hdr_size(leaf); in xfs_attr3_leaf_toosmall()
1872 struct xfs_attr_leafblock *leaf; in xfs_attr3_leaf_remove() local
1885 leaf = bp->b_addr; in xfs_attr3_leaf_remove()
1886 xfs_attr3_leaf_hdr_from_disk(args->geo, &ichdr, leaf); in xfs_attr3_leaf_remove()
1891 xfs_attr3_leaf_hdr_size(leaf)); in xfs_attr3_leaf_remove()
1893 entry = &xfs_attr3_leaf_entryp(leaf)[args->index]; in xfs_attr3_leaf_remove()
1905 + xfs_attr3_leaf_hdr_size(leaf); in xfs_attr3_leaf_remove()
1909 entsize = xfs_attr_leaf_entsize(leaf, args->index); in xfs_attr3_leaf_remove()
1967 memset(xfs_attr3_leaf_name(leaf, args->index), 0, entsize); in xfs_attr3_leaf_remove()
1970 XFS_DA_LOGRANGE(leaf, xfs_attr3_leaf_name(leaf, args->index), in xfs_attr3_leaf_remove()
1977 XFS_DA_LOGRANGE(leaf, entry, tmp + sizeof(xfs_attr_leaf_entry_t))); in xfs_attr3_leaf_remove()
1979 entry = &xfs_attr3_leaf_entryp(leaf)[ichdr.count]; in xfs_attr3_leaf_remove()
1990 entry = xfs_attr3_leaf_entryp(leaf); in xfs_attr3_leaf_remove()
2003 xfs_attr3_leaf_hdr_to_disk(args->geo, leaf, &ichdr); in xfs_attr3_leaf_remove()
2005 XFS_DA_LOGRANGE(leaf, &leaf->hdr, in xfs_attr3_leaf_remove()
2006 xfs_attr3_leaf_hdr_size(leaf))); in xfs_attr3_leaf_remove()
2012 tmp = ichdr.usedbytes + xfs_attr3_leaf_hdr_size(leaf) + in xfs_attr3_leaf_remove()
2152 struct xfs_attr_leafblock *leaf; in xfs_attr3_leaf_lookup_int() local
2164 leaf = bp->b_addr; in xfs_attr3_leaf_lookup_int()
2165 xfs_attr3_leaf_hdr_from_disk(args->geo, &ichdr, leaf); in xfs_attr3_leaf_lookup_int()
2166 entries = xfs_attr3_leaf_entryp(leaf); in xfs_attr3_leaf_lookup_int()
2221 name_loc = xfs_attr3_leaf_name_local(leaf, probe); in xfs_attr3_leaf_lookup_int()
2232 name_rmt = xfs_attr3_leaf_name_remote(leaf, probe); in xfs_attr3_leaf_lookup_int()
2262 struct xfs_attr_leafblock *leaf; in xfs_attr3_leaf_getvalue() local
2269 leaf = bp->b_addr; in xfs_attr3_leaf_getvalue()
2270 xfs_attr3_leaf_hdr_from_disk(args->geo, &ichdr, leaf); in xfs_attr3_leaf_getvalue()
2274 entry = &xfs_attr3_leaf_entryp(leaf)[args->index]; in xfs_attr3_leaf_getvalue()
2276 name_loc = xfs_attr3_leaf_name_local(leaf, args->index); in xfs_attr3_leaf_getvalue()
2291 name_rmt = xfs_attr3_leaf_name_remote(leaf, args->index); in xfs_attr3_leaf_getvalue()
2487 xfs_attr_leaf_entsize(xfs_attr_leafblock_t *leaf, int index) in xfs_attr_leaf_entsize() argument
2494 entries = xfs_attr3_leaf_entryp(leaf); in xfs_attr_leaf_entsize()
2496 name_loc = xfs_attr3_leaf_name_local(leaf, index); in xfs_attr_leaf_entsize()
2500 name_rmt = xfs_attr3_leaf_name_remote(leaf, index); in xfs_attr_leaf_entsize()
2542 struct xfs_attr_leafblock *leaf; in xfs_attr3_leaf_clearflag() local
2562 leaf = bp->b_addr; in xfs_attr3_leaf_clearflag()
2563 entry = &xfs_attr3_leaf_entryp(leaf)[args->index]; in xfs_attr3_leaf_clearflag()
2567 xfs_attr3_leaf_hdr_from_disk(args->geo, &ichdr, leaf); in xfs_attr3_leaf_clearflag()
2572 name_loc = xfs_attr3_leaf_name_local(leaf, args->index); in xfs_attr3_leaf_clearflag()
2576 name_rmt = xfs_attr3_leaf_name_remote(leaf, args->index); in xfs_attr3_leaf_clearflag()
2587 XFS_DA_LOGRANGE(leaf, entry, sizeof(*entry))); in xfs_attr3_leaf_clearflag()
2591 name_rmt = xfs_attr3_leaf_name_remote(leaf, args->index); in xfs_attr3_leaf_clearflag()
2595 XFS_DA_LOGRANGE(leaf, name_rmt, sizeof(*name_rmt))); in xfs_attr3_leaf_clearflag()
2611 struct xfs_attr_leafblock *leaf; in xfs_attr3_leaf_setflag() local
2629 leaf = bp->b_addr; in xfs_attr3_leaf_setflag()
2631 xfs_attr3_leaf_hdr_from_disk(args->geo, &ichdr, leaf); in xfs_attr3_leaf_setflag()
2635 entry = &xfs_attr3_leaf_entryp(leaf)[args->index]; in xfs_attr3_leaf_setflag()
2640 XFS_DA_LOGRANGE(leaf, entry, sizeof(*entry))); in xfs_attr3_leaf_setflag()
2642 name_rmt = xfs_attr3_leaf_name_remote(leaf, args->index); in xfs_attr3_leaf_setflag()
2646 XFS_DA_LOGRANGE(leaf, name_rmt, sizeof(*name_rmt))); in xfs_attr3_leaf_setflag()