diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-09-11 01:37:34 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:10:12 -0400 |
commit | e46c181af9e230c4c5dbc701fdadc295d6191eec (patch) | |
tree | edf21c015994feaf4b0c07973b5d721333f3c3db /fs/bcachefs/movinggc.c | |
parent | da187cacb8a59e668ce716214865612ae3921e91 (diff) | |
download | linux-e46c181af9e230c4c5dbc701fdadc295d6191eec.tar.gz linux-e46c181af9e230c4c5dbc701fdadc295d6191eec.tar.bz2 linux-e46c181af9e230c4c5dbc701fdadc295d6191eec.zip |
bcachefs: Convert more code to bch_err_msg()
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/movinggc.c')
-rw-r--r-- | fs/bcachefs/movinggc.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/fs/bcachefs/movinggc.c b/fs/bcachefs/movinggc.c index 256431a6dc0c..ac658e99bf57 100644 --- a/fs/bcachefs/movinggc.c +++ b/fs/bcachefs/movinggc.c @@ -242,7 +242,7 @@ err: ret = 0; if (ret < 0 && !bch2_err_matches(ret, EROFS)) - bch_err(c, "error from bch2_move_data() in copygc: %s", bch2_err_str(ret)); + bch_err_msg(c, ret, "from bch2_move_data()"); moved = atomic64_read(&ctxt->stats->sectors_moved) - moved; trace_and_count(c, copygc, c, moved, 0, 0, 0); @@ -320,8 +320,7 @@ static int bch2_copygc_thread(void *arg) ret = rhashtable_init(&move_buckets.table, &bch_move_bucket_params); if (ret) { - bch_err(c, "error allocating copygc buckets in flight: %s", - bch2_err_str(ret)); + bch_err_msg(c, ret, "allocating copygc buckets in flight"); return ret; } @@ -404,7 +403,7 @@ int bch2_copygc_start(struct bch_fs *c) t = kthread_create(bch2_copygc_thread, c, "bch-copygc/%s", c->name); ret = PTR_ERR_OR_ZERO(t); if (ret) { - bch_err(c, "error creating copygc thread: %s", bch2_err_str(ret)); + bch_err_msg(c, ret, "creating copygc thread"); return ret; } |