Lines Matching refs:sfep
69 xfs_dir2_sf_entry_t *sfep,
191 xfs_dir2_sf_entry_t *sfep; /* shortform entry */ in xfs_dir2_block_to_sf() local
234 sfep = XFS_DIR2_SF_FIRSTENTRY(sfp); in xfs_dir2_block_to_sf()
265 sfep->namelen = dep->namelen; in xfs_dir2_block_to_sf()
266 XFS_DIR2_SF_PUT_OFFSET_ARCH(sfep, in xfs_dir2_block_to_sf()
269 memcpy(sfep->name, dep->name, dep->namelen); in xfs_dir2_block_to_sf()
272 XFS_DIR2_SF_INUMBERP(sfep), ARCH_CONVERT); in xfs_dir2_block_to_sf()
273 sfep = XFS_DIR2_SF_NEXTENTRY(sfp, sfep); in xfs_dir2_block_to_sf()
277 ASSERT((char *)sfep - (char *)sfp == size); in xfs_dir2_block_to_sf()
305 xfs_dir2_sf_entry_t *sfep; /* shortform entry */ in xfs_dir2_sf_addname() local
354 xfs_dir2_sf_addname_pick(args, objchange, &sfep, &offset)) == 0) { in xfs_dir2_sf_addname()
377 xfs_dir2_sf_addname_easy(args, sfep, offset, new_isize); in xfs_dir2_sf_addname()
404 xfs_dir2_sf_entry_t *sfep, /* pointer to new entry */ in xfs_dir2_sf_addname_easy() argument
415 byteoff = (int)((char *)sfep - (char *)sfp); in xfs_dir2_sf_addname_easy()
425 sfep = (xfs_dir2_sf_entry_t *)((char *)sfp + byteoff); in xfs_dir2_sf_addname_easy()
429 sfep->namelen = args->namelen; in xfs_dir2_sf_addname_easy()
430 XFS_DIR2_SF_PUT_OFFSET_ARCH(sfep, offset, ARCH_CONVERT); in xfs_dir2_sf_addname_easy()
431 memcpy(sfep->name, args->name, sfep->namelen); in xfs_dir2_sf_addname_easy()
433 XFS_DIR2_SF_INUMBERP(sfep), ARCH_CONVERT); in xfs_dir2_sf_addname_easy()
471 xfs_dir2_sf_entry_t *sfep; /* entry in new dir */ in xfs_dir2_sf_addname_hard() local
517 sfep = (xfs_dir2_sf_entry_t *)((char *)sfp + nbytes); in xfs_dir2_sf_addname_hard()
521 sfep->namelen = args->namelen; in xfs_dir2_sf_addname_hard()
522 XFS_DIR2_SF_PUT_OFFSET_ARCH(sfep, offset, ARCH_CONVERT); in xfs_dir2_sf_addname_hard()
523 memcpy(sfep->name, args->name, sfep->namelen); in xfs_dir2_sf_addname_hard()
525 XFS_DIR2_SF_INUMBERP(sfep), ARCH_CONVERT); in xfs_dir2_sf_addname_hard()
535 sfep = XFS_DIR2_SF_NEXTENTRY(sfp, sfep); in xfs_dir2_sf_addname_hard()
536 memcpy(sfep, oldsfep, old_isize - nbytes); in xfs_dir2_sf_addname_hard()
562 xfs_dir2_sf_entry_t *sfep; /* shortform entry */ in xfs_dir2_sf_addname_pick() local
573 sfep = XFS_DIR2_SF_FIRSTENTRY(sfp); in xfs_dir2_sf_addname_pick()
582 holefit = offset + size <= XFS_DIR2_SF_GET_OFFSET_ARCH(sfep, ARCH_CONVERT); in xfs_dir2_sf_addname_pick()
583 offset = XFS_DIR2_SF_GET_OFFSET_ARCH(sfep, ARCH_CONVERT) + in xfs_dir2_sf_addname_pick()
584 XFS_DIR2_DATA_ENTSIZE(sfep->namelen); in xfs_dir2_sf_addname_pick()
585 sfep = XFS_DIR2_SF_NEXTENTRY(sfp, sfep); in xfs_dir2_sf_addname_pick()
619 *sfepp = sfep; in xfs_dir2_sf_addname_pick()
637 xfs_dir2_sf_entry_t *sfep; /* shortform dir entry */ in xfs_dir2_sf_check() local
647 for (i = 0, sfep = XFS_DIR2_SF_FIRSTENTRY(sfp); in xfs_dir2_sf_check()
649 i++, sfep = XFS_DIR2_SF_NEXTENTRY(sfp, sfep)) { in xfs_dir2_sf_check()
650 ASSERT(XFS_DIR2_SF_GET_OFFSET_ARCH(sfep, ARCH_CONVERT) >= offset); in xfs_dir2_sf_check()
651 ino = XFS_DIR2_SF_GET_INUMBER_ARCH(sfp, XFS_DIR2_SF_INUMBERP(sfep), ARCH_CONVERT); in xfs_dir2_sf_check()
654 XFS_DIR2_SF_GET_OFFSET_ARCH(sfep, ARCH_CONVERT) + in xfs_dir2_sf_check()
655 XFS_DIR2_DATA_ENTSIZE(sfep->namelen); in xfs_dir2_sf_check()
659 ASSERT((char *)sfep - (char *)sfp == dp->i_d.di_size); in xfs_dir2_sf_check()
732 xfs_dir2_sf_entry_t *sfep; /* shortform directory entry */ in xfs_dir2_sf_getdents() local
824 for (i = 0, sfep = XFS_DIR2_SF_FIRSTENTRY(sfp); in xfs_dir2_sf_getdents()
826 i++, sfep = XFS_DIR2_SF_NEXTENTRY(sfp, sfep)) { in xfs_dir2_sf_getdents()
829 XFS_DIR2_SF_GET_OFFSET_ARCH(sfep, ARCH_CONVERT)); in xfs_dir2_sf_getdents()
834 p.namelen = sfep->namelen; in xfs_dir2_sf_getdents()
837 XFS_DIR2_SF_GET_OFFSET_ARCH(sfep, ARCH_CONVERT) + in xfs_dir2_sf_getdents()
841 XFS_DIR2_SF_INUMBERP(sfep), ARCH_CONVERT); in xfs_dir2_sf_getdents()
845 p.name = (char *)sfep->name; in xfs_dir2_sf_getdents()
876 xfs_dir2_sf_entry_t *sfep; /* shortform directory entry */ in xfs_dir2_sf_lookup() local
913 for (i = 0, sfep = XFS_DIR2_SF_FIRSTENTRY(sfp); in xfs_dir2_sf_lookup()
915 i++, sfep = XFS_DIR2_SF_NEXTENTRY(sfp, sfep)) { in xfs_dir2_sf_lookup()
916 if (sfep->namelen == args->namelen && in xfs_dir2_sf_lookup()
917 sfep->name[0] == args->name[0] && in xfs_dir2_sf_lookup()
918 memcmp(args->name, sfep->name, args->namelen) == 0) { in xfs_dir2_sf_lookup()
921 XFS_DIR2_SF_INUMBERP(sfep), ARCH_CONVERT); in xfs_dir2_sf_lookup()
945 xfs_dir2_sf_entry_t *sfep; /* shortform directory entry */ in xfs_dir2_sf_removename() local
968 for (i = 0, sfep = XFS_DIR2_SF_FIRSTENTRY(sfp); in xfs_dir2_sf_removename()
970 i++, sfep = XFS_DIR2_SF_NEXTENTRY(sfp, sfep)) { in xfs_dir2_sf_removename()
971 if (sfep->namelen == args->namelen && in xfs_dir2_sf_removename()
972 sfep->name[0] == args->name[0] && in xfs_dir2_sf_removename()
973 memcmp(sfep->name, args->name, args->namelen) == 0) { in xfs_dir2_sf_removename()
975 XFS_DIR2_SF_INUMBERP(sfep), ARCH_CONVERT) == in xfs_dir2_sf_removename()
989 byteoff = (int)((char *)sfep - (char *)sfp); in xfs_dir2_sf_removename()
1039 xfs_dir2_sf_entry_t *sfep; /* shortform directory entry */ in xfs_dir2_sf_replace() local
1105 for (i = 0, sfep = XFS_DIR2_SF_FIRSTENTRY(sfp); in xfs_dir2_sf_replace()
1107 i++, sfep = XFS_DIR2_SF_NEXTENTRY(sfp, sfep)) { in xfs_dir2_sf_replace()
1108 if (sfep->namelen == args->namelen && in xfs_dir2_sf_replace()
1109 sfep->name[0] == args->name[0] && in xfs_dir2_sf_replace()
1110 memcmp(args->name, sfep->name, args->namelen) == 0) { in xfs_dir2_sf_replace()
1113 XFS_DIR2_SF_INUMBERP(sfep), ARCH_CONVERT); in xfs_dir2_sf_replace()
1117 XFS_DIR2_SF_INUMBERP(sfep), ARCH_CONVERT); in xfs_dir2_sf_replace()
1183 xfs_dir2_sf_entry_t *sfep; /* new sf entry */ in xfs_dir2_sf_toino4() local
1223 for (i = 0, sfep = XFS_DIR2_SF_FIRSTENTRY(sfp), in xfs_dir2_sf_toino4()
1226 i++, sfep = XFS_DIR2_SF_NEXTENTRY(sfp, sfep), in xfs_dir2_sf_toino4()
1228 sfep->namelen = oldsfep->namelen; in xfs_dir2_sf_toino4()
1229 sfep->offset = oldsfep->offset; in xfs_dir2_sf_toino4()
1230 memcpy(sfep->name, oldsfep->name, sfep->namelen); in xfs_dir2_sf_toino4()
1233 XFS_DIR2_SF_PUT_INUMBER_ARCH(sfp, &ino, XFS_DIR2_SF_INUMBERP(sfep), ARCH_CONVERT); in xfs_dir2_sf_toino4()
1260 xfs_dir2_sf_entry_t *sfep; /* new sf entry */ in xfs_dir2_sf_toino8() local
1300 for (i = 0, sfep = XFS_DIR2_SF_FIRSTENTRY(sfp), in xfs_dir2_sf_toino8()
1303 i++, sfep = XFS_DIR2_SF_NEXTENTRY(sfp, sfep), in xfs_dir2_sf_toino8()
1305 sfep->namelen = oldsfep->namelen; in xfs_dir2_sf_toino8()
1306 sfep->offset = oldsfep->offset; in xfs_dir2_sf_toino8()
1307 memcpy(sfep->name, oldsfep->name, sfep->namelen); in xfs_dir2_sf_toino8()
1310 XFS_DIR2_SF_PUT_INUMBER_ARCH(sfp, &ino, XFS_DIR2_SF_INUMBERP(sfep), ARCH_CONVERT); in xfs_dir2_sf_toino8()