Home
last modified time | relevance | path

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

/linux-6.6.21/fs/xfs/libxfs/
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 …]
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()
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);
Dxfs_dir2_block.c1091 xfs_dir2_sf_entry_t *sfep; /* sf entry pointer */ in xfs_dir2_sf_to_block() local
1203 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()
1238 dep->inumber = cpu_to_be64(xfs_dir2_sf_get_ino(mp, sfp, 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()
[all …]
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()
Dxfs_attr_leaf.h55 struct xfs_attr_sf_entry **sfep,
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()
1108 if (hweight8(sfep->flags & XFS_ATTR_NSP_ONDISK_MASK) > 1) in xfs_attr_shortform_verify()
[all …]
/linux-6.6.21/fs/xfs/
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()
/linux-6.6.21/fs/xfs/scrub/
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()