summaryrefslogtreecommitdiff
path: root/fs/bcachefs/io.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-06-05 02:40:35 +0300
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-23 00:10:03 +0300
commitbb125baf512bffef19c510f1c53353a378537070 (patch)
tree532242d94cd7d6ceb783fa239d786b37f7701300 /fs/bcachefs/io.c
parent4f2c166ebe5baef20e28866b27dd97b0caa585f1 (diff)
downloadlinux-bb125baf512bffef19c510f1c53353a378537070.tar.xz
bcachefs: Delete warning from promote_alloc()
It's possible to see a -BCH_ERR_ENOSPC_disk_reservation here, and that's fine. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/io.c')
-rw-r--r--fs/bcachefs/io.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/fs/bcachefs/io.c b/fs/bcachefs/io.c
index 199a8348355a..25a9f657910c 100644
--- a/fs/bcachefs/io.c
+++ b/fs/bcachefs/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);