Lines Matching refs:namelen
62 return (void *)sfep + xfs_dir2_sf_entsize(mp, hdr, sfep->namelen); in xfs_dir2_sf_nextentry()
77 uint8_t *from = sfep->name + sfep->namelen; in xfs_dir2_sf_get_ino()
94 uint8_t *to = sfep->name + sfep->namelen; in xfs_dir2_sf_put_ino()
139 uint8_t ftype = sfep->name[sfep->namelen]; in xfs_dir2_sf_get_ftype()
157 sfep->name[sfep->namelen] = ftype; in xfs_dir2_sf_put_ftype()
182 int namelen; /* total name bytes */ in xfs_dir2_block_sfsize() local
197 count = i8count = namelen = 0; in xfs_dir2_block_sfsize()
217 isdot = dep->namelen == 1 && dep->name[0] == '.'; in xfs_dir2_block_sfsize()
219 dep->namelen == 2 && in xfs_dir2_block_sfsize()
228 namelen += dep->namelen + has_ftype; in xfs_dir2_block_sfsize()
236 namelen + /* name */ in xfs_dir2_block_sfsize()
303 if (dep->namelen == 1 && dep->name[0] == '.') in xfs_dir2_block_to_sf()
308 else if (dep->namelen == 2 && in xfs_dir2_block_to_sf()
316 sfep->namelen = dep->namelen; in xfs_dir2_block_to_sf()
318 memcpy(sfep->name, dep->name, dep->namelen); in xfs_dir2_block_to_sf()
326 offset += xfs_dir2_data_entsize(mp, dep->namelen); in xfs_dir2_block_to_sf()
390 incr_isize = xfs_dir2_sf_entsize(dp->i_mount, sfp, args->namelen); in xfs_dir2_sf_addname()
473 xfs_idata_realloc(dp, xfs_dir2_sf_entsize(mp, sfp, args->namelen), in xfs_dir2_sf_addname_easy()
483 sfep->namelen = args->namelen; in xfs_dir2_sf_addname_easy()
485 memcpy(sfep->name, args->name, sfep->namelen); in xfs_dir2_sf_addname_easy()
543 add_datasize = xfs_dir2_data_entsize(mp, args->namelen), in xfs_dir2_sf_addname_hard()
546 offset = new_offset + xfs_dir2_data_entsize(mp, oldsfep->namelen), in xfs_dir2_sf_addname_hard()
573 sfep->namelen = args->namelen; in xfs_dir2_sf_addname_hard()
575 memcpy(sfep->name, args->name, sfep->namelen); in xfs_dir2_sf_addname_hard()
618 size = xfs_dir2_data_entsize(mp, args->namelen); in xfs_dir2_sf_addname_pick()
631 xfs_dir2_data_entsize(mp, sfep->namelen); in xfs_dir2_sf_addname_pick()
696 xfs_dir2_data_entsize(mp, sfep->namelen); in xfs_dir2_sf_check()
760 if (sfep->namelen == 0) in xfs_dir2_sf_verify()
789 xfs_dir2_data_entsize(mp, sfep->namelen); in xfs_dir2_sf_verify()
886 if (args->namelen == 1 && args->name[0] == '.') { in xfs_dir2_sf_lookup()
895 if (args->namelen == 2 && in xfs_dir2_sf_lookup()
913 cmp = xfs_dir2_compname(args, sfep->name, sfep->namelen); in xfs_dir2_sf_lookup()
931 return xfs_dir_cilookup_result(args, ci_sfep->name, ci_sfep->namelen); in xfs_dir2_sf_lookup()
966 if (xfs_da_compname(args, sfep->name, sfep->namelen) == in xfs_dir2_sf_removename()
982 entsize = xfs_dir2_sf_entsize(mp, sfp, args->namelen); in xfs_dir2_sf_removename()
1083 ASSERT(args->namelen != 1 || args->name[0] != '.'); in xfs_dir2_sf_replace()
1087 if (args->namelen == 2 && in xfs_dir2_sf_replace()
1099 if (xfs_da_compname(args, sfep->name, sfep->namelen) == in xfs_dir2_sf_replace()
1206 sfep->namelen = oldsfep->namelen; in xfs_dir2_sf_toino4()
1208 memcpy(sfep->name, oldsfep->name, sfep->namelen); in xfs_dir2_sf_toino4()
1279 sfep->namelen = oldsfep->namelen; in xfs_dir2_sf_toino8()
1281 memcpy(sfep->name, oldsfep->name, sfep->namelen); in xfs_dir2_sf_toino8()