diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2024-03-17 21:51:19 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-03-18 00:24:24 -0400 |
commit | 3ed94062e3801e3fd9924ccd54b607abf58cc223 (patch) | |
tree | ebe28ecdfd314b9af998af55af7655cd73edd7ae /fs/bcachefs/btree_update_interior.c | |
parent | ec35b3048140275600e026ebe46ec8484fbd5d7a (diff) | |
download | linux-stable-3ed94062e3801e3fd9924ccd54b607abf58cc223.tar.gz linux-stable-3ed94062e3801e3fd9924ccd54b607abf58cc223.tar.bz2 linux-stable-3ed94062e3801e3fd9924ccd54b607abf58cc223.zip |
bcachefs: Improve bch2_fatal_error()
error messages should always include __func__
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/btree_update_interior.c')
-rw-r--r-- | fs/bcachefs/btree_update_interior.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/bcachefs/btree_update_interior.c b/fs/bcachefs/btree_update_interior.c index ea768c2bf8e1..f44776b8006d 100644 --- a/fs/bcachefs/btree_update_interior.c +++ b/fs/bcachefs/btree_update_interior.c @@ -646,7 +646,7 @@ static void btree_update_nodes_written(struct btree_update *as) bch2_trans_unlock(trans); bch2_fs_fatal_err_on(ret && !bch2_journal_error(&c->journal), c, - "%s(): error %s", __func__, bch2_err_str(ret)); + "%s", bch2_err_str(ret)); err: if (as->b) { @@ -1193,7 +1193,8 @@ bch2_btree_update_start(struct btree_trans *trans, struct btree_path *path, err: bch2_btree_update_free(as, trans); if (!bch2_err_matches(ret, ENOSPC) && - !bch2_err_matches(ret, EROFS)) + !bch2_err_matches(ret, EROFS) && + ret != -BCH_ERR_journal_reclaim_would_deadlock) bch_err_fn_ratelimited(c, ret); return ERR_PTR(ret); } |