Home
last modified time | relevance | path

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

/openbmc/linux/fs/xfs/libxfs/
H A Dxfs_dir2_sf.c77 uint8_t *from = sfep->name + sfep->namelen; in xfs_dir2_sf_get_ino()
94 uint8_t *to = sfep->name + sfep->namelen; in xfs_dir2_sf_put_ino()
139 uint8_t ftype = sfep->name[sfep->namelen]; in xfs_dir2_sf_get_ftype()
157 sfep->name[sfep->namelen] = ftype; in xfs_dir2_sf_put_ftype()
324 sfep = xfs_dir2_sf_nextentry(mp, sfp, sfep); in xfs_dir2_block_to_sf()
485 memcpy(sfep->name, args->name, sfep->namelen); in xfs_dir2_sf_addname_easy()
575 memcpy(sfep->name, args->name, sfep->namelen); in xfs_dir2_sf_addname_hard()
585 sfep = xfs_dir2_sf_nextentry(mp, sfp, sfep); in xfs_dir2_sf_addname_hard()
632 sfep = xfs_dir2_sf_nextentry(mp, sfp, sfep); in xfs_dir2_sf_addname_pick()
756 if (((char *)sfep + sizeof(*sfep)) >= endp) in xfs_dir2_sf_verify()
[all …]
H A Dxfs_attr_sf.h39 static inline int xfs_attr_sf_entsize(struct xfs_attr_sf_entry *sfep) in xfs_attr_sf_entsize() argument
41 return struct_size(sfep, nameval, sfep->namelen + sfep->valuelen); in xfs_attr_sf_entsize()
46 xfs_attr_sf_nextentry(struct xfs_attr_sf_entry *sfep) in xfs_attr_sf_nextentry() argument
48 return (void *)sfep + xfs_attr_sf_entsize(sfep); in xfs_attr_sf_nextentry()
H A Dxfs_dir2_priv.h162 struct xfs_dir2_sf_entry *sfep);
166 struct xfs_dir2_sf_entry *sfep);
168 struct xfs_dir2_sf_hdr *hdr, struct xfs_dir2_sf_entry *sfep);
182 struct xfs_dir2_sf_entry *sfep, xfs_ino_t ino);
184 struct xfs_dir2_sf_entry *sfep, uint8_t ftype);
H A Dxfs_dir2_block.c1203 sfep = NULL; in xfs_dir2_sf_to_block()
1205 sfep = xfs_dir2_sf_firstentry(sfp); in xfs_dir2_sf_to_block()
1215 if (sfep == NULL) in xfs_dir2_sf_to_block()
1218 newoffset = xfs_dir2_sf_get_offset(sfep); in xfs_dir2_sf_to_block()
1239 dep->namelen = sfep->namelen; in xfs_dir2_sf_to_block()
1241 xfs_dir2_sf_get_ftype(mp, sfep)); in xfs_dir2_sf_to_block()
1242 memcpy(dep->name, sfep->name, dep->namelen); in xfs_dir2_sf_to_block()
1246 name.name = sfep->name; in xfs_dir2_sf_to_block()
1247 name.len = sfep->namelen; in xfs_dir2_sf_to_block()
1253 sfep = NULL; in xfs_dir2_sf_to_block()
[all …]
H A Dxfs_da_format.h229 xfs_dir2_sf_get_offset(xfs_dir2_sf_entry_t *sfep) in xfs_dir2_sf_get_offset() argument
231 return get_unaligned_be16(sfep->offset); in xfs_dir2_sf_get_offset()
235 xfs_dir2_sf_put_offset(xfs_dir2_sf_entry_t *sfep, xfs_dir2_data_aoff_t off) in xfs_dir2_sf_put_offset() argument
237 put_unaligned_be16(off, sfep->offset); in xfs_dir2_sf_put_offset()
H A Dxfs_attr_leaf.h55 struct xfs_attr_sf_entry **sfep,
H A Dxfs_attr_leaf.c712 struct xfs_attr_sf_entry **sfep, in xfs_attr_sf_findname() argument
734 if (sfep != NULL) in xfs_attr_sf_findname()
735 *sfep = sfe; in xfs_attr_sf_findname()
1049 struct xfs_attr_sf_entry *sfep; in xfs_attr_shortform_verify() local
1070 sfep = &sfp->list[0]; in xfs_attr_shortform_verify()
1079 if (((char *)sfep + sizeof(*sfep)) >= endp) in xfs_attr_shortform_verify()
1083 if (sfep->namelen == 0) in xfs_attr_shortform_verify()
1091 next_sfep = xfs_attr_sf_nextentry(sfep); in xfs_attr_shortform_verify()
1100 if (sfep->flags & ~XFS_ATTR_NSP_ONDISK_MASK) in xfs_attr_shortform_verify()
1111 sfep = next_sfep; in xfs_attr_shortform_verify()
[all …]
/openbmc/linux/fs/xfs/
H A Dxfs_dir2_readdir.c53 xfs_dir2_sf_entry_t *sfep; /* shortform directory entry */ in xfs_dir2_sf_getdents() local
105 sfep = xfs_dir2_sf_firstentry(sfp); in xfs_dir2_sf_getdents()
110 xfs_dir2_sf_get_offset(sfep)); in xfs_dir2_sf_getdents()
113 sfep = xfs_dir2_sf_nextentry(mp, sfp, sfep); in xfs_dir2_sf_getdents()
117 ino = xfs_dir2_sf_get_ino(mp, sfp, sfep); in xfs_dir2_sf_getdents()
118 filetype = xfs_dir2_sf_get_ftype(mp, sfep); in xfs_dir2_sf_getdents()
121 !xfs_dir2_namecheck(sfep->name, in xfs_dir2_sf_getdents()
122 sfep->namelen))) in xfs_dir2_sf_getdents()
124 if (!dir_emit(ctx, (char *)sfep->name, sfep->namelen, ino, in xfs_dir2_sf_getdents()
127 sfep = xfs_dir2_sf_nextentry(mp, sfp, sfep); in xfs_dir2_sf_getdents()
/openbmc/linux/fs/xfs/scrub/
H A Dreaddir.c38 struct xfs_dir2_sf_entry *sfep; in xchk_dir_walk_sf() local
71 sfep = xfs_dir2_sf_firstentry(sfp); in xchk_dir_walk_sf()
74 xfs_dir2_sf_get_offset(sfep)); in xchk_dir_walk_sf()
75 ino = xfs_dir2_sf_get_ino(mp, sfp, sfep); in xchk_dir_walk_sf()
76 name.name = sfep->name; in xchk_dir_walk_sf()
77 name.len = sfep->namelen; in xchk_dir_walk_sf()
78 name.type = xfs_dir2_sf_get_ftype(mp, sfep); in xchk_dir_walk_sf()
84 sfep = xfs_dir2_sf_nextentry(mp, sfp, sfep); in xchk_dir_walk_sf()