summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/io_misc.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2025-05-28 11:57:50 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2025-06-02 12:16:35 -0400
commit09b9c72bd4b77a954123997377665fb30f1d07e1 (patch)
treebf114ae582fa5498f2a8852de499df9d40ccb729 /fs/bcachefs/io_misc.c
parentbcachefs: Repair code for directory i_size (diff)
downloadlinux-09b9c72bd4b77a954123997377665fb30f1d07e1.tar.gz
linux-09b9c72bd4b77a954123997377665fb30f1d07e1.zip
bcachefs: bch_err_throw()
Add a tracepoint for any time we return an error and unwind. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/io_misc.c')
-rw-r--r--fs/bcachefs/io_misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/io_misc.c b/fs/bcachefs/io_misc.c
index cc07729a4b62..bf72b1d2e2cb 100644
--- a/fs/bcachefs/io_misc.c
+++ b/fs/bcachefs/io_misc.c
@@ -91,7 +91,7 @@ int bch2_extent_fallocate(struct btree_trans *trans,
opts.data_replicas,
BCH_WATERMARK_normal, 0, &cl, &wp);
if (bch2_err_matches(ret, BCH_ERR_operation_blocked))
- ret = -BCH_ERR_transaction_restart_nested;
+ ret = bch_err_throw(c, transaction_restart_nested);
if (ret)
goto err;