diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/bcachefs/migrate.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/bcachefs/migrate.c b/fs/bcachefs/migrate.c index 955831a50824..38bf75b6bc2d 100644 --- a/fs/bcachefs/migrate.c +++ b/fs/bcachefs/migrate.c @@ -96,11 +96,11 @@ static int bch2_dev_usrdata_drop(struct bch_fs *c, unsigned dev_idx, int flags) break; } + bch2_trans_exit(&trans); + bch2_replicas_gc_end(c, ret); mutex_unlock(&c->replicas_gc_lock); - bch2_trans_exit(&trans); - return ret; } |