diff options
Diffstat (limited to 'libbcachefs/movinggc.c')
-rw-r--r-- | libbcachefs/movinggc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libbcachefs/movinggc.c b/libbcachefs/movinggc.c index fbc8043e..f0ab65ff 100644 --- a/libbcachefs/movinggc.c +++ b/libbcachefs/movinggc.c @@ -163,7 +163,7 @@ static int bch2_copygc(struct bch_fs *c) bch2_moving_ctxt_exit(&ctxt); - if (ret < 0 && ret != -EROFS) + if (ret < 0 && !bch2_err_matches(ret, EROFS)) bch_err(c, "error from bch2_move_data() in copygc: %s", bch2_err_str(ret)); trace_and_count(c, copygc, c, atomic64_read(&move_stats.sectors_moved), 0, 0, 0); |