diff options
Diffstat (limited to 'libbcachefs/replicas.c')
-rw-r--r-- | libbcachefs/replicas.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libbcachefs/replicas.c b/libbcachefs/replicas.c index d4c1d43e..5b591c59 100644 --- a/libbcachefs/replicas.c +++ b/libbcachefs/replicas.c @@ -462,6 +462,9 @@ int bch2_replicas_gc_end(struct bch_fs *c, int ret) { lockdep_assert_held(&c->replicas_gc_lock); + if (ret) + goto err; + mutex_lock(&c->sb_lock); percpu_down_write(&c->mark_lock); |