Lines Matching refs:dent
238 struct ubifs_dent_node *dent, *pdent = NULL; in ubifs_dump_inode() local
282 dent = ubifs_tnc_next_ent(c, &key, &nm); in ubifs_dump_inode()
283 if (IS_ERR(dent)) { in ubifs_dump_inode()
284 if (PTR_ERR(dent) != -ENOENT) in ubifs_dump_inode()
285 pr_err("error %ld\n", PTR_ERR(dent)); in ubifs_dump_inode()
290 count++, dent->name, get_dent_type(dent->type)); in ubifs_dump_inode()
292 nm.name = dent->name; in ubifs_dump_inode()
293 nm.len = le16_to_cpu(dent->nlen); in ubifs_dump_inode()
295 pdent = dent; in ubifs_dump_inode()
296 key_read(c, &dent->key, &key); in ubifs_dump_inode()
452 const struct ubifs_dent_node *dent = node; in ubifs_dump_node() local
453 int nlen = le16_to_cpu(dent->nlen); in ubifs_dump_node()
455 key_read(c, &dent->key, &key); in ubifs_dump_node()
459 (unsigned long long)le64_to_cpu(dent->inum)); in ubifs_dump_node()
460 pr_err("\ttype %d\n", (int)dent->type); in ubifs_dump_node()
467 for (i = 0; i < nlen && dent->name[i]; i++) in ubifs_dump_node()
468 pr_cont("%c", dent->name[i]); in ubifs_dump_node()
1117 struct ubifs_dent_node *dent, *pdent = NULL; in dbg_check_dir() local
1131 dent = ubifs_tnc_next_ent(c, &key, &nm); in dbg_check_dir()
1132 if (IS_ERR(dent)) { in dbg_check_dir()
1133 err = PTR_ERR(dent); in dbg_check_dir()
1139 nm.name = dent->name; in dbg_check_dir()
1140 nm.len = le16_to_cpu(dent->nlen); in dbg_check_dir()
1142 if (dent->type == UBIFS_ITYPE_DIR) in dbg_check_dir()
1145 pdent = dent; in dbg_check_dir()
1146 key_read(c, &dent->key, &key); in dbg_check_dir()
2106 struct ubifs_dent_node *dent = node; in check_leaf() local
2111 err = ubifs_validate_entry(c, dent); in check_leaf()
2119 inum = le64_to_cpu(dent->inum); in check_leaf()
2131 inum = key_inum_flash(c, &dent->key); in check_leaf()
2140 nlen = le16_to_cpu(dent->nlen); in check_leaf()
2148 if (dent->type == UBIFS_ITYPE_DIR) in check_leaf()
2728 struct dentry *dent = file->f_path.dentry; in dfs_file_read() local
2733 if (dent == d->dfs_chk_gen) in dfs_file_read()
2735 else if (dent == d->dfs_chk_index) in dfs_file_read()
2737 else if (dent == d->dfs_chk_orph) in dfs_file_read()
2739 else if (dent == d->dfs_chk_lprops) in dfs_file_read()
2741 else if (dent == d->dfs_chk_fs) in dfs_file_read()
2743 else if (dent == d->dfs_tst_rcvry) in dfs_file_read()
2745 else if (dent == d->dfs_ro_error) in dfs_file_read()
2784 struct dentry *dent = file->f_path.dentry; in dfs_file_write() local
2818 if (dent == d->dfs_chk_gen) in dfs_file_write()
2820 else if (dent == d->dfs_chk_index) in dfs_file_write()
2822 else if (dent == d->dfs_chk_orph) in dfs_file_write()
2824 else if (dent == d->dfs_chk_lprops) in dfs_file_write()
2826 else if (dent == d->dfs_chk_fs) in dfs_file_write()
2828 else if (dent == d->dfs_tst_rcvry) in dfs_file_write()
2830 else if (dent == d->dfs_ro_error) in dfs_file_write()
2862 struct dentry *dent; in dbg_debugfs_init_fs() local
2873 dent = ERR_PTR(-EINVAL); in dbg_debugfs_init_fs()
2878 dent = debugfs_create_dir(fname, dfs_rootdir); in dbg_debugfs_init_fs()
2879 if (IS_ERR_OR_NULL(dent)) in dbg_debugfs_init_fs()
2881 d->dfs_dir = dent; in dbg_debugfs_init_fs()
2884 dent = debugfs_create_file(fname, S_IWUSR, d->dfs_dir, c, &dfs_fops); in dbg_debugfs_init_fs()
2885 if (IS_ERR_OR_NULL(dent)) in dbg_debugfs_init_fs()
2887 d->dfs_dump_lprops = dent; in dbg_debugfs_init_fs()
2890 dent = debugfs_create_file(fname, S_IWUSR, d->dfs_dir, c, &dfs_fops); in dbg_debugfs_init_fs()
2891 if (IS_ERR_OR_NULL(dent)) in dbg_debugfs_init_fs()
2893 d->dfs_dump_budg = dent; in dbg_debugfs_init_fs()
2896 dent = debugfs_create_file(fname, S_IWUSR, d->dfs_dir, c, &dfs_fops); in dbg_debugfs_init_fs()
2897 if (IS_ERR_OR_NULL(dent)) in dbg_debugfs_init_fs()
2899 d->dfs_dump_tnc = dent; in dbg_debugfs_init_fs()
2902 dent = debugfs_create_file(fname, S_IRUSR | S_IWUSR, d->dfs_dir, c, in dbg_debugfs_init_fs()
2904 if (IS_ERR_OR_NULL(dent)) in dbg_debugfs_init_fs()
2906 d->dfs_chk_gen = dent; in dbg_debugfs_init_fs()
2909 dent = debugfs_create_file(fname, S_IRUSR | S_IWUSR, d->dfs_dir, c, in dbg_debugfs_init_fs()
2911 if (IS_ERR_OR_NULL(dent)) in dbg_debugfs_init_fs()
2913 d->dfs_chk_index = dent; in dbg_debugfs_init_fs()
2916 dent = debugfs_create_file(fname, S_IRUSR | S_IWUSR, d->dfs_dir, c, in dbg_debugfs_init_fs()
2918 if (IS_ERR_OR_NULL(dent)) in dbg_debugfs_init_fs()
2920 d->dfs_chk_orph = dent; in dbg_debugfs_init_fs()
2923 dent = debugfs_create_file(fname, S_IRUSR | S_IWUSR, d->dfs_dir, c, in dbg_debugfs_init_fs()
2925 if (IS_ERR_OR_NULL(dent)) in dbg_debugfs_init_fs()
2927 d->dfs_chk_lprops = dent; in dbg_debugfs_init_fs()
2930 dent = debugfs_create_file(fname, S_IRUSR | S_IWUSR, d->dfs_dir, c, in dbg_debugfs_init_fs()
2932 if (IS_ERR_OR_NULL(dent)) in dbg_debugfs_init_fs()
2934 d->dfs_chk_fs = dent; in dbg_debugfs_init_fs()
2937 dent = debugfs_create_file(fname, S_IRUSR | S_IWUSR, d->dfs_dir, c, in dbg_debugfs_init_fs()
2939 if (IS_ERR_OR_NULL(dent)) in dbg_debugfs_init_fs()
2941 d->dfs_tst_rcvry = dent; in dbg_debugfs_init_fs()
2944 dent = debugfs_create_file(fname, S_IRUSR | S_IWUSR, d->dfs_dir, c, in dbg_debugfs_init_fs()
2946 if (IS_ERR_OR_NULL(dent)) in dbg_debugfs_init_fs()
2948 d->dfs_ro_error = dent; in dbg_debugfs_init_fs()
2955 err = dent ? PTR_ERR(dent) : -ENODEV; in dbg_debugfs_init_fs()
2983 struct dentry *dent = file->f_path.dentry; in dfs_global_file_read() local
2986 if (dent == dfs_chk_gen) in dfs_global_file_read()
2988 else if (dent == dfs_chk_index) in dfs_global_file_read()
2990 else if (dent == dfs_chk_orph) in dfs_global_file_read()
2992 else if (dent == dfs_chk_lprops) in dfs_global_file_read()
2994 else if (dent == dfs_chk_fs) in dfs_global_file_read()
2996 else if (dent == dfs_tst_rcvry) in dfs_global_file_read()
3007 struct dentry *dent = file->f_path.dentry; in dfs_global_file_write() local
3014 if (dent == dfs_chk_gen) in dfs_global_file_write()
3016 else if (dent == dfs_chk_index) in dfs_global_file_write()
3018 else if (dent == dfs_chk_orph) in dfs_global_file_write()
3020 else if (dent == dfs_chk_lprops) in dfs_global_file_write()
3022 else if (dent == dfs_chk_fs) in dfs_global_file_write()
3024 else if (dent == dfs_tst_rcvry) in dfs_global_file_write()
3051 struct dentry *dent; in dbg_debugfs_init() local
3057 dent = debugfs_create_dir(fname, NULL); in dbg_debugfs_init()
3058 if (IS_ERR_OR_NULL(dent)) in dbg_debugfs_init()
3060 dfs_rootdir = dent; in dbg_debugfs_init()
3063 dent = debugfs_create_file(fname, S_IRUSR | S_IWUSR, dfs_rootdir, NULL, in dbg_debugfs_init()
3065 if (IS_ERR_OR_NULL(dent)) in dbg_debugfs_init()
3067 dfs_chk_gen = dent; in dbg_debugfs_init()
3070 dent = debugfs_create_file(fname, S_IRUSR | S_IWUSR, dfs_rootdir, NULL, in dbg_debugfs_init()
3072 if (IS_ERR_OR_NULL(dent)) in dbg_debugfs_init()
3074 dfs_chk_index = dent; in dbg_debugfs_init()
3077 dent = debugfs_create_file(fname, S_IRUSR | S_IWUSR, dfs_rootdir, NULL, in dbg_debugfs_init()
3079 if (IS_ERR_OR_NULL(dent)) in dbg_debugfs_init()
3081 dfs_chk_orph = dent; in dbg_debugfs_init()
3084 dent = debugfs_create_file(fname, S_IRUSR | S_IWUSR, dfs_rootdir, NULL, in dbg_debugfs_init()
3086 if (IS_ERR_OR_NULL(dent)) in dbg_debugfs_init()
3088 dfs_chk_lprops = dent; in dbg_debugfs_init()
3091 dent = debugfs_create_file(fname, S_IRUSR | S_IWUSR, dfs_rootdir, NULL, in dbg_debugfs_init()
3093 if (IS_ERR_OR_NULL(dent)) in dbg_debugfs_init()
3095 dfs_chk_fs = dent; in dbg_debugfs_init()
3098 dent = debugfs_create_file(fname, S_IRUSR | S_IWUSR, dfs_rootdir, NULL, in dbg_debugfs_init()
3100 if (IS_ERR_OR_NULL(dent)) in dbg_debugfs_init()
3102 dfs_tst_rcvry = dent; in dbg_debugfs_init()
3109 err = dent ? PTR_ERR(dent) : -ENODEV; in dbg_debugfs_init()