diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-09-11 07:37:34 +0200 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 23:10:12 +0200 |
commit | e46c181af9e230c4c5dbc701fdadc295d6191eec (patch) | |
tree | edf21c015994feaf4b0c07973b5d721333f3c3db /fs/bcachefs/snapshot.c | |
parent | bcachefs: Kill missing inode warnings in bch2_quota_read() (diff) | |
download | linux-e46c181af9e230c4c5dbc701fdadc295d6191eec.tar.xz 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/snapshot.c')
-rw-r--r-- | fs/bcachefs/snapshot.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/bcachefs/snapshot.c b/fs/bcachefs/snapshot.c index 3ca61ede28d5..9bab9860b20b 100644 --- a/fs/bcachefs/snapshot.c +++ b/fs/bcachefs/snapshot.c @@ -1385,7 +1385,7 @@ int bch2_delete_dead_snapshots(struct bch_fs *c) if (!test_bit(BCH_FS_STARTED, &c->flags)) { ret = bch2_fs_read_write_early(c); if (ret) { - bch_err(c, "error deleleting dead snapshots: error going rw: %s", bch2_err_str(ret)); + bch_err_msg(c, ret, "error deleleting dead snapshots: error going rw"); return ret; } } @@ -1401,7 +1401,7 @@ int bch2_delete_dead_snapshots(struct bch_fs *c) NULL, NULL, 0, bch2_delete_redundant_snapshot(&trans, &iter, k)); if (ret) { - bch_err(c, "error deleting redundant snapshots: %s", bch2_err_str(ret)); + bch_err_msg(c, ret, "deleting redundant snapshots"); goto err; } @@ -1409,7 +1409,7 @@ int bch2_delete_dead_snapshots(struct bch_fs *c) POS_MIN, 0, k, bch2_snapshot_set_equiv(&trans, k)); if (ret) { - bch_err(c, "error in bch2_snapshots_set_equiv: %s", bch2_err_str(ret)); + bch_err_msg(c, ret, "in bch2_snapshots_set_equiv"); goto err; } |