Lines Matching refs:totsize
519 hdr->totsize = cpu_to_be16(sizeof(*hdr)); in xfs_attr_shortform_create()
571 be16_add_cpu(&sf->hdr.totsize, size); in xfs_attr_shortform_add()
604 int base, size=0, end, totsize, i; in xfs_attr_shortform_remove() local
634 totsize = be16_to_cpu(sf->hdr.totsize); in xfs_attr_shortform_remove()
635 if (end != totsize) in xfs_attr_shortform_remove()
636 memmove(&((char *)sf)[base], &((char *)sf)[end], totsize - end); in xfs_attr_shortform_remove()
638 be16_add_cpu(&sf->hdr.totsize, -size); in xfs_attr_shortform_remove()
643 totsize -= size; in xfs_attr_shortform_remove()
644 if (totsize == sizeof(xfs_attr_sf_hdr_t) && in xfs_attr_shortform_remove()
651 dp->i_d.di_forkoff = xfs_attr_shortform_bytesfit(dp, totsize); in xfs_attr_shortform_remove()
653 ASSERT(totsize > sizeof(xfs_attr_sf_hdr_t) || in xfs_attr_shortform_remove()
756 size = be16_to_cpu(sf->hdr.totsize); in xfs_attr_shortform_to_leaf()