Lines Matching refs:totsize
666 hdr->totsize = cpu_to_be16(sizeof(*hdr)); in xfs_attr_shortform_create()
755 be16_add_cpu(&sf->hdr.totsize, size); in xfs_attr_shortform_add()
788 int size = 0, end, totsize; in xfs_attr_sf_removename() local
809 totsize = be16_to_cpu(sf->hdr.totsize); in xfs_attr_sf_removename()
810 if (end != totsize) in xfs_attr_sf_removename()
811 memmove(&((char *)sf)[base], &((char *)sf)[end], totsize - end); in xfs_attr_sf_removename()
813 be16_add_cpu(&sf->hdr.totsize, -size); in xfs_attr_sf_removename()
818 totsize -= size; in xfs_attr_sf_removename()
819 if (totsize == sizeof(xfs_attr_sf_hdr_t) && xfs_has_attr2(mp) && in xfs_attr_sf_removename()
825 dp->i_forkoff = xfs_attr_shortform_bytesfit(dp, totsize); in xfs_attr_sf_removename()
827 ASSERT(totsize > sizeof(xfs_attr_sf_hdr_t) || in xfs_attr_sf_removename()
919 size = be16_to_cpu(sf->hdr.totsize); in xfs_attr_shortform_to_leaf()