Home
last modified time | relevance | path

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

/linux/fs/xfs/libxfs/
H A Dxfs_dir2_sf.c23 xfs_dir2_sf_entry_t *sfep,
60 struct xfs_dir2_sf_entry *sfep) in xfs_dir2_sf_nextentry() argument
62 return (void *)sfep + xfs_dir2_sf_entsize(mp, hdr, sfep->namelen); in xfs_dir2_sf_nextentry()
75 struct xfs_dir2_sf_entry *sfep) in xfs_dir2_sf_get_ino() argument
77 uint8_t *from = sfep->name + sfep->namelen; in xfs_dir2_sf_get_ino()
91 struct xfs_dir2_sf_entry *sfep, in xfs_dir2_sf_put_ino() argument
94 uint8_t *to = sfep->name + sfep->namelen; in xfs_dir2_sf_put_ino()
136 struct xfs_dir2_sf_entry *sfep) in xfs_dir2_sf_get_ftype() argument
139 uint8_t ftype = sfep->name[sfep->namelen]; in xfs_dir2_sf_get_ftype()
151 struct xfs_dir2_sf_entry *sfep, in xfs_dir2_sf_put_ftype() argument
[all …]
H A Dxfs_attr_sf.h32 static inline int xfs_attr_sf_entsize(struct xfs_attr_sf_entry *sfep) in xfs_attr_sf_entsize() argument
34 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.h163 struct xfs_dir2_sf_entry *sfep);
167 struct xfs_dir2_sf_entry *sfep);
169 struct xfs_dir2_sf_hdr *hdr, struct xfs_dir2_sf_entry *sfep);
184 struct xfs_dir2_sf_entry *sfep, xfs_ino_t ino);
186 struct xfs_dir2_sf_entry *sfep, uint8_t ftype);
H A Dxfs_dir2_block.c1099 xfs_dir2_sf_entry_t *sfep; /* sf entry pointer */ in xfs_dir2_sf_to_block() local
1209 sfep = NULL; in xfs_dir2_sf_to_block()
1211 sfep = xfs_dir2_sf_firstentry(sfp); in xfs_dir2_sf_to_block()
1221 if (sfep == NULL) in xfs_dir2_sf_to_block()
1224 newoffset = xfs_dir2_sf_get_offset(sfep); in xfs_dir2_sf_to_block()
1244 dep->inumber = cpu_to_be64(xfs_dir2_sf_get_ino(mp, sfp, sfep)); in xfs_dir2_sf_to_block()
1245 dep->namelen = sfep->namelen; in xfs_dir2_sf_to_block()
1247 xfs_dir2_sf_get_ftype(mp, sfep)); in xfs_dir2_sf_to_block()
1248 memcpy(dep->name, sfep->name, dep->namelen); in xfs_dir2_sf_to_block()
1252 name.name = sfep->name; in xfs_dir2_sf_to_block()
[all …]
H A Dxfs_da_format.h240 xfs_dir2_sf_get_offset(xfs_dir2_sf_entry_t *sfep) in xfs_dir2_sf_get_offset() argument
242 return get_unaligned_be16(sfep->offset); in xfs_dir2_sf_get_offset()
246 xfs_dir2_sf_put_offset(xfs_dir2_sf_entry_t *sfep, xfs_dir2_data_aoff_t off) in xfs_dir2_sf_put_offset() argument
248 put_unaligned_be16(off, sfep->offset); in xfs_dir2_sf_put_offset()
H A Dxfs_attr_leaf.c1143 struct xfs_attr_sf_entry *sfep = xfs_attr_sf_firstentry(sfp); in xfs_attr_shortform_verify() local
1165 if (((char *)sfep + sizeof(*sfep)) >= endp) in xfs_attr_shortform_verify()
1169 if (sfep->namelen == 0) in xfs_attr_shortform_verify()
1177 next_sfep = xfs_attr_sf_nextentry(sfep); in xfs_attr_shortform_verify()
1186 if (sfep->flags & ~XFS_ATTR_NSP_ONDISK_MASK) in xfs_attr_shortform_verify()
1194 if (!xfs_attr_check_namespace(sfep->flags)) in xfs_attr_shortform_verify()
1197 sfep = next_sfep; in xfs_attr_shortform_verify()
1199 if ((void *)sfep != (void *)endp) in xfs_attr_shortform_verify()
/linux/fs/xfs/
H A Dxfs_dir2_readdir.c54 xfs_dir2_sf_entry_t *sfep; /* shortform directory entry */ in xfs_dir2_sf_getdents() local
104 sfep = xfs_dir2_sf_firstentry(sfp); in xfs_dir2_sf_getdents()
109 xfs_dir2_sf_get_offset(sfep)); in xfs_dir2_sf_getdents()
112 sfep = xfs_dir2_sf_nextentry(mp, sfp, sfep); in xfs_dir2_sf_getdents()
116 ino = xfs_dir2_sf_get_ino(mp, sfp, sfep); in xfs_dir2_sf_getdents()
117 filetype = xfs_dir2_sf_get_ftype(mp, sfep); in xfs_dir2_sf_getdents()
120 !xfs_dir2_namecheck(sfep->name, in xfs_dir2_sf_getdents()
121 sfep->namelen))) { in xfs_dir2_sf_getdents()
125 if (!dir_emit(ctx, (char *)sfep->name, sfep->namelen, ino, in xfs_dir2_sf_getdents()
128 sfep = xfs_dir2_sf_nextentry(mp, sfp, sfep); in xfs_dir2_sf_getdents()
/linux/fs/xfs/scrub/
H A Dreaddir.c39 struct xfs_dir2_sf_entry *sfep; in xchk_dir_walk_sf() local
70 sfep = xfs_dir2_sf_firstentry(sfp); in xchk_dir_walk_sf()
73 xfs_dir2_sf_get_offset(sfep)); in xchk_dir_walk_sf()
74 ino = xfs_dir2_sf_get_ino(mp, sfp, sfep); in xchk_dir_walk_sf()
75 name.name = sfep->name; in xchk_dir_walk_sf()
76 name.len = sfep->namelen; in xchk_dir_walk_sf()
77 name.type = xfs_dir2_sf_get_ftype(mp, sfep); in xchk_dir_walk_sf()
83 sfep = xfs_dir2_sf_nextentry(mp, sfp, sfep); in xchk_dir_walk_sf()
H A Ddir_repair.c439 struct xfs_dir2_sf_entry *sfep) in xrep_dir_salvage_sf_entry() argument
443 ino = xfs_dir2_sf_get_ino(rd->sc->mp, sfp, sfep); in xrep_dir_salvage_sf_entry()
444 if (!xrep_dir_want_salvage(rd, sfep->name, sfep->namelen, ino)) in xrep_dir_salvage_sf_entry()
447 return xrep_dir_salvage_entry(rd, sfep->name, sfep->namelen, ino); in xrep_dir_salvage_sf_entry()
518 struct xfs_dir2_sf_entry *sfep; in xrep_dir_recover_sf() local
532 sfep = xfs_dir2_sf_firstentry(hdr); in xrep_dir_recover_sf()
533 while ((unsigned char *)sfep < end) { in xrep_dir_recover_sf()
537 next = xfs_dir2_sf_nextentry(rd->sc->mp, hdr, sfep); in xrep_dir_recover_sf()
542 error = xrep_dir_salvage_sf_entry(rd, hdr, sfep); in xrep_dir_recover_sf()
546 sfep = next; in xrep_dir_recover_sf()