Lines Matching refs:leaf

88 STATIC int xfs_attr_leaf_entsize(xfs_attr_leafblock_t *leaf, int index);
255 struct xfs_attr_leafblock *leaf = bp->b_addr; in xfs_attr3_leaf_verify() local
258 xfs_attr3_leaf_hdr_from_disk(mp->m_attr_geo, &ichdr, leaf); in xfs_attr3_leaf_verify()
834 struct xfs_attr_leafblock *leaf; in xfs_attr_shortform_allfit() local
842 leaf = bp->b_addr; in xfs_attr_shortform_allfit()
843 xfs_attr3_leaf_hdr_from_disk(mp->m_attr_geo, &leafhdr, leaf); in xfs_attr_shortform_allfit()
844 entry = xfs_attr3_leaf_entryp(leaf); in xfs_attr_shortform_allfit()
852 name_loc = xfs_attr3_leaf_name_local(leaf, i); in xfs_attr_shortform_allfit()
877 struct xfs_attr_leafblock *leaf; in xfs_attr3_leaf_to_shortform() local
895 leaf = (xfs_attr_leafblock_t *)tmpbuffer; in xfs_attr3_leaf_to_shortform()
896 xfs_attr3_leaf_hdr_from_disk(args->geo, &ichdr, leaf); in xfs_attr3_leaf_to_shortform()
897 entry = xfs_attr3_leaf_entryp(leaf); in xfs_attr3_leaf_to_shortform()
937 name_loc = xfs_attr3_leaf_name_local(leaf, i); in xfs_attr3_leaf_to_shortform()
960 struct xfs_attr_leafblock *leaf; in xfs_attr3_leaf_to_node() local
1006 leaf = bp2->b_addr; in xfs_attr3_leaf_to_node()
1007 xfs_attr3_leaf_hdr_from_disk(args->geo, &icleafhdr, leaf); in xfs_attr3_leaf_to_node()
1008 entries = xfs_attr3_leaf_entryp(leaf); in xfs_attr3_leaf_to_node()
1035 struct xfs_attr_leafblock *leaf; in xfs_attr3_leaf_create() local
1050 leaf = bp->b_addr; in xfs_attr3_leaf_create()
1051 memset(leaf, 0, args->geo->blksize); in xfs_attr3_leaf_create()
1072 xfs_attr3_leaf_hdr_to_disk(args->geo, leaf, &ichdr); in xfs_attr3_leaf_create()
1146 struct xfs_attr_leafblock *leaf; in xfs_attr3_leaf_add() local
1156 leaf = bp->b_addr; in xfs_attr3_leaf_add()
1157 xfs_attr3_leaf_hdr_from_disk(args->geo, &ichdr, leaf); in xfs_attr3_leaf_add()
1166 + xfs_attr3_leaf_hdr_size(leaf); in xfs_attr3_leaf_add()
1210 xfs_attr3_leaf_hdr_to_disk(args->geo, leaf, &ichdr); in xfs_attr3_leaf_add()
1212 XFS_DA_LOGRANGE(leaf, &leaf->hdr, in xfs_attr3_leaf_add()
1213 xfs_attr3_leaf_hdr_size(leaf))); in xfs_attr3_leaf_add()
1227 struct xfs_attr_leafblock *leaf; in xfs_attr3_leaf_add_work() local
1237 leaf = bp->b_addr; in xfs_attr3_leaf_add_work()
1244 entry = &xfs_attr3_leaf_entryp(leaf)[args->index]; in xfs_attr3_leaf_add_work()
1250 XFS_DA_LOGRANGE(leaf, entry, tmp + sizeof(*entry))); in xfs_attr3_leaf_add_work()
1280 XFS_DA_LOGRANGE(leaf, entry, sizeof(*entry))); in xfs_attr3_leaf_add_work()
1294 name_loc = xfs_attr3_leaf_name_local(leaf, args->index); in xfs_attr3_leaf_add_work()
1301 name_rmt = xfs_attr3_leaf_name_remote(leaf, args->index); in xfs_attr3_leaf_add_work()
1313 XFS_DA_LOGRANGE(leaf, xfs_attr3_leaf_name(leaf, args->index), in xfs_attr3_leaf_add_work()
1314 xfs_attr_leaf_entsize(leaf, args->index))); in xfs_attr3_leaf_add_work()
1323 + xfs_attr3_leaf_hdr_size(leaf)); in xfs_attr3_leaf_add_work()
1325 + xfs_attr3_leaf_hdr_size(leaf); in xfs_attr3_leaf_add_work()
1333 ichdr->usedbytes += xfs_attr_leaf_entsize(leaf, args->index); in xfs_attr3_leaf_add_work()
1749 struct xfs_attr_leafblock *leaf; in xfs_attr3_leaf_toosmall() local
1768 leaf = blk->bp->b_addr; in xfs_attr3_leaf_toosmall()
1769 xfs_attr3_leaf_hdr_from_disk(state->args->geo, &ichdr, leaf); in xfs_attr3_leaf_toosmall()
1770 bytes = xfs_attr3_leaf_hdr_size(leaf) + in xfs_attr3_leaf_toosmall()
1832 xfs_attr3_leaf_hdr_size(leaf); in xfs_attr3_leaf_toosmall()
1876 struct xfs_attr_leafblock *leaf; in xfs_attr3_leaf_remove() local
1889 leaf = bp->b_addr; in xfs_attr3_leaf_remove()
1890 xfs_attr3_leaf_hdr_from_disk(args->geo, &ichdr, leaf); in xfs_attr3_leaf_remove()
1895 xfs_attr3_leaf_hdr_size(leaf)); in xfs_attr3_leaf_remove()
1897 entry = &xfs_attr3_leaf_entryp(leaf)[args->index]; in xfs_attr3_leaf_remove()
1909 + xfs_attr3_leaf_hdr_size(leaf); in xfs_attr3_leaf_remove()
1913 entsize = xfs_attr_leaf_entsize(leaf, args->index); in xfs_attr3_leaf_remove()
1971 memset(xfs_attr3_leaf_name(leaf, args->index), 0, entsize); in xfs_attr3_leaf_remove()
1974 XFS_DA_LOGRANGE(leaf, xfs_attr3_leaf_name(leaf, args->index), in xfs_attr3_leaf_remove()
1981 XFS_DA_LOGRANGE(leaf, entry, tmp + sizeof(xfs_attr_leaf_entry_t))); in xfs_attr3_leaf_remove()
1983 entry = &xfs_attr3_leaf_entryp(leaf)[ichdr.count]; in xfs_attr3_leaf_remove()
1994 entry = xfs_attr3_leaf_entryp(leaf); in xfs_attr3_leaf_remove()
2007 xfs_attr3_leaf_hdr_to_disk(args->geo, leaf, &ichdr); in xfs_attr3_leaf_remove()
2009 XFS_DA_LOGRANGE(leaf, &leaf->hdr, in xfs_attr3_leaf_remove()
2010 xfs_attr3_leaf_hdr_size(leaf))); in xfs_attr3_leaf_remove()
2016 tmp = ichdr.usedbytes + xfs_attr3_leaf_hdr_size(leaf) + in xfs_attr3_leaf_remove()
2156 struct xfs_attr_leafblock *leaf; in xfs_attr3_leaf_lookup_int() local
2168 leaf = bp->b_addr; in xfs_attr3_leaf_lookup_int()
2169 xfs_attr3_leaf_hdr_from_disk(args->geo, &ichdr, leaf); in xfs_attr3_leaf_lookup_int()
2170 entries = xfs_attr3_leaf_entryp(leaf); in xfs_attr3_leaf_lookup_int()
2225 name_loc = xfs_attr3_leaf_name_local(leaf, probe); in xfs_attr3_leaf_lookup_int()
2236 name_rmt = xfs_attr3_leaf_name_remote(leaf, probe); in xfs_attr3_leaf_lookup_int()
2266 struct xfs_attr_leafblock *leaf; in xfs_attr3_leaf_getvalue() local
2273 leaf = bp->b_addr; in xfs_attr3_leaf_getvalue()
2274 xfs_attr3_leaf_hdr_from_disk(args->geo, &ichdr, leaf); in xfs_attr3_leaf_getvalue()
2278 entry = &xfs_attr3_leaf_entryp(leaf)[args->index]; in xfs_attr3_leaf_getvalue()
2280 name_loc = xfs_attr3_leaf_name_local(leaf, args->index); in xfs_attr3_leaf_getvalue()
2295 name_rmt = xfs_attr3_leaf_name_remote(leaf, args->index); in xfs_attr3_leaf_getvalue()
2491 xfs_attr_leaf_entsize(xfs_attr_leafblock_t *leaf, int index) in xfs_attr_leaf_entsize() argument
2498 entries = xfs_attr3_leaf_entryp(leaf); in xfs_attr_leaf_entsize()
2500 name_loc = xfs_attr3_leaf_name_local(leaf, index); in xfs_attr_leaf_entsize()
2504 name_rmt = xfs_attr3_leaf_name_remote(leaf, index); in xfs_attr_leaf_entsize()
2546 struct xfs_attr_leafblock *leaf; in xfs_attr3_leaf_clearflag() local
2566 leaf = bp->b_addr; in xfs_attr3_leaf_clearflag()
2567 entry = &xfs_attr3_leaf_entryp(leaf)[args->index]; in xfs_attr3_leaf_clearflag()
2571 xfs_attr3_leaf_hdr_from_disk(args->geo, &ichdr, leaf); in xfs_attr3_leaf_clearflag()
2576 name_loc = xfs_attr3_leaf_name_local(leaf, args->index); in xfs_attr3_leaf_clearflag()
2580 name_rmt = xfs_attr3_leaf_name_remote(leaf, args->index); in xfs_attr3_leaf_clearflag()
2591 XFS_DA_LOGRANGE(leaf, entry, sizeof(*entry))); in xfs_attr3_leaf_clearflag()
2595 name_rmt = xfs_attr3_leaf_name_remote(leaf, args->index); in xfs_attr3_leaf_clearflag()
2599 XFS_DA_LOGRANGE(leaf, name_rmt, sizeof(*name_rmt))); in xfs_attr3_leaf_clearflag()
2615 struct xfs_attr_leafblock *leaf; in xfs_attr3_leaf_setflag() local
2633 leaf = bp->b_addr; in xfs_attr3_leaf_setflag()
2635 xfs_attr3_leaf_hdr_from_disk(args->geo, &ichdr, leaf); in xfs_attr3_leaf_setflag()
2639 entry = &xfs_attr3_leaf_entryp(leaf)[args->index]; in xfs_attr3_leaf_setflag()
2644 XFS_DA_LOGRANGE(leaf, entry, sizeof(*entry))); in xfs_attr3_leaf_setflag()
2646 name_rmt = xfs_attr3_leaf_name_remote(leaf, args->index); in xfs_attr3_leaf_setflag()
2650 XFS_DA_LOGRANGE(leaf, name_rmt, sizeof(*name_rmt))); in xfs_attr3_leaf_setflag()