Searched refs:sfep (Results 1 – 8 of 8) sorted by relevance
/fs/xfs/libxfs/ |
D | xfs_dir2_sf.c | 23 xfs_dir2_sf_entry_t *sfep, 152 xfs_dir2_sf_entry_t *sfep; /* shortform entry */ in xfs_dir2_block_to_sf() local 181 sfep = xfs_dir2_sf_firstentry(sfp); in xfs_dir2_block_to_sf() 212 sfep->namelen = dep->namelen; in xfs_dir2_block_to_sf() 213 xfs_dir2_sf_put_offset(sfep, in xfs_dir2_block_to_sf() 216 memcpy(sfep->name, dep->name, dep->namelen); in xfs_dir2_block_to_sf() 217 dp->d_ops->sf_put_ino(sfp, sfep, in xfs_dir2_block_to_sf() 219 dp->d_ops->sf_put_ftype(sfep, in xfs_dir2_block_to_sf() 222 sfep = dp->d_ops->sf_nextentry(sfp, sfep); in xfs_dir2_block_to_sf() 226 ASSERT((char *)sfep - (char *)sfp == size); in xfs_dir2_block_to_sf() [all …]
|
D | xfs_da_format.c | 43 struct xfs_dir2_sf_entry *sfep) in xfs_dir2_sf_nextentry() argument 46 ((char *)sfep + xfs_dir2_sf_entsize(hdr, sfep->namelen)); in xfs_dir2_sf_nextentry() 52 struct xfs_dir2_sf_entry *sfep) in xfs_dir3_sf_nextentry() argument 55 ((char *)sfep + xfs_dir3_sf_entsize(hdr, sfep->namelen)); in xfs_dir3_sf_nextentry() 67 struct xfs_dir2_sf_entry *sfep) in xfs_dir2_sfe_get_ftype() argument 74 struct xfs_dir2_sf_entry *sfep, in xfs_dir2_sfe_put_ftype() argument 82 struct xfs_dir2_sf_entry *sfep) in xfs_dir3_sfe_get_ftype() argument 86 ftype = sfep->name[sfep->namelen]; in xfs_dir3_sfe_get_ftype() 94 struct xfs_dir2_sf_entry *sfep, in xfs_dir3_sfe_put_ftype() argument 99 sfep->name[sfep->namelen] = ftype; in xfs_dir3_sfe_put_ftype() [all …]
|
D | xfs_attr_sf.h | 34 #define XFS_ATTR_SF_ENTSIZE(sfep) /* space an entry uses */ \ argument 35 ((int)sizeof(xfs_attr_sf_entry_t)-1 + (sfep)->namelen+(sfep)->valuelen) 36 #define XFS_ATTR_SF_NEXTENTRY(sfep) /* next entry in struct */ \ argument 37 ((xfs_attr_sf_entry_t *)((char *)(sfep) + XFS_ATTR_SF_ENTSIZE(sfep)))
|
D | xfs_dir2_block.c | 1061 xfs_dir2_sf_entry_t *sfep; /* sf entry pointer */ in xfs_dir2_sf_to_block() local 1183 sfep = NULL; in xfs_dir2_sf_to_block() 1185 sfep = xfs_dir2_sf_firstentry(sfp); in xfs_dir2_sf_to_block() 1194 if (sfep == NULL) in xfs_dir2_sf_to_block() 1197 newoffset = xfs_dir2_sf_get_offset(sfep); in xfs_dir2_sf_to_block() 1218 dep->inumber = cpu_to_be64(dp->d_ops->sf_get_ino(sfp, sfep)); in xfs_dir2_sf_to_block() 1219 dep->namelen = sfep->namelen; in xfs_dir2_sf_to_block() 1220 dp->d_ops->data_put_ftype(dep, dp->d_ops->sf_get_ftype(sfep)); in xfs_dir2_sf_to_block() 1221 memcpy(dep->name, sfep->name, dep->namelen); in xfs_dir2_sf_to_block() 1225 name.name = sfep->name; in xfs_dir2_sf_to_block() [all …]
|
D | xfs_dir2.h | 36 struct xfs_dir2_sf_entry *sfep); 37 uint8_t (*sf_get_ftype)(struct xfs_dir2_sf_entry *sfep); 38 void (*sf_put_ftype)(struct xfs_dir2_sf_entry *sfep, 41 struct xfs_dir2_sf_entry *sfep); 43 struct xfs_dir2_sf_entry *sfep,
|
D | xfs_da_format.h | 242 xfs_dir2_sf_get_offset(xfs_dir2_sf_entry_t *sfep) in xfs_dir2_sf_get_offset() argument 244 return get_unaligned_be16(sfep->offset); in xfs_dir2_sf_get_offset() 248 xfs_dir2_sf_put_offset(xfs_dir2_sf_entry_t *sfep, xfs_dir2_data_aoff_t off) in xfs_dir2_sf_put_offset() argument 250 put_unaligned_be16(off, sfep->offset); in xfs_dir2_sf_put_offset()
|
D | xfs_attr_leaf.c | 922 struct xfs_attr_sf_entry *sfep; in xfs_attr_shortform_verify() local 943 sfep = &sfp->list[0]; in xfs_attr_shortform_verify() 950 if (((char *)sfep + sizeof(*sfep)) >= endp) in xfs_attr_shortform_verify() 954 if (sfep->namelen == 0) in xfs_attr_shortform_verify() 962 next_sfep = XFS_ATTR_SF_NEXTENTRY(sfep); in xfs_attr_shortform_verify() 971 if (sfep->flags & ~XFS_ATTR_NSP_ONDISK_MASK) in xfs_attr_shortform_verify() 979 if (hweight8(sfep->flags & XFS_ATTR_NSP_ONDISK_MASK) > 1) in xfs_attr_shortform_verify() 982 sfep = next_sfep; in xfs_attr_shortform_verify() 984 if ((void *)sfep != (void *)endp) in xfs_attr_shortform_verify()
|
/fs/xfs/ |
D | xfs_dir2_readdir.c | 51 xfs_dir2_sf_entry_t *sfep; /* shortform directory entry */ in xfs_dir2_sf_getdents() local 103 sfep = xfs_dir2_sf_firstentry(sfp); in xfs_dir2_sf_getdents() 108 xfs_dir2_sf_get_offset(sfep)); in xfs_dir2_sf_getdents() 111 sfep = dp->d_ops->sf_nextentry(sfp, sfep); in xfs_dir2_sf_getdents() 115 ino = dp->d_ops->sf_get_ino(sfp, sfep); in xfs_dir2_sf_getdents() 116 filetype = dp->d_ops->sf_get_ftype(sfep); in xfs_dir2_sf_getdents() 118 if (!dir_emit(ctx, (char *)sfep->name, sfep->namelen, ino, in xfs_dir2_sf_getdents() 121 sfep = dp->d_ops->sf_nextentry(sfp, sfep); in xfs_dir2_sf_getdents()
|