Lines Matching refs:dent
239 struct ubifs_dent_node *dent, *pdent = NULL; in ubifs_dump_inode() local
283 dent = ubifs_tnc_next_ent(c, &key, &nm); in ubifs_dump_inode()
284 if (IS_ERR(dent)) { in ubifs_dump_inode()
285 if (PTR_ERR(dent) != -ENOENT) in ubifs_dump_inode()
286 pr_err("error %ld\n", PTR_ERR(dent)); in ubifs_dump_inode()
291 count++, (unsigned long long) le64_to_cpu(dent->inum), in ubifs_dump_inode()
292 get_dent_type(dent->type), in ubifs_dump_inode()
293 le16_to_cpu(dent->nlen)); in ubifs_dump_inode()
295 fname_name(&nm) = dent->name; in ubifs_dump_inode()
296 fname_len(&nm) = le16_to_cpu(dent->nlen); in ubifs_dump_inode()
298 pdent = dent; in ubifs_dump_inode()
299 key_read(c, &dent->key, &key); in ubifs_dump_inode()
454 const struct ubifs_dent_node *dent = node; in ubifs_dump_node() local
455 int nlen = le16_to_cpu(dent->nlen); in ubifs_dump_node()
457 key_read(c, &dent->key, &key); in ubifs_dump_node()
461 (unsigned long long)le64_to_cpu(dent->inum)); in ubifs_dump_node()
462 pr_err("\ttype %d\n", (int)dent->type); in ubifs_dump_node()
469 for (i = 0; i < nlen && dent->name[i]; i++) in ubifs_dump_node()
470 pr_cont("%c", isprint(dent->name[i]) ? in ubifs_dump_node()
471 dent->name[i] : '?'); in ubifs_dump_node()
1113 struct ubifs_dent_node *dent, *pdent = NULL; in dbg_check_dir() local
1127 dent = ubifs_tnc_next_ent(c, &key, &nm); in dbg_check_dir()
1128 if (IS_ERR(dent)) { in dbg_check_dir()
1129 err = PTR_ERR(dent); in dbg_check_dir()
1135 fname_name(&nm) = dent->name; in dbg_check_dir()
1136 fname_len(&nm) = le16_to_cpu(dent->nlen); in dbg_check_dir()
1138 if (dent->type == UBIFS_ITYPE_DIR) in dbg_check_dir()
1141 pdent = dent; in dbg_check_dir()
1142 key_read(c, &dent->key, &key); in dbg_check_dir()
2066 struct ubifs_dent_node *dent = node; in check_leaf() local
2071 err = ubifs_validate_entry(c, dent); in check_leaf()
2079 inum = le64_to_cpu(dent->inum); in check_leaf()
2091 inum = key_inum_flash(c, &dent->key); in check_leaf()
2100 nlen = le16_to_cpu(dent->nlen); in check_leaf()
2108 if (dent->type == UBIFS_ITYPE_DIR) in check_leaf()
2688 struct dentry *dent = file->f_path.dentry; in dfs_file_read() local
2693 if (dent == d->dfs_chk_gen) in dfs_file_read()
2695 else if (dent == d->dfs_chk_index) in dfs_file_read()
2697 else if (dent == d->dfs_chk_orph) in dfs_file_read()
2699 else if (dent == d->dfs_chk_lprops) in dfs_file_read()
2701 else if (dent == d->dfs_chk_fs) in dfs_file_read()
2703 else if (dent == d->dfs_tst_rcvry) in dfs_file_read()
2705 else if (dent == d->dfs_ro_error) in dfs_file_read()
2744 struct dentry *dent = file->f_path.dentry; in dfs_file_write() local
2778 if (dent == d->dfs_chk_gen) in dfs_file_write()
2780 else if (dent == d->dfs_chk_index) in dfs_file_write()
2782 else if (dent == d->dfs_chk_orph) in dfs_file_write()
2784 else if (dent == d->dfs_chk_lprops) in dfs_file_write()
2786 else if (dent == d->dfs_chk_fs) in dfs_file_write()
2788 else if (dent == d->dfs_tst_rcvry) in dfs_file_write()
2790 else if (dent == d->dfs_ro_error) in dfs_file_write()
2822 struct dentry *dent; in dbg_debugfs_init_fs() local
2833 dent = ERR_PTR(-EINVAL); in dbg_debugfs_init_fs()
2838 dent = debugfs_create_dir(fname, dfs_rootdir); in dbg_debugfs_init_fs()
2839 if (IS_ERR_OR_NULL(dent)) in dbg_debugfs_init_fs()
2841 d->dfs_dir = dent; in dbg_debugfs_init_fs()
2844 dent = debugfs_create_file(fname, S_IWUSR, d->dfs_dir, c, &dfs_fops); in dbg_debugfs_init_fs()
2845 if (IS_ERR_OR_NULL(dent)) in dbg_debugfs_init_fs()
2847 d->dfs_dump_lprops = dent; in dbg_debugfs_init_fs()
2850 dent = debugfs_create_file(fname, S_IWUSR, d->dfs_dir, c, &dfs_fops); in dbg_debugfs_init_fs()
2851 if (IS_ERR_OR_NULL(dent)) in dbg_debugfs_init_fs()
2853 d->dfs_dump_budg = dent; in dbg_debugfs_init_fs()
2856 dent = debugfs_create_file(fname, S_IWUSR, d->dfs_dir, c, &dfs_fops); in dbg_debugfs_init_fs()
2857 if (IS_ERR_OR_NULL(dent)) in dbg_debugfs_init_fs()
2859 d->dfs_dump_tnc = dent; in dbg_debugfs_init_fs()
2862 dent = debugfs_create_file(fname, S_IRUSR | S_IWUSR, d->dfs_dir, c, in dbg_debugfs_init_fs()
2864 if (IS_ERR_OR_NULL(dent)) in dbg_debugfs_init_fs()
2866 d->dfs_chk_gen = dent; in dbg_debugfs_init_fs()
2869 dent = debugfs_create_file(fname, S_IRUSR | S_IWUSR, d->dfs_dir, c, in dbg_debugfs_init_fs()
2871 if (IS_ERR_OR_NULL(dent)) in dbg_debugfs_init_fs()
2873 d->dfs_chk_index = dent; in dbg_debugfs_init_fs()
2876 dent = debugfs_create_file(fname, S_IRUSR | S_IWUSR, d->dfs_dir, c, in dbg_debugfs_init_fs()
2878 if (IS_ERR_OR_NULL(dent)) in dbg_debugfs_init_fs()
2880 d->dfs_chk_orph = dent; in dbg_debugfs_init_fs()
2883 dent = debugfs_create_file(fname, S_IRUSR | S_IWUSR, d->dfs_dir, c, in dbg_debugfs_init_fs()
2885 if (IS_ERR_OR_NULL(dent)) in dbg_debugfs_init_fs()
2887 d->dfs_chk_lprops = dent; in dbg_debugfs_init_fs()
2890 dent = debugfs_create_file(fname, S_IRUSR | S_IWUSR, d->dfs_dir, c, in dbg_debugfs_init_fs()
2892 if (IS_ERR_OR_NULL(dent)) in dbg_debugfs_init_fs()
2894 d->dfs_chk_fs = dent; in dbg_debugfs_init_fs()
2897 dent = debugfs_create_file(fname, S_IRUSR | S_IWUSR, d->dfs_dir, c, in dbg_debugfs_init_fs()
2899 if (IS_ERR_OR_NULL(dent)) in dbg_debugfs_init_fs()
2901 d->dfs_tst_rcvry = dent; in dbg_debugfs_init_fs()
2904 dent = debugfs_create_file(fname, S_IRUSR | S_IWUSR, d->dfs_dir, c, in dbg_debugfs_init_fs()
2906 if (IS_ERR_OR_NULL(dent)) in dbg_debugfs_init_fs()
2908 d->dfs_ro_error = dent; in dbg_debugfs_init_fs()
2915 err = dent ? PTR_ERR(dent) : -ENODEV; in dbg_debugfs_init_fs()
2943 struct dentry *dent = file->f_path.dentry; in dfs_global_file_read() local
2946 if (dent == dfs_chk_gen) in dfs_global_file_read()
2948 else if (dent == dfs_chk_index) in dfs_global_file_read()
2950 else if (dent == dfs_chk_orph) in dfs_global_file_read()
2952 else if (dent == dfs_chk_lprops) in dfs_global_file_read()
2954 else if (dent == dfs_chk_fs) in dfs_global_file_read()
2956 else if (dent == dfs_tst_rcvry) in dfs_global_file_read()
2967 struct dentry *dent = file->f_path.dentry; in dfs_global_file_write() local
2974 if (dent == dfs_chk_gen) in dfs_global_file_write()
2976 else if (dent == dfs_chk_index) in dfs_global_file_write()
2978 else if (dent == dfs_chk_orph) in dfs_global_file_write()
2980 else if (dent == dfs_chk_lprops) in dfs_global_file_write()
2982 else if (dent == dfs_chk_fs) in dfs_global_file_write()
2984 else if (dent == dfs_tst_rcvry) in dfs_global_file_write()
3011 struct dentry *dent; in dbg_debugfs_init() local
3017 dent = debugfs_create_dir(fname, NULL); in dbg_debugfs_init()
3018 if (IS_ERR_OR_NULL(dent)) in dbg_debugfs_init()
3020 dfs_rootdir = dent; in dbg_debugfs_init()
3023 dent = debugfs_create_file(fname, S_IRUSR | S_IWUSR, dfs_rootdir, NULL, in dbg_debugfs_init()
3025 if (IS_ERR_OR_NULL(dent)) in dbg_debugfs_init()
3027 dfs_chk_gen = dent; in dbg_debugfs_init()
3030 dent = debugfs_create_file(fname, S_IRUSR | S_IWUSR, dfs_rootdir, NULL, in dbg_debugfs_init()
3032 if (IS_ERR_OR_NULL(dent)) in dbg_debugfs_init()
3034 dfs_chk_index = dent; in dbg_debugfs_init()
3037 dent = debugfs_create_file(fname, S_IRUSR | S_IWUSR, dfs_rootdir, NULL, in dbg_debugfs_init()
3039 if (IS_ERR_OR_NULL(dent)) in dbg_debugfs_init()
3041 dfs_chk_orph = dent; in dbg_debugfs_init()
3044 dent = debugfs_create_file(fname, S_IRUSR | S_IWUSR, dfs_rootdir, NULL, in dbg_debugfs_init()
3046 if (IS_ERR_OR_NULL(dent)) in dbg_debugfs_init()
3048 dfs_chk_lprops = dent; in dbg_debugfs_init()
3051 dent = debugfs_create_file(fname, S_IRUSR | S_IWUSR, dfs_rootdir, NULL, in dbg_debugfs_init()
3053 if (IS_ERR_OR_NULL(dent)) in dbg_debugfs_init()
3055 dfs_chk_fs = dent; in dbg_debugfs_init()
3058 dent = debugfs_create_file(fname, S_IRUSR | S_IWUSR, dfs_rootdir, NULL, in dbg_debugfs_init()
3060 if (IS_ERR_OR_NULL(dent)) in dbg_debugfs_init()
3062 dfs_tst_rcvry = dent; in dbg_debugfs_init()
3069 err = dent ? PTR_ERR(dent) : -ENODEV; in dbg_debugfs_init()