| /fs/bcachefs/ |
| D | sb-members.h | 21 static inline bool bch2_dev_is_online(struct bch_dev *ca) in bch2_dev_is_online() 26 static inline bool bch2_dev_is_readable(struct bch_dev *ca) in bch2_dev_is_readable() 73 struct bch_dev *ca = NULL; in __bch2_next_dev_idx() local 85 static inline struct bch_dev *__bch2_next_dev(struct bch_fs *c, struct bch_dev *ca, in __bch2_next_dev() 95 static inline void bch2_dev_get(struct bch_dev *ca) in bch2_dev_get() 104 static inline void __bch2_dev_put(struct bch_dev *ca) in __bch2_dev_put() 118 static inline void bch2_dev_put(struct bch_dev *ca) in bch2_dev_put() 124 static inline struct bch_dev *bch2_get_next_dev(struct bch_fs *c, struct bch_dev *ca) in bch2_get_next_dev() 146 struct bch_dev *ca, in bch2_get_next_online_dev() 166 #define for_each_online_member(c, ca) \ argument [all …]
|
| D | buckets.h | 15 static inline u64 sector_to_bucket(const struct bch_dev *ca, sector_t s) in sector_to_bucket() 20 static inline sector_t bucket_to_sector(const struct bch_dev *ca, size_t b) in bucket_to_sector() 25 static inline sector_t bucket_remainder(const struct bch_dev *ca, sector_t s) in bucket_remainder() 33 static inline u64 sector_to_bucket_and_offset(const struct bch_dev *ca, sector_t s, u32 *offset) in sector_to_bucket_and_offset() 83 static inline struct bucket *gc_bucket(struct bch_dev *ca, size_t b) in gc_bucket() 88 static inline struct bucket_gens *bucket_gens(struct bch_dev *ca) in bucket_gens() 97 static inline u8 *bucket_gen(struct bch_dev *ca, size_t b) in bucket_gen() 106 static inline int bucket_gen_get_rcu(struct bch_dev *ca, size_t b) in bucket_gen_get_rcu() 112 static inline int bucket_gen_get(struct bch_dev *ca, size_t b) in bucket_gen_get() 120 static inline size_t PTR_BUCKET_NR(const struct bch_dev *ca, in PTR_BUCKET_NR() [all …]
|
| D | super.c | 662 struct bch_dev *ca = rcu_dereference_protected(c->devs[i], true); in bch2_fs_free() local 1181 struct bch_dev *ca = container_of(kobj, struct bch_dev, kobj); in bch2_dev_release() local 1186 static void bch2_dev_free(struct bch_dev *ca) in bch2_dev_free() 1213 static void __bch2_dev_offline(struct bch_fs *c, struct bch_dev *ca) in __bch2_dev_offline() 1236 struct bch_dev *ca = container_of(ref, struct bch_dev, ref); in bch2_dev_ref_complete() local 1244 struct bch_dev *ca = container_of(ref, struct bch_dev, io_ref); in bch2_dev_io_ref_complete() local 1249 static void bch2_dev_unlink(struct bch_dev *ca) in bch2_dev_unlink() 1269 static int bch2_dev_sysfs_online(struct bch_fs *c, struct bch_dev *ca) in bch2_dev_sysfs_online() 1301 struct bch_dev *ca; in __bch2_dev_alloc() local 1351 static void bch2_dev_attach(struct bch_fs *c, struct bch_dev *ca, in bch2_dev_attach() [all …]
|
| D | backpointers.h | 39 static inline struct bpos bp_pos_to_bucket(const struct bch_dev *ca, struct bpos bp_pos) in bp_pos_to_bucket() 49 struct bch_dev *ca = bch2_dev_rcu(c, bp_pos.inode); in bp_pos_to_bucket_nodev_noerror() local 62 static inline struct bpos bucket_pos_to_bp_noerror(const struct bch_dev *ca, in bucket_pos_to_bp_noerror() 74 static inline struct bpos bucket_pos_to_bp(const struct bch_dev *ca, in bucket_pos_to_bp() 87 struct bch_dev *ca, in bch2_bucket_backpointer_mod() 137 static inline void __bch2_extent_ptr_to_bp(struct bch_fs *c, struct bch_dev *ca, in __bch2_extent_ptr_to_bp() 157 static inline void bch2_extent_ptr_to_bp(struct bch_fs *c, struct bch_dev *ca, in bch2_extent_ptr_to_bp()
|
| D | alloc_background.c | 349 struct bch_dev *ca = c ? bch2_dev_bucket_tryget_noerror(c, k.k->p) : NULL; in bch2_alloc_to_text() local 599 struct bch_dev *ca = NULL; in bch2_alloc_read() local 668 struct bch_dev *ca, in bch2_bucket_do_index() 774 static inline int bch2_dev_data_type_accounting_mod(struct btree_trans *trans, struct bch_dev *ca, in bch2_dev_data_type_accounting_mod() 790 int bch2_alloc_key_to_dev_counters(struct btree_trans *trans, struct bch_dev *ca, in bch2_alloc_key_to_dev_counters() 838 struct bch_dev *ca = bch2_dev_bucket_tryget(c, new.k->p); in bch2_trigger_alloc() local 1065 static bool next_bucket(struct bch_fs *c, struct bch_dev **ca, struct bpos *bucket) in next_bucket() 1092 struct bch_dev **ca, struct bkey *hole) in bch2_get_key_or_real_bucket_hole() 1138 struct bch_dev *ca = bch2_dev_bucket_tryget_noerror(c, alloc_k.k->p); in bch2_check_alloc_key() local 1257 struct bch_dev *ca, in bch2_check_alloc_hole_freespace() [all …]
|
| D | buckets.c | 29 void bch2_dev_usage_read_fast(struct bch_dev *ca, struct bch_dev_usage *usage) in bch2_dev_usage_read_fast() 75 struct bch_dev *ca, in bch2_dev_usage_to_text() 110 struct bch_dev *ca = bch2_dev_tryget(c, p.ptr.dev); in bch2_check_fix_ptr() local 296 struct bch_dev *ca = bch2_dev_rcu(c, ptr->dev); in bch2_check_fix_ptrs() local 310 struct bch_dev *ca = bch2_dev_rcu(c, p.ptr.dev); in bch2_check_fix_ptrs() local 388 int bch2_bucket_ref_update(struct btree_trans *trans, struct bch_dev *ca, in bch2_bucket_ref_update() 542 static int __mark_pointer(struct btree_trans *trans, struct bch_dev *ca, in __mark_pointer() 576 struct bch_dev *ca = bch2_dev_tryget(c, p.ptr.dev); in bch2_trigger_pointer() local 950 struct bch_dev *ca, u64 b, in __bch2_trans_mark_metadata_bucket() 986 static int bch2_mark_metadata_bucket(struct btree_trans *trans, struct bch_dev *ca, in bch2_mark_metadata_bucket() [all …]
|
| D | alloc_foreground.c | 103 struct bch_dev *ca = ob_dev(c, ob); in __bch2_open_bucket_put() local 179 long bch2_bucket_alloc_new_fs(struct bch_dev *ca) in bch2_bucket_alloc_new_fs() 209 static struct open_bucket *__try_alloc_bucket(struct bch_fs *c, struct bch_dev *ca, in __try_alloc_bucket() 278 static struct open_bucket *try_alloc_bucket(struct btree_trans *trans, struct bch_dev *ca, in try_alloc_bucket() 387 struct bch_dev *ca, in bch2_bucket_alloc_early() 480 struct bch_dev *ca, in bch2_bucket_alloc_freelist() 552 static noinline void trace_bucket_alloc2(struct bch_fs *c, struct bch_dev *ca, in trace_bucket_alloc2() 603 struct bch_dev *ca, in bch2_bucket_alloc_trans() 683 struct open_bucket *bch2_bucket_alloc(struct bch_fs *c, struct bch_dev *ca, in bch2_bucket_alloc() 720 static inline void bch2_dev_stripe_increment_inlined(struct bch_dev *ca, in bch2_dev_stripe_increment_inlined() [all …]
|
| D | chardev.c | 30 struct bch_dev *ca; in bch2_device_lookup() local 333 struct bch_dev *ca; in bch2_ioctl_disk_remove() local 375 struct bch_dev *ca; in bch2_ioctl_disk_offline() local 400 struct bch_dev *ca; in bch2_ioctl_disk_set_state() local 581 struct bch_dev *ca; in bch2_ioctl_dev_usage() local 622 struct bch_dev *ca; in bch2_ioctl_dev_usage_v2() local 671 struct bch_dev *ca = NULL; in bch2_ioctl_read_super() local 732 struct bch_dev *ca; in bch2_ioctl_disk_resize() local 755 struct bch_dev *ca; in bch2_ioctl_disk_resize_journal() local
|
| D | alloc_background.h | 19 struct bch_dev *ca = bch2_dev_rcu_noerror(c, pos.inode); in bch2_dev_bucket_exists() local 110 static inline s64 bch2_bucket_sectors_fragmented(struct bch_dev *ca, in bch2_bucket_sectors_fragmented() 118 static inline s64 bch2_gc_bucket_sectors_fragmented(struct bch_dev *ca, struct bucket a) in bch2_gc_bucket_sectors_fragmented() 169 struct bch_dev *ca) in alloc_lru_idx_fragmentation() 315 static inline u64 should_invalidate_buckets(struct bch_dev *ca, in should_invalidate_buckets()
|
| D | disk_groups.c | 211 struct bch_dev *ca = t.dev < c->sb.nr_devices in bch2_target_to_mask() local 471 int __bch2_dev_group_set(struct bch_fs *c, struct bch_dev *ca, const char *name) in __bch2_dev_group_set() 492 int bch2_dev_group_set(struct bch_fs *c, struct bch_dev *ca, const char *name) in bch2_dev_group_set() 507 struct bch_dev *ca; in bch2_opt_target_parse() local 550 struct bch_dev *ca; in bch2_target_to_text() local
|
| D | extents.c | 76 struct bch_dev *ca = bch2_dev_rcu(c, dev); in dev_latency() local 138 struct bch_dev *ca = bch2_dev_rcu(c, p.ptr.dev); in bch2_bkey_pick_read_device() local 288 struct bch_dev *ca = bch2_dev_rcu(c, lp.ptr.dev); in bch2_extent_merge() local 667 static inline unsigned __extent_ptr_durability(struct bch_dev *ca, struct extent_ptr_decoded *p) in __extent_ptr_durability() 679 struct bch_dev *ca = bch2_dev_rcu(c, p->ptr.dev); in bch2_extent_ptr_desired_durability() local 686 struct bch_dev *ca = bch2_dev_rcu(c, p->ptr.dev); in bch2_extent_ptr_durability() local 877 struct bch_dev *ca; in bch2_bkey_has_target() local 988 struct bch_dev *ca = bch2_dev_rcu_noerror(c, ptr->dev); in want_cached_ptr() local 1037 struct bch_dev *ca; in bch2_extent_normalize() local 1084 struct bch_dev *ca = bch2_dev_rcu_noerror(c, ptr->dev); in bch2_extent_ptr_to_text() local [all …]
|
| D | backpointers.c | 35 struct bch_dev *ca = bch2_dev_rcu(c, p.ptr.dev); in extent_matches_bp() local 63 struct bch_dev *ca = bch2_dev_rcu_noerror(c, bp.k->p.inode); in bch2_backpointer_validate() local 96 struct bch_dev *ca = bch2_dev_rcu_noerror(c, k.k->p.inode); in bch2_backpointer_k_to_text() local 170 struct bch_dev *ca, in bch2_bucket_backpointer_mod_nowritebuffer() 223 struct bch_dev *ca, in bch2_get_next_backpointer() 486 struct bch_dev *ca = bch2_dev_get_ioref(c, dev, READ); in check_extent_checksum() local 538 struct bch_dev *ca = bch2_dev_bucket_tryget(c, bucket); in check_bp_exists() local 680 struct bch_dev *ca = bch2_dev_rcu_noerror(c, p.ptr.dev); in check_extent_to_backpointers() local
|
| D | error.h | 62 #define bch2_dev_inconsistent(ca, ...) \ argument 68 #define bch2_dev_inconsistent_on(cond, ca, ...) \ argument 233 #define bch2_dev_io_err_on(cond, ca, _type, ...) \ argument 244 #define bch2_dev_inum_io_err_on(cond, ca, _type, ...) \ argument
|
| D | super-io.c | 628 int bch2_sb_from_fs(struct bch_fs *c, struct bch_dev *ca) in bch2_sb_from_fs() 872 struct bch_dev *ca = bio->bi_private; in write_super_endio() local 889 static void read_back_super(struct bch_fs *c, struct bch_dev *ca) in read_back_super() 907 static void write_one_super(struct bch_fs *c, struct bch_dev *ca, unsigned idx) in write_one_super() 1032 struct bch_dev *ca = *cap; in bch2_write_super() local 1070 struct bch_dev *ca = *cap; in bch2_write_super() local 1082 struct bch_dev *ca = *cap; in bch2_write_super() local
|
| D | btree_io.c | 515 struct bch_dev *ca, in btree_err_msg() 544 struct bch_dev *ca, in __btree_err() 613 #define btree_err(type, c, ca, b, i, k, _err_type, msg, ...) \ argument 680 static int validate_bset(struct bch_fs *c, struct bch_dev *ca, in validate_bset() 974 int bch2_btree_node_read_done(struct bch_fs *c, struct bch_dev *ca, in bch2_btree_node_read_done() 1281 struct bch_dev *ca = rb->have_ioref ? bch2_dev_have_ref(c, rb->pick.ptr.dev) : NULL; in btree_node_read_work() local 1365 struct bch_dev *ca = bch2_dev_have_ref(c, rb->pick.ptr.dev); in btree_node_read_endio() local 1562 struct bch_dev *ca = bch2_dev_have_ref(c, rb->pick.ptr.dev); in btree_node_read_all_replicas_endio() local 1604 struct bch_dev *ca = bch2_dev_get_ioref(c, pick.ptr.dev, READ); in btree_node_read_all_replicas() local 1649 struct bch_dev *ca; in bch2_btree_node_read() local [all …]
|
| D | ec.c | 103 struct bch_dev *ca; member 183 struct bch_dev *ca, in __mark_stripe_bucket() 290 struct bch_dev *ca = bch2_dev_tryget(c, ptr->dev); in mark_stripe_bucket() local 658 struct bch_dev *ca = bch2_dev_tryget(c, v->ptrs[i].dev); in ec_validate_checksums() local 727 struct bch_dev *ca = ec_bio->ca; in ec_block_endio() local 764 struct bch_dev *ca = bch2_dev_get_ioref(c, ptr->dev, rw); in ec_block_io() local 1275 struct bch_dev *ca, in ec_stripe_update_extent() 1379 struct bch_dev *ca = bch2_dev_tryget(c, ptr.dev); in ec_stripe_update_bucket() local 1429 struct bch_dev *ca = bch2_dev_get_ioref(c, ob->dev, WRITE); in zero_out_rest_of_ec_bucket() local 1640 struct bch_dev *ca = ob_dev(c, ob); in bch2_writepoint_ec_buf() local [all …]
|
| D | journal.c | 925 static int __bch2_set_nr_journal_buckets(struct bch_dev *ca, unsigned nr, in __bch2_set_nr_journal_buckets() 1062 int bch2_set_nr_journal_buckets(struct bch_fs *c, struct bch_dev *ca, in bch2_set_nr_journal_buckets() 1112 int bch2_dev_journal_alloc(struct bch_dev *ca, bool new_fs) in bch2_dev_journal_alloc() 1177 void bch2_dev_journal_stop(struct journal *j, struct bch_dev *ca) in bch2_dev_journal_stop() 1298 void bch2_dev_journal_exit(struct bch_dev *ca) in bch2_dev_journal_exit() 1313 int bch2_dev_journal_init(struct bch_dev *ca, struct bch_sb *sb) in bch2_dev_journal_init()
|
| D | journal_io.c | 137 static int journal_entry_add(struct bch_fs *c, struct bch_dev *ca, in journal_entry_add() 874 struct bch_dev *ca, in jset_validate() 924 struct bch_dev *ca, in jset_validate_early() 991 static int journal_read_bucket(struct bch_dev *ca, in journal_read_bucket() 1143 struct bch_dev *ca = container_of(ja, struct bch_dev, journal); in CLOSURE_CALLBACK() local 1370 struct bch_dev *ca = bch2_dev_have_ref(c, ptr->dev); in bch2_journal_read() local 1423 struct bch_dev *ca; in __journal_write_alloc() local 1481 struct bch_dev *ca; in journal_write_alloc() local 1691 struct bch_dev *ca = jbio->ca; in journal_write_endio() local 1719 struct bch_dev *ca = bch2_dev_get_ioref(c, ptr->dev, WRITE); in CLOSURE_CALLBACK() local
|
| D | btree_gc.c | 790 struct bch_dev *ca, in bch2_alloc_write_key() 1177 struct bch_dev *ca = bch2_dev_rcu(c, ptr->dev); in gc_btree_gens_key() local 1189 struct bch_dev *ca = bch2_dev_rcu(c, ptr->dev); in gc_btree_gens_key() local 1210 static int bch2_alloc_write_oldest_gen(struct btree_trans *trans, struct bch_dev *ca, in bch2_alloc_write_oldest_gen() 1286 struct bch_dev *ca = NULL; in bch2_gc_gens() local
|
| D | io_read.c | 37 struct bch_dev *ca; in bch2_target_congested() local 676 struct bch_dev *ca = rbio->have_ioref ? bch2_dev_have_ref(c, rbio->pick.ptr.dev) : NULL; in __bch2_read_endio() local 706 struct bch_dev *ca = rbio->have_ioref ? bch2_dev_have_ref(c, rbio->pick.ptr.dev) : NULL; in bch2_read_endio() local 793 struct bch_dev *ca, in read_from_stale_dirty_pointer() 884 struct bch_dev *ca = bch2_dev_get_ioref(c, pick.ptr.dev, READ); in __bch2_read_extent() local
|
| D | io_write.c | 39 static inline void bch2_congested_acct(struct bch_dev *ca, u64 io_latency, in bch2_congested_acct() 65 void bch2_latency_acct(struct bch_dev *ca, u64 submit_time, int rw) in bch2_latency_acct() 409 struct bch_dev *ca = nocow in bch2_submit_wbio_replicas() local 651 struct bch_dev *ca = wbio->have_ioref in bch2_write_endio() local 1270 struct bch_dev *ca = bch2_dev_get_ioref(c, ptr->dev, WRITE); in bch2_nocow_write() local 1297 struct bch_dev *ca = bch2_dev_have_ref(c, i->b.inode); in bch2_nocow_write() local
|
| D | btree_node_scan.c | 20 struct bch_dev *ca; member 143 static void try_read_btree_node(struct find_btree_nodes *f, struct bch_dev *ca, in try_read_btree_node() 212 struct bch_dev *ca = w->ca; in read_btree_nodes_worker() local
|
| D | sb-members.c | 363 void bch2_dev_io_errors_to_text(struct printbuf *out, struct bch_dev *ca) in bch2_dev_io_errors_to_text() 394 void bch2_dev_errors_reset(struct bch_dev *ca) in bch2_dev_errors_reset() 421 struct bch_dev *ca = bch2_dev_rcu(c, ptr->dev); in bch2_dev_btree_bitmap_marked() local
|
| D | error.c | 53 struct bch_dev *ca = container_of(work, struct bch_dev, io_error_work); in bch2_io_error_work() local 70 void bch2_io_error(struct bch_dev *ca, enum bch_member_error_type type) in bch2_io_error()
|
| /fs/xfs/scrub/ |
| D | alloc.c | 118 struct xchk_alloc *ca, in xchk_allocbt_mergeable() 139 struct xchk_alloc *ca = bs->private; in xchk_allocbt_rec() local 158 struct xchk_alloc ca = { }; in xchk_allocbt() local
|