Lines Matching refs:fname
368 struct fname { struct
372 struct fname *next; argument
385 struct fname *fname, *next; in free_rb_tree_fname() argument
387 rbtree_postorder_for_each_entry_safe(fname, next, root, rb_hash) in free_rb_tree_fname()
388 while (fname) { in free_rb_tree_fname()
389 struct fname *old = fname; in free_rb_tree_fname()
390 fname = fname->next; in free_rb_tree_fname()
430 struct fname *fname, *new_fn; in ext4_htree_store_dirent() local
438 len = sizeof(struct fname) + ent_name->len + 1; in ext4_htree_store_dirent()
452 fname = rb_entry(parent, struct fname, rb_hash); in ext4_htree_store_dirent()
458 if ((new_fn->hash == fname->hash) && in ext4_htree_store_dirent()
459 (new_fn->minor_hash == fname->minor_hash)) { in ext4_htree_store_dirent()
460 new_fn->next = fname->next; in ext4_htree_store_dirent()
461 fname->next = new_fn; in ext4_htree_store_dirent()
465 if (new_fn->hash < fname->hash) in ext4_htree_store_dirent()
467 else if (new_fn->hash > fname->hash) in ext4_htree_store_dirent()
469 else if (new_fn->minor_hash < fname->minor_hash) in ext4_htree_store_dirent()
488 struct fname *fname) in call_filldir() argument
494 if (!fname) { in call_filldir()
500 ctx->pos = hash2pos(file, fname->hash, fname->minor_hash); in call_filldir()
501 while (fname) { in call_filldir()
502 if (!dir_emit(ctx, fname->name, in call_filldir()
503 fname->name_len, in call_filldir()
504 fname->inode, in call_filldir()
505 get_dtype(sb, fname->file_type))) { in call_filldir()
506 info->extra_fname = fname; in call_filldir()
509 fname = fname->next; in call_filldir()
518 struct fname *fname; in ext4_dx_readdir() local
575 fname = rb_entry(info->curr_node, struct fname, rb_hash); in ext4_dx_readdir()
576 info->curr_hash = fname->hash; in ext4_dx_readdir()
577 info->curr_minor_hash = fname->minor_hash; in ext4_dx_readdir()
578 if (call_filldir(file, ctx, fname)) in ext4_dx_readdir()
583 fname = rb_entry(info->curr_node, struct fname, in ext4_dx_readdir()
585 info->curr_hash = fname->hash; in ext4_dx_readdir()
586 info->curr_minor_hash = fname->minor_hash; in ext4_dx_readdir()