summaryrefslogtreecommitdiff
path: root/fs/bcachefs/io.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-06-21 13:44:44 +0300
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-23 00:10:04 +0300
commit9473cff989c8519d01c6a285bd94d2ed35d30251 (patch)
treee77332ff5ea18f120481c817b13493c286d4afb0 /fs/bcachefs/io.c
parent462f494bc56052e3d17c9ae48a6e407b3f9d2c0c (diff)
downloadlinux-9473cff989c8519d01c6a285bd94d2ed35d30251.tar.xz
bcachefs: Fix more lockdep splats in debug.c
Similar to previous fixes, we can't incur page faults while holding btree locks. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/io.c')
-rw-r--r--fs/bcachefs/io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/io.c b/fs/bcachefs/io.c
index 25a9f657910c..0f5cbfa78b71 100644
--- a/fs/bcachefs/io.c
+++ b/fs/bcachefs/io.c
@@ -1645,7 +1645,7 @@ err_bucket_stale:
percpu_ref_put(&bch_dev_bkey_exists(c, buckets[i].b.inode)->io_ref);
/* We can retry this: */
- ret = BCH_ERR_transaction_restart;
+ ret = -BCH_ERR_transaction_restart;
goto out;
}