Lines Matching defs:sfep
45 xfs_dir2_sf_entry_t *sfep,
167 xfs_dir2_sf_entry_t *sfep; /* shortform entry */
210 sfep = XFS_DIR2_SF_FIRSTENTRY(sfp);
241 sfep->namelen = dep->namelen;
242 XFS_DIR2_SF_PUT_OFFSET(sfep,
245 memcpy(sfep->name, dep->name, dep->namelen);
248 XFS_DIR2_SF_INUMBERP(sfep));
249 sfep = XFS_DIR2_SF_NEXTENTRY(sfp, sfep);
253 ASSERT((char *)sfep - (char *)sfp == size);
281 xfs_dir2_sf_entry_t *sfep = NULL; /* shortform entry */
330 xfs_dir2_sf_addname_pick(args, objchange, &sfep, &offset)) == 0) {
353 xfs_dir2_sf_addname_easy(args, sfep, offset, new_isize);
380 xfs_dir2_sf_entry_t *sfep, /* pointer to new entry */
391 byteoff = (int)((char *)sfep - (char *)sfp);
401 sfep = (xfs_dir2_sf_entry_t *)((char *)sfp + byteoff);
405 sfep->namelen = args->namelen;
406 XFS_DIR2_SF_PUT_OFFSET(sfep, offset);
407 memcpy(sfep->name, args->name, sfep->namelen);
409 XFS_DIR2_SF_INUMBERP(sfep));
447 xfs_dir2_sf_entry_t *sfep; /* entry in new dir */
493 sfep = (xfs_dir2_sf_entry_t *)((char *)sfp + nbytes);
497 sfep->namelen = args->namelen;
498 XFS_DIR2_SF_PUT_OFFSET(sfep, offset);
499 memcpy(sfep->name, args->name, sfep->namelen);
501 XFS_DIR2_SF_INUMBERP(sfep));
511 sfep = XFS_DIR2_SF_NEXTENTRY(sfp, sfep);
512 memcpy(sfep, oldsfep, old_isize - nbytes);
538 xfs_dir2_sf_entry_t *sfep; /* shortform entry */
549 sfep = XFS_DIR2_SF_FIRSTENTRY(sfp);
558 holefit = offset + size <= XFS_DIR2_SF_GET_OFFSET(sfep);
559 offset = XFS_DIR2_SF_GET_OFFSET(sfep) +
560 XFS_DIR2_DATA_ENTSIZE(sfep->namelen);
561 sfep = XFS_DIR2_SF_NEXTENTRY(sfp, sfep);
595 *sfepp = sfep;
613 xfs_dir2_sf_entry_t *sfep; /* shortform dir entry */
623 for (i = 0, sfep = XFS_DIR2_SF_FIRSTENTRY(sfp);
625 i++, sfep = XFS_DIR2_SF_NEXTENTRY(sfp, sfep)) {
626 ASSERT(XFS_DIR2_SF_GET_OFFSET(sfep) >= offset);
627 ino = XFS_DIR2_SF_GET_INUMBER(sfp, XFS_DIR2_SF_INUMBERP(sfep));
630 XFS_DIR2_SF_GET_OFFSET(sfep) +
631 XFS_DIR2_DATA_ENTSIZE(sfep->namelen);
635 ASSERT((char *)sfep - (char *)sfp == dp->i_d.di_size);
708 xfs_dir2_sf_entry_t *sfep; /* shortform directory entry */
799 for (i = 0, sfep = XFS_DIR2_SF_FIRSTENTRY(sfp);
801 i++, sfep = XFS_DIR2_SF_NEXTENTRY(sfp, sfep)) {
804 XFS_DIR2_SF_GET_OFFSET(sfep));
809 p.namelen = sfep->namelen;
812 XFS_DIR2_SF_GET_OFFSET(sfep) +
815 p.ino = XFS_DIR2_SF_GET_INUMBER(sfp, XFS_DIR2_SF_INUMBERP(sfep));
819 p.name = (char *)sfep->name;
850 xfs_dir2_sf_entry_t *sfep; /* shortform directory entry */
887 for (i = 0, sfep = XFS_DIR2_SF_FIRSTENTRY(sfp);
889 i++, sfep = XFS_DIR2_SF_NEXTENTRY(sfp, sfep)) {
890 if (sfep->namelen == args->namelen &&
891 sfep->name[0] == args->name[0] &&
892 memcmp(args->name, sfep->name, args->namelen) == 0) {
895 XFS_DIR2_SF_INUMBERP(sfep));
919 xfs_dir2_sf_entry_t *sfep; /* shortform directory entry */
942 for (i = 0, sfep = XFS_DIR2_SF_FIRSTENTRY(sfp);
944 i++, sfep = XFS_DIR2_SF_NEXTENTRY(sfp, sfep)) {
945 if (sfep->namelen == args->namelen &&
946 sfep->name[0] == args->name[0] &&
947 memcmp(sfep->name, args->name, args->namelen) == 0) {
949 XFS_DIR2_SF_INUMBERP(sfep)) ==
963 byteoff = (int)((char *)sfep - (char *)sfp);
1013 xfs_dir2_sf_entry_t *sfep; /* shortform directory entry */
1079 for (i = 0, sfep = XFS_DIR2_SF_FIRSTENTRY(sfp);
1081 i++, sfep = XFS_DIR2_SF_NEXTENTRY(sfp, sfep)) {
1082 if (sfep->namelen == args->namelen &&
1083 sfep->name[0] == args->name[0] &&
1084 memcmp(args->name, sfep->name, args->namelen) == 0) {
1087 XFS_DIR2_SF_INUMBERP(sfep));
1091 XFS_DIR2_SF_INUMBERP(sfep));
1157 xfs_dir2_sf_entry_t *sfep; /* new sf entry */
1197 for (i = 0, sfep = XFS_DIR2_SF_FIRSTENTRY(sfp),
1200 i++, sfep = XFS_DIR2_SF_NEXTENTRY(sfp, sfep),
1202 sfep->namelen = oldsfep->namelen;
1203 sfep->offset = oldsfep->offset;
1204 memcpy(sfep->name, oldsfep->name, sfep->namelen);
1207 XFS_DIR2_SF_PUT_INUMBER(sfp, &ino, XFS_DIR2_SF_INUMBERP(sfep));
1234 xfs_dir2_sf_entry_t *sfep; /* new sf entry */
1274 for (i = 0, sfep = XFS_DIR2_SF_FIRSTENTRY(sfp),
1277 i++, sfep = XFS_DIR2_SF_NEXTENTRY(sfp, sfep),
1279 sfep->namelen = oldsfep->namelen;
1280 sfep->offset = oldsfep->offset;
1281 memcpy(sfep->name, oldsfep->name, sfep->namelen);
1284 XFS_DIR2_SF_PUT_INUMBER(sfp, &ino, XFS_DIR2_SF_INUMBERP(sfep));