Lines Matching refs:new_fn
343 struct fname *fname, *new_fn;
352 new_fn = kzalloc(len, GFP_KERNEL);
353 if (!new_fn)
355 new_fn->hash = hash;
356 new_fn->minor_hash = minor_hash;
357 new_fn->inode = le32_to_cpu(dirent->inode);
358 new_fn->name_len = dirent->name_len;
359 new_fn->file_type = dirent->file_type;
360 memcpy(new_fn->name, dirent->name, dirent->name_len);
361 new_fn->name[dirent->name_len] = 0;
371 if ((new_fn->hash == fname->hash) &&
372 (new_fn->minor_hash == fname->minor_hash)) {
373 new_fn->next = fname->next;
374 fname->next = new_fn;
378 if (new_fn->hash < fname->hash)
380 else if (new_fn->hash > fname->hash)
382 else if (new_fn->minor_hash < fname->minor_hash)
384 else /* if (new_fn->minor_hash > fname->minor_hash) */
388 rb_link_node(&new_fn->rb_hash, parent, p);
389 rb_insert_color(&new_fn->rb_hash, &info->root);