]> git.sesse.net Git - bcachefs-tools-debian/blobdiff - libbcachefs/movinggc.c
Update bcachefs sources to 84505cfd37 bcachefs: Go RW before check_alloc_info()
[bcachefs-tools-debian] / libbcachefs / movinggc.c
index fbc8043e0bf97b261e7ca93442e1fd6a8581e671..f0ab65ffab7373dca455b4bec9528c31d6d0fbe3 100644 (file)
@@ -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);