Lines Matching refs:totsize
549 hdr->totsize = cpu_to_be16(sizeof(*hdr)); in xfs_attr_shortform_create()
601 be16_add_cpu(&sf->hdr.totsize, size); in xfs_attr_shortform_add()
634 int base, size=0, end, totsize, i; in xfs_attr_shortform_remove() local
664 totsize = be16_to_cpu(sf->hdr.totsize); in xfs_attr_shortform_remove()
665 if (end != totsize) in xfs_attr_shortform_remove()
666 memmove(&((char *)sf)[base], &((char *)sf)[end], totsize - end); in xfs_attr_shortform_remove()
668 be16_add_cpu(&sf->hdr.totsize, -size); in xfs_attr_shortform_remove()
673 totsize -= size; in xfs_attr_shortform_remove()
674 if (totsize == sizeof(xfs_attr_sf_hdr_t) && in xfs_attr_shortform_remove()
681 dp->i_d.di_forkoff = xfs_attr_shortform_bytesfit(dp, totsize); in xfs_attr_shortform_remove()
683 ASSERT(totsize > sizeof(xfs_attr_sf_hdr_t) || in xfs_attr_shortform_remove()
789 size = be16_to_cpu(sf->hdr.totsize); in xfs_attr_shortform_to_leaf()