Home
last modified time | relevance | path

Searched refs:printbuf (Results 1 – 25 of 126) sorted by relevance

123456

/linux-6.15/fs/bcachefs/
H A Dprintbuf.h76 struct printbuf { struct
107 const char *bch2_printbuf_str(const struct printbuf *);
108 void bch2_printbuf_exit(struct printbuf *);
110 void bch2_printbuf_tabstops_reset(struct printbuf *);
111 void bch2_printbuf_tabstop_pop(struct printbuf *);
118 void bch2_prt_newline(struct printbuf *);
120 void bch2_prt_tab(struct printbuf *);
121 void bch2_prt_tab_rjust(struct printbuf *);
126 void bch2_prt_units_u64(struct printbuf *, u64);
127 void bch2_prt_units_s64(struct printbuf *, s64);
[all …]
H A Dprintbuf.c26 static inline unsigned cur_tabstop(struct printbuf *buf) in cur_tabstop()
216 void bch2_printbuf_exit(struct printbuf *buf) in bch2_printbuf_exit()
229 void bch2_printbuf_tabstop_pop(struct printbuf *buf) in bch2_printbuf_tabstop_pop()
322 void bch2_prt_newline(struct printbuf *buf) in bch2_prt_newline()
352 static void __prt_tab(struct printbuf *out) in __prt_tab()
368 void bch2_prt_tab(struct printbuf *out) in bch2_prt_tab()
376 static void __prt_tab_rjust(struct printbuf *buf) in __prt_tab_rjust()
395 void bch2_prt_tab_rjust(struct printbuf *buf) in bch2_prt_tab_rjust()
483 void bch2_prt_string_option(struct printbuf *out, in bch2_prt_string_option()
491 void bch2_prt_bitflags(struct printbuf *out, in bch2_prt_bitflags()
[all …]
H A Dsuper-io.h21 void bch2_version_to_text(struct printbuf *, enum bcachefs_metadata_version);
67 enum bch_validate_flags, struct printbuf *);
68 void (*to_text)(struct printbuf *, struct bch_sb *, struct bch_sb_field *);
95 int bch2_sb_validate(struct bch_sb *, u64, enum bch_validate_flags, struct printbuf *);
111 void __bch2_sb_field_to_text(struct printbuf *, struct bch_sb *,
113 void bch2_sb_field_to_text(struct printbuf *, struct bch_sb *,
115 void bch2_sb_layout_to_text(struct printbuf *, struct bch_sb_layout *);
116 void bch2_sb_to_text(struct printbuf *, struct bch_sb *, bool, unsigned);
H A Ddisk_groups.h88 void bch2_disk_path_to_text(struct printbuf *, struct bch_fs *, unsigned);
89 void bch2_disk_path_to_text_sb(struct printbuf *, struct bch_sb *, unsigned);
91 void bch2_target_to_text(struct printbuf *out, struct bch_fs *, unsigned);
93 int bch2_opt_target_parse(struct bch_fs *, const char *, u64 *, struct printbuf *);
94 void bch2_opt_target_to_text(struct printbuf *, struct bch_fs *, struct bch_sb *, u64);
109 void bch2_disk_groups_to_text(struct printbuf *, struct bch_fs *);
H A Dopts.h30 void bch2_prt_fs_usage_type(struct printbuf *, enum bch_fs_usage_type);
31 void bch2_prt_data_type(struct printbuf *, enum bch_data_type);
32 void bch2_prt_csum_opt(struct printbuf *, enum bch_csum_opt);
33 void bch2_prt_csum_type(struct printbuf *, enum bch_csum_type);
35 void bch2_prt_str_hash_type(struct printbuf *, enum bch_str_hash_type);
81 int (*validate)(u64, struct printbuf *);
550 struct printbuf parse_later;
588 struct printbuf;
627 const char *, u64 *, struct printbuf *);
634 void bch2_opts_to_text(struct printbuf *,
[all …]
H A Derror.h21 void bch2_log_msg_start(struct bch_fs *, struct printbuf *);
34 bool __bch2_inconsistent_error(struct bch_fs *, struct printbuf *);
58 int __bch2_topology_error(struct bch_fs *, struct printbuf *);
244 int bch2_inum_offset_err_msg_trans(struct btree_trans *, struct printbuf *, subvol_inum, u64);
246 void bch2_inum_offset_err_msg(struct bch_fs *, struct printbuf *, subvol_inum, u64);
248 int bch2_inum_snap_offset_err_msg_trans(struct btree_trans *, struct printbuf *, struct bpos);
249 void bch2_inum_snap_offset_err_msg(struct bch_fs *, struct printbuf *, struct bpos);
H A Dbtree_cache.h147 void bch2_btree_id_to_text(struct printbuf *, enum btree_id);
148 void bch2_btree_id_level_to_text(struct printbuf *, enum btree_id, unsigned);
150 void __bch2_btree_pos_to_text(struct printbuf *, struct bch_fs *,
152 void bch2_btree_pos_to_text(struct printbuf *, struct bch_fs *, const struct btree *);
153 void bch2_btree_node_to_text(struct printbuf *, struct bch_fs *, const struct btree *);
154 void bch2_btree_cache_to_text(struct printbuf *, const struct btree_cache *);
H A Dcompress.h61 void bch2_compression_opt_to_text(struct printbuf *, u64);
63 int bch2_opt_compression_parse(struct bch_fs *, const char *, u64 *, struct printbuf *);
64 void bch2_opt_compression_to_text(struct printbuf *, struct bch_fs *, struct bch_sb *, u64);
65 int bch2_opt_compression_validate(u64, struct printbuf *);
H A Derror.c14 void bch2_log_msg_start(struct bch_fs *c, struct printbuf *out) in bch2_log_msg_start()
23 bool __bch2_inconsistent_error(struct bch_fs *c, struct printbuf *out) in __bch2_inconsistent_error()
47 struct printbuf buf = PRINTBUF; in bch2_inconsistent_error()
63 struct printbuf buf = PRINTBUF; in bch2_fs_trans_inconsistent()
98 int __bch2_topology_error(struct bch_fs *c, struct printbuf *out) in __bch2_topology_error()
114 struct printbuf buf = PRINTBUF; in bch2_fs_topology_error()
300 static void prt_actioning(struct printbuf *out, const char *action) in prt_actioning()
322 struct printbuf *question, in do_fsck_ask_yn()
397 struct printbuf buf = PRINTBUF, *out = &buf; in __bch2_fsck_err()
616 struct printbuf buf = PRINTBUF; in __bch2_bkey_fsck_err()
[all …]
H A Dbkey_methods.h26 void (*val_to_text)(struct printbuf *, struct bch_fs *,
60 void bch2_bpos_to_text(struct printbuf *, struct bpos);
61 void bch2_bkey_to_text(struct printbuf *, const struct bkey *);
62 void bch2_val_to_text(struct printbuf *, struct bch_fs *,
64 void bch2_bkey_val_to_text(struct printbuf *, struct bch_fs *,
H A Dalloc_foreground.h243 void bch2_open_bucket_to_text(struct printbuf *, struct bch_fs *, struct open_bucket *);
244 void bch2_open_buckets_to_text(struct printbuf *, struct bch_fs *, struct bch_dev *);
245 void bch2_open_buckets_partial_to_text(struct printbuf *, struct bch_fs *);
247 void bch2_write_points_to_text(struct printbuf *, struct bch_fs *);
249 void bch2_fs_alloc_debug_to_text(struct printbuf *, struct bch_fs *);
250 void bch2_dev_alloc_debug_to_text(struct printbuf *, struct bch_dev *);
H A Ddata_update.h24 void bch2_data_update_opts_to_text(struct printbuf *, struct bch_fs *,
53 void bch2_data_update_to_text(struct printbuf *, struct data_update *);
54 void bch2_data_update_inflight_to_text(struct printbuf *, struct data_update *);
H A Dopts.c99 static void prt_str_opt_boundscheck(struct printbuf *out, const char * const opts[], in prt_str_opt_boundscheck()
109 void bch2_prt_##name(struct printbuf *out, type t) \
123 struct printbuf *err) in bch2_opt_fix_errors_parse()
140 static void bch2_opt_fix_errors_to_text(struct printbuf *out, in bch2_opt_fix_errors_to_text()
297 int bch2_opt_validate(const struct bch_option *opt, u64 v, struct printbuf *err) in bch2_opt_validate()
336 struct printbuf *err) in bch2_opt_parse()
414 void bch2_opt_to_text(struct printbuf *out, in bch2_opt_to_text()
457 void bch2_opts_to_text(struct printbuf *out, in bch2_opts_to_text()
518 struct printbuf *parse_later, in bch2_parse_one_mount_opt()
521 struct printbuf err = PRINTBUF; in bch2_parse_one_mount_opt()
[all …]
H A Dreplicas.h10 void bch2_replicas_entry_to_text(struct printbuf *,
13 struct bch_fs *, struct printbuf *);
14 void bch2_cpu_replicas_to_text(struct printbuf *, struct bch_replicas_cpu *);
H A Dreflink.h7 void bch2_reflink_p_to_text(struct printbuf *, struct bch_fs *, struct bkey_s_c);
23 void bch2_reflink_v_to_text(struct printbuf *, struct bch_fs *, struct bkey_s_c);
38 void bch2_indirect_inline_data_to_text(struct printbuf *,
H A Dlru.c27 void bch2_lru_to_text(struct printbuf *out, struct bch_fs *c, in bch2_lru_to_text()
35 void bch2_lru_pos_to_text(struct printbuf *out, struct bpos lru) in bch2_lru_pos_to_text()
89 struct printbuf buf = PRINTBUF; in bch2_lru_check_set()
171 struct printbuf buf1 = PRINTBUF; in bch2_check_lru_key()
172 struct printbuf buf2 = PRINTBUF; in bch2_check_lru_key()
H A Ddisk_groups.c22 enum bch_validate_flags flags, struct printbuf *err) in bch2_sb_disk_groups_validate()
89 void bch2_disk_groups_to_text(struct printbuf *out, struct bch_fs *c) in bch2_disk_groups_to_text()
118 static void bch2_sb_disk_groups_to_text(struct printbuf *out, in bch2_sb_disk_groups_to_text()
380 void bch2_disk_path_to_text(struct printbuf *out, struct bch_fs *c, unsigned v) in bch2_disk_path_to_text()
430 void bch2_disk_path_to_text_sb(struct printbuf *out, struct bch_sb *sb, unsigned v) in bch2_disk_path_to_text_sb()
504 struct printbuf *err) in bch2_opt_target_parse()
540 void bch2_target_to_text(struct printbuf *out, struct bch_fs *c, unsigned v) in bch2_target_to_text()
578 static void bch2_target_to_text_sb(struct printbuf *out, struct bch_sb *sb, unsigned v) in bch2_target_to_text_sb()
606 void bch2_opt_target_to_text(struct printbuf *out, in bch2_opt_target_to_text()
H A Dsuper-io.c87 struct printbuf buf = PRINTBUF; in bch2_set_version_incompat()
111 enum bch_validate_flags, struct printbuf *);
205 struct printbuf buf = PRINTBUF; in bch2_sb_realloc()
779 struct printbuf err = PRINTBUF; in __bch2_read_super()
780 struct printbuf err2 = PRINTBUF; in __bch2_read_super()
1015 struct printbuf err = PRINTBUF; in bch2_write_super()
1097 struct printbuf buf = PRINTBUF; in bch2_write_super()
1125 struct printbuf buf = PRINTBUF; in bch2_write_super()
1145 struct printbuf buf = PRINTBUF; in bch2_write_super()
1274 enum bch_validate_flags flags, struct printbuf *err) in bch2_sb_ext_validate()
[all …]
H A Dutil.h114 void bch2_pr_time_units(struct printbuf *, u64);
115 void bch2_prt_datetime(struct printbuf *, time64_t);
126 static inline void pr_uuid(struct printbuf *out, u8 *uuid) in pr_uuid()
211 void bch2_prt_u64_base2_nbits(struct printbuf *, u64, unsigned);
212 void bch2_prt_u64_base2(struct printbuf *, u64);
219 void bch2_prt_backtrace(struct printbuf *, bch_stacktrace *);
220 int bch2_prt_task_backtrace(struct printbuf *, struct task_struct *, unsigned, gfp_t);
222 static inline void prt_bdevname(struct printbuf *out, struct block_device *bdev) in prt_bdevname()
231 void bch2_time_stats_to_text(struct printbuf *, struct bch2_time_stats *);
287 void bch2_pd_controller_debug_to_text(struct printbuf *, struct bch_pd_controller *);
H A Dio_misc.h12 void bch2_logged_op_truncate_to_text(struct printbuf *, struct bch_fs *, struct bkey_s_c);
23 void bch2_logged_op_finsert_to_text(struct printbuf *, struct bch_fs *, struct bkey_s_c);
H A Djournal_io.c52 void bch2_journal_ptrs_to_text(struct printbuf *out, struct bch_fs *c, in bch2_journal_ptrs_to_text()
63 static void bch2_journal_replay_to_text(struct printbuf *out, struct bch_fs *c, in bch2_journal_replay_to_text()
149 struct printbuf buf = PRINTBUF; in journal_entry_add()
271 static void journal_entry_err_msg(struct printbuf *out, in journal_entry_err_msg()
301 struct printbuf _buf = PRINTBUF; \
602 struct printbuf err = PRINTBUF; in journal_entry_data_usage_validate()
861 void bch2_journal_entry_to_text(struct printbuf *out, struct bch_fs *c, in bch2_journal_entry_to_text()
1040 struct printbuf err = PRINTBUF; in journal_read_bucket()
1240 struct printbuf buf = PRINTBUF; in bch2_journal_read()
1368 struct printbuf buf1 = PRINTBUF, buf2 = PRINTBUF; in bch2_journal_read()
[all …]
H A Dreplicas.c47 static void bch2_replicas_entry_v0_to_text(struct printbuf *out, in bch2_replicas_entry_v0_to_text()
58 void bch2_replicas_entry_to_text(struct printbuf *out, in bch2_replicas_entry_to_text()
71 struct printbuf *err) in bch2_replicas_entry_sb_validate()
99 struct printbuf *err) in bch2_replicas_entry_validate()
125 void bch2_cpu_replicas_to_text(struct printbuf *out, in bch2_cpu_replicas_to_text()
693 struct printbuf *err) in bch2_cpu_replicas_validate()
729 enum bch_validate_flags flags, struct printbuf *err) in bch2_sb_replicas_validate()
744 static void bch2_sb_replicas_to_text(struct printbuf *out, in bch2_sb_replicas_to_text()
768 enum bch_validate_flags flags, struct printbuf *err) in bch2_sb_replicas_v0_validate()
783 static void bch2_sb_replicas_v0_to_text(struct printbuf *out, in bch2_sb_replicas_v0_to_text()
[all …]
H A Djournal_sb.c20 enum bch_validate_flags flags, struct printbuf *err) in bch2_sb_journal_validate()
71 static void bch2_sb_journal_to_text(struct printbuf *out, struct bch_sb *sb, in bch2_sb_journal_to_text()
102 enum bch_validate_flags flags, struct printbuf *err) in bch2_sb_journal_v2_validate()
172 static void bch2_sb_journal_v2_to_text(struct printbuf *out, struct bch_sb *sb, in bch2_sb_journal_v2_to_text()
H A Dutil.c244 void bch2_prt_u64_base2_nbits(struct printbuf *out, u64 v, unsigned nr_bits) in bch2_prt_u64_base2_nbits()
250 void bch2_prt_u64_base2(struct printbuf *out, u64 v) in bch2_prt_u64_base2()
322 void bch2_prt_backtrace(struct printbuf *out, bch_stacktrace *stack) in bch2_prt_backtrace()
330 int bch2_prt_task_backtrace(struct printbuf *out, struct task_struct *task, unsigned skipnr, gfp_t … in bch2_prt_task_backtrace()
342 void bch2_prt_datetime(struct printbuf *out, time64_t sec) in bch2_prt_datetime()
351 void bch2_prt_datetime(struct printbuf *out, time64_t sec) in bch2_prt_datetime()
359 void bch2_pr_time_units(struct printbuf *out, u64 ns) in bch2_pr_time_units()
366 static void bch2_pr_time_units_aligned(struct printbuf *out, u64 ns) in bch2_pr_time_units_aligned()
373 static inline void pr_name_and_units(struct printbuf *out, const char *name, u64 ns) in pr_name_and_units()
382 void bch2_time_stats_to_text(struct printbuf *out, struct bch2_time_stats *stats) in bch2_time_stats_to_text()
[all …]
H A Dinode.h18 void bch2_inode_to_text(struct printbuf *, struct bch_fs *, struct bkey_s_c);
63 void bch2_inode_generation_to_text(struct printbuf *, struct bch_fs *, struct bkey_s_c);
73 void bch2_inode_alloc_cursor_to_text(struct printbuf *, struct bch_fs *, struct bkey_s_c);
118 void bch2_inode_unpacked_to_text(struct printbuf *, struct bch_inode_unpacked *);

123456