Lines Matching refs:replicas_gc

282 		 (likely((!c->replicas_gc.entries)) ||  in bch2_replicas_marked_locked()
283 __replicas_has_entry(&c->replicas_gc, search))); in bch2_replicas_marked_locked()
310 if (c->replicas_gc.entries && in bch2_mark_replicas_slowpath()
311 !__replicas_has_entry(&c->replicas_gc, new_entry)) { in bch2_mark_replicas_slowpath()
312 new_gc = cpu_replicas_add_entry(c, &c->replicas_gc, new_entry); in bch2_mark_replicas_slowpath()
345 swap(new_gc, c->replicas_gc); in bch2_mark_replicas_slowpath()
378 bch2_cpu_replicas_to_sb_replicas(c, &c->replicas_gc); in bch2_replicas_gc_end()
380 swap(c->replicas, c->replicas_gc); in bch2_replicas_gc_end()
382 kfree(c->replicas_gc.entries); in bch2_replicas_gc_end()
383 c->replicas_gc.entries = NULL; in bch2_replicas_gc_end()
403 BUG_ON(c->replicas_gc.entries); in bch2_replicas_gc_start()
405 c->replicas_gc.nr = 0; in bch2_replicas_gc_start()
406 c->replicas_gc.entry_size = 0; in bch2_replicas_gc_start()
412 c->replicas_gc.nr++; in bch2_replicas_gc_start()
413 c->replicas_gc.entry_size = in bch2_replicas_gc_start()
414 max_t(unsigned, c->replicas_gc.entry_size, in bch2_replicas_gc_start()
419 c->replicas_gc.entries = kcalloc(c->replicas_gc.nr, in bch2_replicas_gc_start()
420 c->replicas_gc.entry_size, in bch2_replicas_gc_start()
422 if (!c->replicas_gc.entries) { in bch2_replicas_gc_start()
431 memcpy(cpu_replicas_entry(&c->replicas_gc, i++), in bch2_replicas_gc_start()
432 e, c->replicas_gc.entry_size); in bch2_replicas_gc_start()
434 bch2_cpu_replicas_sort(&c->replicas_gc); in bch2_replicas_gc_start()
918 kfree(c->replicas_gc.entries); in bch2_fs_replicas_exit()