Lines Matching refs:totsize
515 hdr->totsize = cpu_to_be16(sizeof(*hdr)); in xfs_attr_shortform_create()
567 be16_add_cpu(&sf->hdr.totsize, size); in xfs_attr_shortform_add()
600 int base, size=0, end, totsize, i; in xfs_attr_shortform_remove() local
630 totsize = be16_to_cpu(sf->hdr.totsize); in xfs_attr_shortform_remove()
631 if (end != totsize) in xfs_attr_shortform_remove()
632 memmove(&((char *)sf)[base], &((char *)sf)[end], totsize - end); in xfs_attr_shortform_remove()
634 be16_add_cpu(&sf->hdr.totsize, -size); in xfs_attr_shortform_remove()
639 totsize -= size; in xfs_attr_shortform_remove()
640 if (totsize == sizeof(xfs_attr_sf_hdr_t) && in xfs_attr_shortform_remove()
647 dp->i_d.di_forkoff = xfs_attr_shortform_bytesfit(dp, totsize); in xfs_attr_shortform_remove()
649 ASSERT(totsize > sizeof(xfs_attr_sf_hdr_t) || in xfs_attr_shortform_remove()
752 size = be16_to_cpu(sf->hdr.totsize); in xfs_attr_shortform_to_leaf()