Lines Matching refs:sf

530 	xfs_attr_shortform_t *sf;  in xfs_attr_shortform_add()  local
545 sf = (xfs_attr_shortform_t *)ifp->if_u1.if_data; in xfs_attr_shortform_add()
546 sfe = &sf->list[0]; in xfs_attr_shortform_add()
547 for (i = 0; i < sf->hdr.count; sfe = XFS_ATTR_SF_NEXTENTRY(sfe), i++) { in xfs_attr_shortform_add()
559 offset = (char *)sfe - (char *)sf; in xfs_attr_shortform_add()
562 sf = (xfs_attr_shortform_t *)ifp->if_u1.if_data; in xfs_attr_shortform_add()
563 sfe = (xfs_attr_sf_entry_t *)((char *)sf + offset); in xfs_attr_shortform_add()
570 sf->hdr.count++; in xfs_attr_shortform_add()
571 be16_add_cpu(&sf->hdr.totsize, size); in xfs_attr_shortform_add()
602 xfs_attr_shortform_t *sf; in xfs_attr_shortform_remove() local
613 sf = (xfs_attr_shortform_t *)dp->i_afp->if_u1.if_data; in xfs_attr_shortform_remove()
614 sfe = &sf->list[0]; in xfs_attr_shortform_remove()
615 end = sf->hdr.count; in xfs_attr_shortform_remove()
634 totsize = be16_to_cpu(sf->hdr.totsize); in xfs_attr_shortform_remove()
636 memmove(&((char *)sf)[base], &((char *)sf)[end], totsize - end); in xfs_attr_shortform_remove()
637 sf->hdr.count--; in xfs_attr_shortform_remove()
638 be16_add_cpu(&sf->hdr.totsize, -size); in xfs_attr_shortform_remove()
673 xfs_attr_shortform_t *sf; in xfs_attr_shortform_lookup() local
682 sf = (xfs_attr_shortform_t *)ifp->if_u1.if_data; in xfs_attr_shortform_lookup()
683 sfe = &sf->list[0]; in xfs_attr_shortform_lookup()
684 for (i = 0; i < sf->hdr.count; in xfs_attr_shortform_lookup()
704 xfs_attr_shortform_t *sf; in xfs_attr_shortform_getvalue() local
709 sf = (xfs_attr_shortform_t *)args->dp->i_afp->if_u1.if_data; in xfs_attr_shortform_getvalue()
710 sfe = &sf->list[0]; in xfs_attr_shortform_getvalue()
711 for (i = 0; i < sf->hdr.count; in xfs_attr_shortform_getvalue()
742 xfs_attr_shortform_t *sf; in xfs_attr_shortform_to_leaf() local
755 sf = (xfs_attr_shortform_t *)ifp->if_u1.if_data; in xfs_attr_shortform_to_leaf()
756 size = be16_to_cpu(sf->hdr.totsize); in xfs_attr_shortform_to_leaf()
760 sf = (xfs_attr_shortform_t *)tmpbuffer; in xfs_attr_shortform_to_leaf()
801 sfe = &sf->list[0]; in xfs_attr_shortform_to_leaf()
802 for (i = 0; i < sf->hdr.count; i++) { in xfs_attr_shortform_to_leaf()