Go to the documentation of this file.
18 #ifndef __XFS_ATTR_SF_H__
19 #define __XFS_ATTR_SF_H__
58 #define XFS_ATTR_SF_ENTSIZE_BYNAME(nlen,vlen) \
59 (((int)sizeof(xfs_attr_sf_entry_t)-1 + (nlen)+(vlen)))
60 #define XFS_ATTR_SF_ENTSIZE_MAX \
61 ((1 << (NBBY*(int)sizeof(__uint8_t))) - 1)
62 #define XFS_ATTR_SF_ENTSIZE(sfep) \
63 ((int)sizeof(xfs_attr_sf_entry_t)-1 + (sfep)->namelen+(sfep)->valuelen)
64 #define XFS_ATTR_SF_NEXTENTRY(sfep) \
65 ((xfs_attr_sf_entry_t *)((char *)(sfep) + XFS_ATTR_SF_ENTSIZE(sfep)))
66 #define XFS_ATTR_SF_TOTSIZE(dp) \
67 (be16_to_cpu(((xfs_attr_shortform_t *) \
68 ((dp)->i_afp->if_u1.if_data))->hdr.totsize))