[PATCH] bcachefs: Reverse first btree write conditional
From: Sergio Miguéns Iglesias
Date: Mon Dec 16 2024 - 14:43:13 EST
The conditional led nowhere so it was inverted to clean the code.
Signed-off-by: Sergio Miguéns Iglesias <sergio@xxxxxxxx>
---
fs/bcachefs/btree_io.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/fs/bcachefs/btree_io.c b/fs/bcachefs/btree_io.c
index 839d68802e42..7dbb1d908d94 100644
--- a/fs/bcachefs/btree_io.c
+++ b/fs/bcachefs/btree_io.c
@@ -1862,11 +1862,7 @@ static void btree_node_write_work(struct work_struct *work)
goto err;
}
- if (wbio->wbio.first_btree_write) {
- if (wbio->wbio.failed.nr) {
-
- }
- } else {
+ if (!wbio->wbio.first_btree_write) {
ret = bch2_trans_do(c,
bch2_btree_node_update_key_get_iter(trans, b, &wbio->key,
BCH_WATERMARK_interior_updates|
--
2.47.0