summaryrefslogtreecommitdiff
path: root/libbcachefs/io.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-06-10 22:13:01 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2023-06-10 22:15:00 -0400
commit17d1c4f4fe29453fbb4087eb5de8aa6f9e6605c7 (patch)
tree84a0fb52242d7890ff6b2eb8c449b696f2edd844 /libbcachefs/io.c
parent7a66cf70c5d8b02f84595e5648c12e7422e4d03e (diff)
Update bcachefs sources to ed6b7f81a7 six locks: Disable percpu read lock mode in userspace
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'libbcachefs/io.c')
-rw-r--r--libbcachefs/io.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libbcachefs/io.c b/libbcachefs/io.c
index 77fe49f6..fa7781ee 100644
--- a/libbcachefs/io.c
+++ b/libbcachefs/io.c
@@ -2057,10 +2057,11 @@ static struct promote_op *__promote_alloc(struct btree_trans *trans,
.write_flags = BCH_WRITE_ALLOC_NOWAIT|BCH_WRITE_CACHED,
},
btree_id, k);
+ /*
+ * possible errors: -BCH_ERR_nocow_lock_blocked,
+ * -BCH_ERR_ENOSPC_disk_reservation:
+ */
if (ret) {
- WARN_ONCE(ret != -BCH_ERR_nocow_lock_blocked,
- "%s: saw unknown error %s\n", __func__, bch2_err_str(ret));
-
ret = rhashtable_remove_fast(&c->promote_table, &op->hash,
bch_promote_params);
BUG_ON(ret);