/linux/fs/bcachefs/ |
H A D | printbuf.h | 14 * struct printbuf buf = PRINTBUF; 22 * struct printbuf buf = PRINTBUF_EXTERN(char_buf, char_buf_size) 28 * Memory allocation: Outputing to a printbuf may allocate memory. This 33 * will be done with GFP_NOWAIT if printbuf->atomic is nonzero. 42 * to return -ENOMEM may check printbuf.allocation_failure. 52 * To use tabstops, set printbuf->tabstops[]; they are in units of spaces, from 61 * Output units: printbuf->units exists to tell pretty-printers how to output 76 struct printbuf { struct 104 int bch2_printbuf_make_room(struct printbuf *, unsigned); argument 105 __printf(2, 3) void bch2_prt_printf(struct printbuf *ou 90 si_unitsprintbuf global() argument 148 DEFINE_CLASS(printbuf,struct printbuf,bch2_printbuf_exit (& _T),bch2_printbuf_init (),void) DEFINE_CLASS() argument [all...] |
H A D | printbuf.c | 11 #include "printbuf.h" 13 static inline unsigned __printbuf_linelen(struct printbuf *buf, unsigned pos) in __printbuf_linelen() 18 static inline unsigned printbuf_linelen(struct printbuf *buf) in printbuf_linelen() 26 static inline unsigned cur_tabstop(struct printbuf *buf) in cur_tabstop() 33 int bch2_printbuf_make_room(struct printbuf *out, unsigned extra) in bch2_printbuf_make_room() 72 static void printbuf_advance_pos(struct printbuf *out, unsigned len) in printbuf_advance_pos() 77 static void printbuf_insert_spaces(struct printbuf *out, unsigned pos, unsigned nr) in printbuf_insert_spaces() 95 static void __printbuf_do_indent(struct printbuf *out, unsigned pos) in __printbuf_do_indent() 152 static inline void printbuf_do_indent(struct printbuf *out, unsigned pos) in printbuf_do_indent() 158 void bch2_prt_vprintf(struct printbuf *ou [all...] |
H 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);
|
H 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 *);
|
H 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);
|
H 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 *);
|
H 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 *);
|
H 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 *);
|
H 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() 301 static void prt_actioning(struct printbuf *out, const char *action) in prt_actioning() 323 struct printbuf *question, in do_fsck_ask_yn() 381 enum bch_sb_error_id id, struct printbuf *ms in __bch2_count_fsck_err() [all...] |
H 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()
|
H 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 *,
|
H 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 *);
|
H 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 *);
|
H 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 *);
|
H 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 *ou [all...] |
H A D | sb-errors.h | 9 void bch2_sb_error_id_to_text(struct printbuf *, enum bch_sb_error_id); 10 void bch2_fs_errors_to_text(struct printbuf *, struct bch_fs *);
|
H 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()
|
H A D | util.h | 88 #include "printbuf.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 *, struc [all...] |
H A D | super-io.c | 42 void bch2_version_to_text(struct printbuf *out, enum bcachefs_metadata_version v) in bch2_version_to_text() 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() 294 static int validate_sb_layout(struct bch_sb_layout *layout, struct printbuf *out) in validate_sb_layout() 347 static int bch2_sb_compatible(struct bch_sb *sb, struct printbuf *out) in bch2_sb_compatible() 386 enum bch_validate_flags flags, struct printbuf *out) in bch2_sb_validate() 722 static int read_one_super(struct bch_sb_handle *sb, u64 offset, struct printbuf *err) in read_one_super() 789 struct printbuf err = PRINTBUF; in __bch2_read_super() 790 struct printbuf err in __bch2_read_super() [all...] |
H A D | debug.h | 12 void bch2_btree_node_ondisk_to_text(struct printbuf *, struct bch_fs *, 30 struct printbuf buf;
|
H A D | io_misc.h | 14 void bch2_logged_op_truncate_to_text(struct printbuf *, struct bch_fs *, struct bkey_s_c); 25 void bch2_logged_op_finsert_to_text(struct printbuf *, struct bch_fs *, struct bkey_s_c);
|
H A D | enumerated_ref.h | 61 struct printbuf; 62 void enumerated_ref_to_text(struct printbuf *,
|
H A D | journal_io.c | 52 static void bch2_journal_ptr_to_text(struct printbuf *out, struct bch_fs *c, struct journal_ptr *p) in bch2_journal_ptr_to_text() 61 void bch2_journal_ptrs_to_text(struct printbuf *out, struct bch_fs *c, struct journal_replay *j) in bch2_journal_ptrs_to_text() 70 static void bch2_journal_datetime_to_text(struct printbuf *out, struct jset *j) in bch2_journal_datetime_to_text() 80 static void bch2_journal_replay_to_text(struct printbuf *out, struct bch_fs *c, in bch2_journal_replay_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; \ 429 static void journal_entry_btree_keys_to_text(struct printbuf *out, struct bch_fs *c, in journal_entry_btree_keys_to_text() 487 static void journal_entry_btree_root_to_text(struct printbuf *out, struct bch_fs *c, in journal_entry_btree_root_to_text() 503 static void journal_entry_prio_ptrs_to_text(struct printbuf *ou [all...] |
H A D | sb-errors.c | 13 void bch2_sb_error_id_to_text(struct printbuf *out, enum bch_sb_error_id id) in bch2_sb_error_id_to_text() 33 enum bch_validate_flags flags, struct printbuf *err) in bch2_sb_errors_validate() 57 static void bch2_sb_errors_to_text(struct printbuf *out, struct bch_sb *sb, in bch2_sb_errors_to_text() 81 void bch2_fs_errors_to_text(struct printbuf *out, struct bch_fs *c) in bch2_fs_errors_to_text()
|
H 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()
|