diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-12-19 18:08:19 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-01-01 11:47:41 -0500 |
commit | a7dc10ce689a6224c1601d5d2e4ca57dd8cce9f6 (patch) | |
tree | f3a43aebab1cfa79ff2d7636d08432aeff696f87 /fs/bcachefs/btree_update_interior.c | |
parent | 548673f8d39249d717d02038bd192a076e79edf0 (diff) | |
download | linux-stable-a7dc10ce689a6224c1601d5d2e4ca57dd8cce9f6.tar.gz linux-stable-a7dc10ce689a6224c1601d5d2e4ca57dd8cce9f6.tar.bz2 linux-stable-a7dc10ce689a6224c1601d5d2e4ca57dd8cce9f6.zip |
bcachefs: Make sure allocation failure errors are logged
The previous patch fixed a bug in allocation path error handling, and it
would've been noticed sooner had it been logged properly.
Generally speaking, errors that shouldn't happen in normal operation and
are being returned up the stack should be logged: the write path was
already logging IO errors, but non IO errors were missed.
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 | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/bcachefs/btree_update_interior.c b/fs/bcachefs/btree_update_interior.c index 6350c661ce09..f0e3f51e62ca 100644 --- a/fs/bcachefs/btree_update_interior.c +++ b/fs/bcachefs/btree_update_interior.c @@ -1190,6 +1190,9 @@ bch2_btree_update_start(struct btree_trans *trans, struct btree_path *path, return as; err: bch2_btree_update_free(as, trans); + if (!bch2_err_matches(ret, ENOSPC) && + !bch2_err_matches(ret, EROFS)) + bch_err_fn_ratelimited(c, ret); return ERR_PTR(ret); } |