Lines Matching refs:sfe

179 	xfs_dir_sf_entry_t *sfe;  in xfs_dir_shortform_addname()  local
196 sfe = &sf->list[0]; in xfs_dir_shortform_addname()
198 if (sfe->namelen == args->namelen && in xfs_dir_shortform_addname()
199 args->name[0] == sfe->name[0] && in xfs_dir_shortform_addname()
200 memcmp(args->name, sfe->name, args->namelen) == 0) in xfs_dir_shortform_addname()
202 sfe = XFS_DIR_SF_NEXTENTRY(sfe); in xfs_dir_shortform_addname()
205 offset = (int)((char *)sfe - (char *)sf); in xfs_dir_shortform_addname()
209 sfe = (xfs_dir_sf_entry_t *)((char *)sf + offset); in xfs_dir_shortform_addname()
211 XFS_DIR_SF_PUT_DIRINO_ARCH(&args->inumber, &sfe->inumber, ARCH_CONVERT); in xfs_dir_shortform_addname()
212 sfe->namelen = args->namelen; in xfs_dir_shortform_addname()
213 memcpy(sfe->name, args->name, sfe->namelen); in xfs_dir_shortform_addname()
229 xfs_dir_sf_entry_t *sfe; in xfs_dir_shortform_removename() local
247 sfe = &sf->list[0]; in xfs_dir_shortform_removename()
249 size = XFS_DIR_SF_ENTSIZE_BYENTRY(sfe); in xfs_dir_shortform_removename()
250 if (sfe->namelen == args->namelen && in xfs_dir_shortform_removename()
251 sfe->name[0] == args->name[0] && in xfs_dir_shortform_removename()
252 memcmp(sfe->name, args->name, args->namelen) == 0) in xfs_dir_shortform_removename()
255 sfe = XFS_DIR_SF_NEXTENTRY(sfe); in xfs_dir_shortform_removename()
282 xfs_dir_sf_entry_t *sfe; in xfs_dir_shortform_lookup() local
308 sfe = &sf->list[0]; in xfs_dir_shortform_lookup()
310 if (sfe->namelen == args->namelen && in xfs_dir_shortform_lookup()
311 sfe->name[0] == args->name[0] && in xfs_dir_shortform_lookup()
312 memcmp(args->name, sfe->name, args->namelen) == 0) { in xfs_dir_shortform_lookup()
313 XFS_DIR_SF_GET_DIRINO_ARCH(&sfe->inumber, &args->inumber, ARCH_CONVERT); in xfs_dir_shortform_lookup()
316 sfe = XFS_DIR_SF_NEXTENTRY(sfe); in xfs_dir_shortform_lookup()
330 xfs_dir_sf_entry_t *sfe; in xfs_dir_shortform_to_leaf() local
395 sfe = &sf->list[0]; in xfs_dir_shortform_to_leaf()
397 args.name = (char *)(sfe->name); in xfs_dir_shortform_to_leaf()
398 args.namelen = sfe->namelen; in xfs_dir_shortform_to_leaf()
399 args.hashval = xfs_da_hashname((char *)(sfe->name), in xfs_dir_shortform_to_leaf()
400 sfe->namelen); in xfs_dir_shortform_to_leaf()
401 XFS_DIR_SF_GET_DIRINO_ARCH(&sfe->inumber, &args.inumber, ARCH_CONVERT); in xfs_dir_shortform_to_leaf()
405 sfe = XFS_DIR_SF_NEXTENTRY(sfe); in xfs_dir_shortform_to_leaf()
438 xfs_dir_sf_entry_t *sfe; in xfs_dir_shortform_getdents() local
481 for (i = 0, sfe = &sf->list[0]; in xfs_dir_shortform_getdents()
485 ((char *)sfe < (char *)sf) || in xfs_dir_shortform_getdents()
486 ((char *)sfe >= ((char *)sf + dp->i_df.if_bytes)))) { in xfs_dir_shortform_getdents()
489 XFS_ERRLEVEL_LOW, mp, sfe); in xfs_dir_shortform_getdents()
496 sbp->hash = xfs_da_hashname((char *)sfe->name, sfe->namelen); in xfs_dir_shortform_getdents()
497 sbp->ino = XFS_GET_DIR_INO_ARCH(mp, sfe->inumber, ARCH_CONVERT); in xfs_dir_shortform_getdents()
498 sbp->name = (char *)sfe->name; in xfs_dir_shortform_getdents()
499 sbp->namelen = sfe->namelen; in xfs_dir_shortform_getdents()
500 sfe = XFS_DIR_SF_NEXTENTRY(sfe); in xfs_dir_shortform_getdents()
595 xfs_dir_sf_entry_t *sfe; in xfs_dir_shortform_replace() local
620 sfe = &sf->list[0]; in xfs_dir_shortform_replace()
622 if (sfe->namelen == args->namelen && in xfs_dir_shortform_replace()
623 sfe->name[0] == args->name[0] && in xfs_dir_shortform_replace()
624 memcmp(args->name, sfe->name, args->namelen) == 0) { in xfs_dir_shortform_replace()
626 (char *)&sfe->inumber, sizeof(xfs_ino_t))); in xfs_dir_shortform_replace()
627 XFS_DIR_SF_PUT_DIRINO_ARCH(&args->inumber, &sfe->inumber, ARCH_CONVERT); in xfs_dir_shortform_replace()
631 sfe = XFS_DIR_SF_NEXTENTRY(sfe); in xfs_dir_shortform_replace()