Lines Matching refs:new_r
300 struct bch_replicas_cpu new_r, new_gc; in bch2_mark_replicas_slowpath() local
305 memset(&new_r, 0, sizeof(new_r)); in bch2_mark_replicas_slowpath()
320 new_r = cpu_replicas_add_entry(c, &c->replicas, new_entry); in bch2_mark_replicas_slowpath()
321 if (!new_r.entries) { in bch2_mark_replicas_slowpath()
326 ret = bch2_cpu_replicas_to_sb_replicas(c, &new_r); in bch2_mark_replicas_slowpath()
331 if (!new_r.entries && in bch2_mark_replicas_slowpath()
337 if (new_r.entries) in bch2_mark_replicas_slowpath()
342 if (new_r.entries) in bch2_mark_replicas_slowpath()
343 swap(c->replicas, new_r); in bch2_mark_replicas_slowpath()
350 kfree(new_r.entries); in bch2_mark_replicas_slowpath()
588 struct bch_replicas_cpu new_r = { 0, 0, NULL }; in bch2_sb_replicas_to_cpu_replicas() local
592 ret = __bch2_sb_replicas_to_cpu_replicas(sb_v1, &new_r); in bch2_sb_replicas_to_cpu_replicas()
594 ret = __bch2_sb_replicas_v0_to_cpu_replicas(sb_v0, &new_r); in bch2_sb_replicas_to_cpu_replicas()
598 bch2_cpu_replicas_sort(&new_r); in bch2_sb_replicas_to_cpu_replicas()
601 swap(c->replicas, new_r); in bch2_sb_replicas_to_cpu_replicas()
604 kfree(new_r.entries); in bch2_sb_replicas_to_cpu_replicas()