Lines Matching refs:new_fn
427 struct fname *fname, *new_fn; in ext4_htree_store_dirent() local
436 new_fn = kzalloc(len, GFP_KERNEL); in ext4_htree_store_dirent()
437 if (!new_fn) in ext4_htree_store_dirent()
439 new_fn->hash = hash; in ext4_htree_store_dirent()
440 new_fn->minor_hash = minor_hash; in ext4_htree_store_dirent()
441 new_fn->inode = le32_to_cpu(dirent->inode); in ext4_htree_store_dirent()
442 new_fn->name_len = ent_name->len; in ext4_htree_store_dirent()
443 new_fn->file_type = dirent->file_type; in ext4_htree_store_dirent()
444 memcpy(new_fn->name, ent_name->name, ent_name->len); in ext4_htree_store_dirent()
445 new_fn->name[ent_name->len] = 0; in ext4_htree_store_dirent()
455 if ((new_fn->hash == fname->hash) && in ext4_htree_store_dirent()
456 (new_fn->minor_hash == fname->minor_hash)) { in ext4_htree_store_dirent()
457 new_fn->next = fname->next; in ext4_htree_store_dirent()
458 fname->next = new_fn; in ext4_htree_store_dirent()
462 if (new_fn->hash < fname->hash) in ext4_htree_store_dirent()
464 else if (new_fn->hash > fname->hash) in ext4_htree_store_dirent()
466 else if (new_fn->minor_hash < fname->minor_hash) in ext4_htree_store_dirent()
472 rb_link_node(&new_fn->rb_hash, parent, p); in ext4_htree_store_dirent()
473 rb_insert_color(&new_fn->rb_hash, &info->root); in ext4_htree_store_dirent()