Home
last modified time | relevance | path

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

/linux-4.19.296/fs/xfs/libxfs/
Dxfs_dir2_sf.c26 xfs_dir2_sf_entry_t *sfep,
155 xfs_dir2_sf_entry_t *sfep; /* shortform entry */ in xfs_dir2_block_to_sf() local
184 sfep = xfs_dir2_sf_firstentry(sfp); in xfs_dir2_block_to_sf()
215 sfep->namelen = dep->namelen; in xfs_dir2_block_to_sf()
216 xfs_dir2_sf_put_offset(sfep, in xfs_dir2_block_to_sf()
219 memcpy(sfep->name, dep->name, dep->namelen); in xfs_dir2_block_to_sf()
220 dp->d_ops->sf_put_ino(sfp, sfep, in xfs_dir2_block_to_sf()
222 dp->d_ops->sf_put_ftype(sfep, in xfs_dir2_block_to_sf()
225 sfep = dp->d_ops->sf_nextentry(sfp, sfep); in xfs_dir2_block_to_sf()
229 ASSERT((char *)sfep - (char *)sfp == size); in xfs_dir2_block_to_sf()
[all …]
Dxfs_attr_sf.h34 #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)))
Dxfs_da_format.c46 struct xfs_dir2_sf_entry *sfep) in xfs_dir2_sf_nextentry() argument
49 ((char *)sfep + xfs_dir2_sf_entsize(hdr, sfep->namelen)); in xfs_dir2_sf_nextentry()
55 struct xfs_dir2_sf_entry *sfep) in xfs_dir3_sf_nextentry() argument
58 ((char *)sfep + xfs_dir3_sf_entsize(hdr, sfep->namelen)); in xfs_dir3_sf_nextentry()
70 struct xfs_dir2_sf_entry *sfep) in xfs_dir2_sfe_get_ftype() argument
77 struct xfs_dir2_sf_entry *sfep, in xfs_dir2_sfe_put_ftype() argument
85 struct xfs_dir2_sf_entry *sfep) in xfs_dir3_sfe_get_ftype() argument
89 ftype = sfep->name[sfep->namelen]; in xfs_dir3_sfe_get_ftype()
97 struct xfs_dir2_sf_entry *sfep, in xfs_dir3_sfe_put_ftype() argument
102 sfep->name[sfep->namelen] = ftype; in xfs_dir3_sfe_put_ftype()
[all …]
Dxfs_dir2.h36 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,
Dxfs_dir2_block.c1064 xfs_dir2_sf_entry_t *sfep; /* sf entry pointer */ in xfs_dir2_sf_to_block() local
1186 sfep = NULL; in xfs_dir2_sf_to_block()
1188 sfep = xfs_dir2_sf_firstentry(sfp); in xfs_dir2_sf_to_block()
1197 if (sfep == NULL) in xfs_dir2_sf_to_block()
1200 newoffset = xfs_dir2_sf_get_offset(sfep); in xfs_dir2_sf_to_block()
1221 dep->inumber = cpu_to_be64(dp->d_ops->sf_get_ino(sfp, sfep)); in xfs_dir2_sf_to_block()
1222 dep->namelen = sfep->namelen; in xfs_dir2_sf_to_block()
1223 dp->d_ops->data_put_ftype(dep, dp->d_ops->sf_get_ftype(sfep)); in xfs_dir2_sf_to_block()
1224 memcpy(dep->name, sfep->name, dep->namelen); in xfs_dir2_sf_to_block()
1228 name.name = sfep->name; in xfs_dir2_sf_to_block()
[all …]
Dxfs_da_format.h242 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()
Dxfs_attr_leaf.c911 struct xfs_attr_sf_entry *sfep; in xfs_attr_shortform_verify() local
932 sfep = &sfp->list[0]; in xfs_attr_shortform_verify()
941 if (((char *)sfep + sizeof(*sfep) - 1) >= endp) in xfs_attr_shortform_verify()
945 if (sfep->namelen == 0) in xfs_attr_shortform_verify()
953 next_sfep = XFS_ATTR_SF_NEXTENTRY(sfep); in xfs_attr_shortform_verify()
962 if (sfep->flags & ~XFS_ATTR_NSP_ONDISK_MASK) in xfs_attr_shortform_verify()
970 if (hweight8(sfep->flags & XFS_ATTR_NSP_ONDISK_MASK) > 1) in xfs_attr_shortform_verify()
973 sfep = next_sfep; in xfs_attr_shortform_verify()
975 if ((void *)sfep != (void *)endp) in xfs_attr_shortform_verify()
/linux-4.19.296/fs/xfs/
Dxfs_dir2_readdir.c54 xfs_dir2_sf_entry_t *sfep; /* shortform directory entry */ in xfs_dir2_sf_getdents() local
106 sfep = xfs_dir2_sf_firstentry(sfp); in xfs_dir2_sf_getdents()
111 xfs_dir2_sf_get_offset(sfep)); in xfs_dir2_sf_getdents()
114 sfep = dp->d_ops->sf_nextentry(sfp, sfep); in xfs_dir2_sf_getdents()
118 ino = dp->d_ops->sf_get_ino(sfp, sfep); in xfs_dir2_sf_getdents()
119 filetype = dp->d_ops->sf_get_ftype(sfep); in xfs_dir2_sf_getdents()
121 if (!dir_emit(ctx, (char *)sfep->name, sfep->namelen, ino, in xfs_dir2_sf_getdents()
124 sfep = dp->d_ops->sf_nextentry(sfp, sfep); in xfs_dir2_sf_getdents()