Home
last modified time | relevance | path

Searched refs:sfep (Results 1 – 7 of 7) sorted by relevance

/fs/xfs/libxfs/
Dxfs_dir2_sf.c38 xfs_dir2_sf_entry_t *sfep,
169 xfs_dir2_sf_entry_t *sfep; /* shortform entry */ in xfs_dir2_block_to_sf() local
199 sfep = xfs_dir2_sf_firstentry(sfp); in xfs_dir2_block_to_sf()
230 sfep->namelen = dep->namelen; in xfs_dir2_block_to_sf()
231 xfs_dir2_sf_put_offset(sfep, in xfs_dir2_block_to_sf()
234 memcpy(sfep->name, dep->name, dep->namelen); in xfs_dir2_block_to_sf()
235 dp->d_ops->sf_put_ino(sfp, sfep, in xfs_dir2_block_to_sf()
237 dp->d_ops->sf_put_ftype(sfep, in xfs_dir2_block_to_sf()
240 sfep = dp->d_ops->sf_nextentry(sfp, sfep); in xfs_dir2_block_to_sf()
244 ASSERT((char *)sfep - (char *)sfp == size); in xfs_dir2_block_to_sf()
[all …]
Dxfs_da_format.c59 struct xfs_dir2_sf_entry *sfep) in xfs_dir2_sf_nextentry() argument
62 ((char *)sfep + xfs_dir2_sf_entsize(hdr, sfep->namelen)); in xfs_dir2_sf_nextentry()
68 struct xfs_dir2_sf_entry *sfep) in xfs_dir3_sf_nextentry() argument
71 ((char *)sfep + xfs_dir3_sf_entsize(hdr, sfep->namelen)); in xfs_dir3_sf_nextentry()
83 struct xfs_dir2_sf_entry *sfep) in xfs_dir2_sfe_get_ftype() argument
90 struct xfs_dir2_sf_entry *sfep, in xfs_dir2_sfe_put_ftype() argument
98 struct xfs_dir2_sf_entry *sfep) in xfs_dir3_sfe_get_ftype() argument
102 ftype = sfep->name[sfep->namelen]; in xfs_dir3_sfe_get_ftype()
110 struct xfs_dir2_sf_entry *sfep, in xfs_dir3_sfe_put_ftype() argument
115 sfep->name[sfep->namelen] = ftype; in xfs_dir3_sfe_put_ftype()
[all …]
Dxfs_attr_sf.h62 #define XFS_ATTR_SF_ENTSIZE(sfep) /* space an entry uses */ \ argument
63 ((int)sizeof(xfs_attr_sf_entry_t)-1 + (sfep)->namelen+(sfep)->valuelen)
64 #define XFS_ATTR_SF_NEXTENTRY(sfep) /* next entry in struct */ \ argument
65 ((xfs_attr_sf_entry_t *)((char *)(sfep) + XFS_ATTR_SF_ENTSIZE(sfep)))
Dxfs_dir2.h47 struct xfs_dir2_sf_entry *sfep);
48 __uint8_t (*sf_get_ftype)(struct xfs_dir2_sf_entry *sfep);
49 void (*sf_put_ftype)(struct xfs_dir2_sf_entry *sfep,
52 struct xfs_dir2_sf_entry *sfep);
54 struct xfs_dir2_sf_entry *sfep,
Dxfs_dir2_block.c1067 xfs_dir2_sf_entry_t *sfep; /* sf entry pointer */ in xfs_dir2_sf_to_block() local
1189 sfep = NULL; in xfs_dir2_sf_to_block()
1191 sfep = xfs_dir2_sf_firstentry(sfp); in xfs_dir2_sf_to_block()
1200 if (sfep == NULL) in xfs_dir2_sf_to_block()
1203 newoffset = xfs_dir2_sf_get_offset(sfep); in xfs_dir2_sf_to_block()
1224 dep->inumber = cpu_to_be64(dp->d_ops->sf_get_ino(sfp, sfep)); in xfs_dir2_sf_to_block()
1225 dep->namelen = sfep->namelen; in xfs_dir2_sf_to_block()
1226 dp->d_ops->data_put_ftype(dep, dp->d_ops->sf_get_ftype(sfep)); in xfs_dir2_sf_to_block()
1227 memcpy(dep->name, sfep->name, dep->namelen); in xfs_dir2_sf_to_block()
1231 name.name = sfep->name; in xfs_dir2_sf_to_block()
[all …]
Dxfs_da_format.h273 xfs_dir2_sf_get_offset(xfs_dir2_sf_entry_t *sfep) in xfs_dir2_sf_get_offset() argument
275 return get_unaligned_be16(&sfep->offset.i); in xfs_dir2_sf_get_offset()
279 xfs_dir2_sf_put_offset(xfs_dir2_sf_entry_t *sfep, xfs_dir2_data_aoff_t off) in xfs_dir2_sf_put_offset() argument
281 put_unaligned_be16(off, &sfep->offset.i); in xfs_dir2_sf_put_offset()
/fs/xfs/
Dxfs_dir2_readdir.c66 xfs_dir2_sf_entry_t *sfep; /* shortform directory entry */ in xfs_dir2_sf_getdents() local
128 sfep = xfs_dir2_sf_firstentry(sfp); in xfs_dir2_sf_getdents()
133 xfs_dir2_sf_get_offset(sfep)); in xfs_dir2_sf_getdents()
136 sfep = dp->d_ops->sf_nextentry(sfp, sfep); in xfs_dir2_sf_getdents()
140 ino = dp->d_ops->sf_get_ino(sfp, sfep); in xfs_dir2_sf_getdents()
141 filetype = dp->d_ops->sf_get_ftype(sfep); in xfs_dir2_sf_getdents()
143 if (!dir_emit(ctx, (char *)sfep->name, sfep->namelen, ino, in xfs_dir2_sf_getdents()
146 sfep = dp->d_ops->sf_nextentry(sfp, sfep); in xfs_dir2_sf_getdents()