Searched refs:replicas (Results 1 - 17 of 17) sorted by relevance

/linux-master/fs/bcachefs/
H A Dreplicas.c6 #include "replicas.h"
248 return __replicas_entry_idx(&c->replicas, search);
268 marked = __replicas_has_entry(&c->replicas, search) &&
286 if (!src->replicas[src_idx])
293 dst->replicas[dst_idx] = src->replicas[src_idx];
345 c->usage[i], &c->replicas);
348 c->usage_base, &c->replicas);
351 c->usage_gc, &c->replicas);
358 swap(c->replicas, *new_
997 struct bch_sb_field_replicas *replicas; local
[all...]
H A Dbuckets_types.h61 u64 replicas[]; member in struct:bch_fs_usage
H A Dmigrate.c18 #include "replicas.h"
24 unsigned replicas = metadata ? c->opts.metadata_replicas : c->opts.data_replicas; local
33 (nr_good < replicas && !(flags & degraded)))
H A Dbuckets.c22 #include "replicas.h"
59 for (unsigned i = 0; i < c->replicas.nr; i++) {
61 cpu_replicas_entry(&c->replicas, i);
63 fs_usage_data_type_to_base(&usage->b, e->data_type, usage->replicas[i]);
124 unsigned nr_replicas = READ_ONCE(c->replicas.nr);
133 if (nr_replicas != c->replicas.nr) {
134 nr_replicas = c->replicas.nr;
206 prt_printf(out, "%u replicas:\n", i + 1);
211 for (i = 0; i < c->replicas.nr; i++) {
213 cpu_replicas_entry(&c->replicas,
1076 unsigned replicas = bkey_s_c_to_reservation(k).v->nr_replicas; local
[all...]
H A DMakefile74 replicas.o \
H A Djournal_io.c16 #include "replicas.h"
1383 struct bch_replicas_padded replicas = { local
1411 replicas.e.devs[replicas.e.nr_devs++] = ptr->dev;
1413 bch2_replicas_entry_sort(&replicas.e);
1416 bch2_replicas_entry_to_text(&buf, &replicas.e);
1419 !bch2_replicas_marked(c, &replicas.e) &&
1422 "superblock not marked as containing replicas for journal entry %llu\n %s",
1424 ret = bch2_mark_replicas(c, &replicas.e);
1441 unsigned *replicas,
1437 __journal_write_alloc(struct journal *j, struct journal_buf *w, struct dev_alloc_list *devs_sorted, unsigned sectors, unsigned *replicas, unsigned replicas_want) argument
1509 unsigned i, replicas = 0, replicas_want = local
1604 struct bch_replicas_padded replicas; local
1990 struct bch_replicas_padded replicas; local
[all...]
H A Dsb-clean.c8 #include "replicas.h"
226 for (unsigned i = 0; i < c->replicas.nr; i++) {
228 cpu_replicas_entry(&c->replicas, i);
234 u->v = cpu_to_le64(c->usage_base->replicas[i]);
H A Dchardev.c11 #include "replicas.h"
539 dst_e = arg->replicas;
540 dst_end = (void *) arg->replicas + replica_entries_bytes;
542 for (i = 0; i < c->replicas.nr; i++) {
544 cpu_replicas_entry(&c->replicas, i);
546 /* check that we have enough space for one replicas entry */
552 dst_e->sectors = src->u.replicas[i];
566 arg->replica_entries_bytes = (void *) dst_e - (void *) arg->replicas;
H A Dbuckets.h274 return __fs_usage_u64s(READ_ONCE(c->replicas.nr));
284 return __fs_usage_online_u64s(READ_ONCE(c->replicas.nr));
H A Dbcachefs_ioctl.h263 * Returns disk space usage broken out by data type, number of replicas, and
282 struct bch_replicas_usage replicas[]; member in struct:bch_ioctl_fs_usage
H A Djournal_reclaim.c13 #include "replicas.h"
872 * be empty. Otherwise we could clear all journal replicas and
883 struct bch_replicas_padded replicas; local
888 bch2_devlist_to_replicas(&replicas.e, BCH_DATA_journal,
892 if (replicas.e.nr_devs) {
894 ret = bch2_mark_replicas(c, &replicas.e);
H A Dmove.c24 #include "replicas.h"
64 prt_str(out, "extra replicas: ");
919 unsigned replicas = bkey_is_btree_ptr(k.k) local
923 if (!nr_good || nr_good >= replicas)
927 data_opts->extra_replicas = replicas - nr_good;
1039 unsigned replicas = bkey_is_btree_ptr(k.k) local
1049 if (d && durability - d >= replicas) {
H A Dextents.c24 #include "replicas.h"
406 prt_printf(out, "generation %u replicas %u",
471 * If there are other replicas we aren't moving, and they are checksummed but
642 unsigned replicas = 0; local
649 replicas += p.ec.redundancy;
651 replicas++;
655 return replicas;
H A Dio_write.c1090 unsigned replicas = 0; local
1100 replicas += bch2_extent_ptr_durability(c, &p);
1103 return replicas >= op->opts.data_replicas;
H A Dbtree_gc.c31 #include "replicas.h"
1277 for (i = 0; i < c->replicas.nr; i++) {
1279 cpu_replicas_entry(&c->replicas, i);
1290 replicas[i], "%s", buf.buf);
H A Dbcachefs.h374 "When reading btree nodes, read all replicas and " \
563 /* biosets used in cloned bios for writing multiple replicas */
768 struct bch_replicas_cpu replicas; member in struct:bch_fs
H A Dbcachefs_format.h494 x(replicas, 7) \

Completed in 300 milliseconds