Lines Matching refs:new_fn
449 struct fname *fname, *new_fn; in ext4_htree_store_dirent() local
458 new_fn = kzalloc(len, GFP_KERNEL); in ext4_htree_store_dirent()
459 if (!new_fn) in ext4_htree_store_dirent()
461 new_fn->hash = hash; in ext4_htree_store_dirent()
462 new_fn->minor_hash = minor_hash; in ext4_htree_store_dirent()
463 new_fn->inode = le32_to_cpu(dirent->inode); in ext4_htree_store_dirent()
464 new_fn->name_len = ent_name->len; in ext4_htree_store_dirent()
465 new_fn->file_type = dirent->file_type; in ext4_htree_store_dirent()
466 memcpy(new_fn->name, ent_name->name, ent_name->len); in ext4_htree_store_dirent()
467 new_fn->name[ent_name->len] = 0; in ext4_htree_store_dirent()
477 if ((new_fn->hash == fname->hash) && in ext4_htree_store_dirent()
478 (new_fn->minor_hash == fname->minor_hash)) { in ext4_htree_store_dirent()
479 new_fn->next = fname->next; in ext4_htree_store_dirent()
480 fname->next = new_fn; in ext4_htree_store_dirent()
484 if (new_fn->hash < fname->hash) in ext4_htree_store_dirent()
486 else if (new_fn->hash > fname->hash) in ext4_htree_store_dirent()
488 else if (new_fn->minor_hash < fname->minor_hash) in ext4_htree_store_dirent()
494 rb_link_node(&new_fn->rb_hash, parent, p); in ext4_htree_store_dirent()
495 rb_insert_color(&new_fn->rb_hash, &info->root); in ext4_htree_store_dirent()