| /fs/bcachefs/ |
| A D | printbuf.h | 76 struct printbuf { struct 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); 138 ((struct printbuf) { \ [all …]
|
| A D | printbuf.c | 26 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 …]
|
| A D | super-io.h | 21 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 *); 112 void __bch2_sb_field_to_text(struct printbuf *, struct bch_sb *, 114 void bch2_sb_field_to_text(struct printbuf *, struct bch_sb *, 116 void bch2_sb_layout_to_text(struct printbuf *, struct bch_sb_layout *); 117 void bch2_sb_to_text(struct printbuf *, struct bch_sb *, bool, unsigned);
|
| A D | error.h | 21 void __bch2_log_msg_start(const char *, struct printbuf *); 23 static inline void bch2_log_msg_start(struct bch_fs *c, struct printbuf *out) in bch2_log_msg_start() 39 bool __bch2_inconsistent_error(struct bch_fs *, struct printbuf *); 63 int __bch2_topology_error(struct bch_fs *, struct printbuf *); 84 bool __bch2_count_fsck_err(struct bch_fs *, enum bch_sb_error_id, struct printbuf *); 251 int bch2_inum_offset_err_msg_trans(struct btree_trans *, struct printbuf *, subvol_inum, u64); 253 void bch2_inum_offset_err_msg(struct bch_fs *, struct printbuf *, subvol_inum, u64); 255 int bch2_inum_snap_offset_err_msg_trans(struct btree_trans *, struct printbuf *, struct bpos); 256 void bch2_inum_snap_offset_err_msg(struct bch_fs *, struct printbuf *, struct bpos);
|
| A D | opts.h | 31 void bch2_prt_fs_usage_type(struct printbuf *, enum bch_fs_usage_type); 32 void bch2_prt_data_type(struct printbuf *, enum bch_data_type); 33 void bch2_prt_csum_opt(struct printbuf *, enum bch_csum_opt); 34 void bch2_prt_csum_type(struct printbuf *, enum bch_csum_type); 36 void bch2_prt_str_hash_type(struct printbuf *, enum bch_str_hash_type); 82 int (*validate)(u64, struct printbuf *); 567 struct printbuf parse_later; 605 struct printbuf; 644 const char *, u64 *, struct printbuf *); 651 void bch2_opts_to_text(struct printbuf *, [all …]
|
| A D | disk_groups.h | 88 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 *);
|
| A D | error.c | 14 void __bch2_log_msg_start(const char *fs_or_dev_name, struct printbuf *out) in __bch2_log_msg_start() 23 bool __bch2_inconsistent_error(struct bch_fs *c, struct printbuf *out) in __bch2_inconsistent_error() 45 struct printbuf buf = PRINTBUF; in bch2_inconsistent_error() 61 struct printbuf buf = PRINTBUF; in bch2_fs_trans_inconsistent() 96 int __bch2_topology_error(struct bch_fs *c, struct printbuf *out) in __bch2_topology_error() 112 struct printbuf buf = PRINTBUF; in bch2_fs_topology_error() 152 struct printbuf buf = PRINTBUF; in bch2_io_error_work() 323 struct printbuf *question, in do_fsck_ask_yn() 381 enum bch_sb_error_id id, struct printbuf *msg) in __bch2_count_fsck_err() 446 struct printbuf buf = PRINTBUF, *out = &buf; in __bch2_fsck_err() [all …]
|
| A D | btree_cache.h | 148 void bch2_btree_id_to_text(struct printbuf *, enum btree_id); 149 void bch2_btree_id_level_to_text(struct printbuf *, enum btree_id, unsigned); 151 void __bch2_btree_pos_to_text(struct printbuf *, struct bch_fs *, 153 void bch2_btree_pos_to_text(struct printbuf *, struct bch_fs *, const struct btree *); 154 void bch2_btree_node_to_text(struct printbuf *, struct bch_fs *, const struct btree *); 155 void bch2_btree_cache_to_text(struct printbuf *, const struct btree_cache *);
|
| A D | recovery_passes.h | 31 int __bch2_run_explicit_recovery_pass(struct bch_fs *, struct printbuf *, 34 int bch2_run_explicit_recovery_pass(struct bch_fs *, struct printbuf *, 38 int bch2_require_recovery_pass(struct bch_fs *, struct printbuf *, 44 void bch2_recovery_pass_status_to_text(struct printbuf *, struct bch_fs *);
|
| A D | compress.h | 61 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 *);
|
| A D | async_objs.c | 16 static void promote_obj_to_text(struct printbuf *out, void *obj) in promote_obj_to_text() 21 static void rbio_obj_to_text(struct printbuf *out, void *obj) in rbio_obj_to_text() 26 static void write_op_obj_to_text(struct printbuf *out, void *obj) in write_op_obj_to_text() 31 static void btree_read_bio_obj_to_text(struct printbuf *out, void *obj) in btree_read_bio_obj_to_text() 37 static void btree_write_bio_obj_to_text(struct printbuf *out, void *obj) in btree_write_bio_obj_to_text()
|
| A D | bkey_methods.h | 26 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 *,
|
| A D | disk_groups.c | 22 enum bch_validate_flags flags, struct printbuf *err) in bch2_sb_disk_groups_validate() 89 static void bch2_sb_disk_groups_to_text(struct printbuf *out, in bch2_sb_disk_groups_to_text() 336 static void __bch2_disk_path_to_text(struct printbuf *out, struct bch_disk_groups_cpu *g, in __bch2_disk_path_to_text() 374 void bch2_disk_groups_to_text(struct printbuf *out, struct bch_fs *c) in bch2_disk_groups_to_text() 403 void bch2_disk_path_to_text(struct printbuf *out, struct bch_fs *c, unsigned v) in bch2_disk_path_to_text() 411 void bch2_disk_path_to_text_sb(struct printbuf *out, struct bch_sb *sb, unsigned v) in bch2_disk_path_to_text_sb() 485 struct printbuf *err) in bch2_opt_target_parse() 521 void bch2_target_to_text(struct printbuf *out, struct bch_fs *c, unsigned v) in bch2_target_to_text() 554 static void bch2_target_to_text_sb(struct printbuf *out, struct bch_sb *sb, unsigned v) in bch2_target_to_text_sb() 582 void bch2_opt_target_to_text(struct printbuf *out, in bch2_opt_target_to_text()
|
| A D | alloc_foreground.h | 302 void bch2_open_bucket_to_text(struct printbuf *, struct bch_fs *, struct open_bucket *); 303 void bch2_open_buckets_to_text(struct printbuf *, struct bch_fs *, struct bch_dev *); 304 void bch2_open_buckets_partial_to_text(struct printbuf *, struct bch_fs *); 306 void bch2_write_points_to_text(struct printbuf *, struct bch_fs *); 308 void bch2_fs_alloc_debug_to_text(struct printbuf *, struct bch_fs *); 309 void bch2_dev_alloc_debug_to_text(struct printbuf *, struct bch_dev *);
|
| A D | util.h | 117 void bch2_pr_time_units(struct printbuf *, u64); 118 void bch2_prt_datetime(struct printbuf *, time64_t); 129 static inline void pr_uuid(struct printbuf *out, u8 *uuid) in pr_uuid() 214 void bch2_prt_u64_base2_nbits(struct printbuf *, u64, unsigned); 215 void bch2_prt_u64_base2(struct printbuf *, u64); 221 void bch2_prt_backtrace(struct printbuf *, bch_stacktrace *); 222 int bch2_prt_task_backtrace(struct printbuf *, struct task_struct *, unsigned, gfp_t); 224 static inline void prt_bdevname(struct printbuf *out, struct block_device *bdev) in prt_bdevname() 233 void bch2_time_stats_to_text(struct printbuf *, struct bch2_time_stats *); 289 void bch2_pd_controller_debug_to_text(struct printbuf *, struct bch_pd_controller *); [all …]
|
| A D | opts.c | 106 static void prt_str_opt_boundscheck(struct printbuf *out, const char * const opts[], in prt_str_opt_boundscheck() 116 void bch2_prt_##name(struct printbuf *out, type t) \ 130 struct printbuf *err) in bch2_opt_fix_errors_parse() 147 static void bch2_opt_fix_errors_to_text(struct printbuf *out, in bch2_opt_fix_errors_to_text() 328 int bch2_opt_validate(const struct bch_option *opt, u64 v, struct printbuf *err) in bch2_opt_validate() 367 struct printbuf *err) in bch2_opt_parse() 452 void bch2_opt_to_text(struct printbuf *out, in bch2_opt_to_text() 495 void bch2_opts_to_text(struct printbuf *out, in bch2_opts_to_text() 613 struct printbuf *parse_later, in bch2_parse_one_mount_opt() 616 struct printbuf err = PRINTBUF; in bch2_parse_one_mount_opt() [all …]
|
| A D | super-io.c | 87 struct printbuf buf = PRINTBUF; in bch2_set_version_incompat() 112 enum bch_validate_flags, struct printbuf *); 206 struct printbuf buf = PRINTBUF; in bch2_sb_realloc() 789 struct printbuf err = PRINTBUF; in __bch2_read_super() 790 struct printbuf err2 = PRINTBUF; in __bch2_read_super() 1025 struct printbuf err = PRINTBUF; in bch2_write_super() 1107 struct printbuf buf = PRINTBUF; in bch2_write_super() 1135 struct printbuf buf = PRINTBUF; in bch2_write_super() 1155 struct printbuf buf = PRINTBUF; in bch2_write_super() 1289 struct printbuf buf = PRINTBUF; in bch2_sb_upgrade_incompat() [all …]
|
| A D | data_update.h | 24 void bch2_data_update_opts_to_text(struct printbuf *, struct bch_fs *, 68 void bch2_data_update_to_text(struct printbuf *, struct data_update *); 69 void bch2_data_update_inflight_to_text(struct printbuf *, struct data_update *);
|
| A D | lru.c | 27 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() 169 struct printbuf buf1 = PRINTBUF; in bch2_check_lru_key() 170 struct printbuf buf2 = PRINTBUF; in bch2_check_lru_key()
|
| A D | journal_io.c | 70 static void bch2_journal_datetime_to_text(struct printbuf *out, struct jset *j) in bch2_journal_datetime_to_text() 160 struct printbuf buf = PRINTBUF; in journal_entry_add() 285 static void journal_entry_err_msg(struct printbuf *out, in journal_entry_err_msg() 315 struct printbuf _buf = PRINTBUF; \ 620 struct printbuf err = PRINTBUF; in journal_entry_data_usage_validate() 879 void bch2_journal_entry_to_text(struct printbuf *out, struct bch_fs *c, in bch2_journal_entry_to_text() 1247 struct printbuf buf = PRINTBUF; in bch2_journal_print_checksum_error() 1278 struct printbuf buf = PRINTBUF; in bch2_journal_check_for_missing() 1344 struct printbuf buf = PRINTBUF; in bch2_journal_read() 1715 struct printbuf buf = PRINTBUF; in CLOSURE_CALLBACK() [all …]
|
| A D | reflink.h | 7 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 *,
|
| A D | replicas.h | 10 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 *);
|
| A D | util.c | 244 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() 319 void bch2_prt_backtrace(struct printbuf *out, bch_stacktrace *stack) in bch2_prt_backtrace() 339 void bch2_prt_datetime(struct printbuf *out, time64_t sec) in bch2_prt_datetime() 348 void bch2_prt_datetime(struct printbuf *out, time64_t sec) in bch2_prt_datetime() 356 void bch2_pr_time_units(struct printbuf *out, u64 ns) in bch2_pr_time_units() 363 static void bch2_pr_time_units_aligned(struct printbuf *out, u64 ns) in bch2_pr_time_units_aligned() 370 static inline void pr_name_and_units(struct printbuf *out, const char *name, u64 ns) in pr_name_and_units() 379 void bch2_time_stats_to_text(struct printbuf *out, struct bch2_time_stats *stats) in bch2_time_stats_to_text() 584 void bch2_pd_controller_debug_to_text(struct printbuf *out, struct bch_pd_controller *pd) in bch2_pd_controller_debug_to_text() [all …]
|
| A D | replicas.c | 47 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 …]
|
| A D | recovery_passes.c | 74 enum bch_validate_flags flags, struct printbuf *err) in bch2_sb_recovery_passes_validate() 79 static void bch2_sb_recovery_passes_to_text(struct printbuf *out, in bch2_sb_recovery_passes_to_text() 339 struct printbuf *out, in __bch2_run_explicit_recovery_pass() 410 struct printbuf *out, in bch2_run_explicit_recovery_pass() 431 struct printbuf *out, in bch2_require_recovery_pass() 461 struct printbuf buf = PRINTBUF; in bch2_run_print_explicit_recovery_pass() 616 static void prt_passes(struct printbuf *out, const char *msg, u64 passes) in prt_passes() 623 void bch2_recovery_pass_status_to_text(struct printbuf *out, struct bch_fs *c) in bch2_recovery_pass_status_to_text()
|