Lines Matching refs:fname
389 struct fname { struct
393 struct fname *next; argument
408 struct fname *fname; in free_rb_tree_fname() argument
427 fname = rb_entry(n, struct fname, rb_hash); in free_rb_tree_fname()
428 while (fname) { in free_rb_tree_fname()
429 struct fname *old = fname; in free_rb_tree_fname()
430 fname = fname->next; in free_rb_tree_fname()
471 struct fname *fname, *new_fn; in ext4_htree_store_dirent() local
479 len = sizeof(struct fname) + dirent->name_len + 1; in ext4_htree_store_dirent()
493 fname = rb_entry(parent, struct fname, rb_hash); in ext4_htree_store_dirent()
499 if ((new_fn->hash == fname->hash) && in ext4_htree_store_dirent()
500 (new_fn->minor_hash == fname->minor_hash)) { in ext4_htree_store_dirent()
501 new_fn->next = fname->next; in ext4_htree_store_dirent()
502 fname->next = new_fn; in ext4_htree_store_dirent()
506 if (new_fn->hash < fname->hash) in ext4_htree_store_dirent()
508 else if (new_fn->hash > fname->hash) in ext4_htree_store_dirent()
510 else if (new_fn->minor_hash < fname->minor_hash) in ext4_htree_store_dirent()
529 filldir_t filldir, struct fname *fname) in call_filldir() argument
539 if (!fname) { in call_filldir()
545 curr_pos = hash2pos(filp, fname->hash, fname->minor_hash); in call_filldir()
546 while (fname) { in call_filldir()
547 error = filldir(dirent, fname->name, in call_filldir()
548 fname->name_len, curr_pos, in call_filldir()
549 fname->inode, in call_filldir()
550 get_dtype(sb, fname->file_type)); in call_filldir()
553 info->extra_fname = fname; in call_filldir()
556 fname = fname->next; in call_filldir()
566 struct fname *fname; in ext4_dx_readdir() local
623 fname = rb_entry(info->curr_node, struct fname, rb_hash); in ext4_dx_readdir()
624 info->curr_hash = fname->hash; in ext4_dx_readdir()
625 info->curr_minor_hash = fname->minor_hash; in ext4_dx_readdir()
626 if (call_filldir(filp, dirent, filldir, fname)) in ext4_dx_readdir()
631 fname = rb_entry(info->curr_node, struct fname, in ext4_dx_readdir()
633 info->curr_hash = fname->hash; in ext4_dx_readdir()
634 info->curr_minor_hash = fname->minor_hash; in ext4_dx_readdir()