summaryrefslogtreecommitdiff
path: root/fs/bcachefs/io_types.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-03-12 01:21:30 +0300
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-23 00:09:57 +0300
commit751c025f0de7ca55ad5f77099645b5247623de98 (patch)
treece90901b0bb5ec9ef43688fcb01e441ce54dfe48 /fs/bcachefs/io_types.h
parente28ef07e0ef47c03f773571d85bc82fcce831376 (diff)
downloadlinux-751c025f0de7ca55ad5f77099645b5247623de98.tar.xz
bcachefs: Kill bch_write_op->btree_update_ready
This changes the write path to not add write ops to to the write_point's list of pending work items until it's ready; this means we have to change the lock protecting it to an irq-safe lock, but means bch2_write_point_do_index_updates() no longer has to iterate over the list, which is beneficial with the way the new BCH_WRITE_WAIT_FOR_EC code works. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/io_types.h')
-rw-r--r--fs/bcachefs/io_types.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/io_types.h b/fs/bcachefs/io_types.h
index 200af9e3e6b0..4149291c0df6 100644
--- a/fs/bcachefs/io_types.h
+++ b/fs/bcachefs/io_types.h
@@ -121,7 +121,7 @@ struct bch_write_op {
unsigned nr_replicas_required:4;
unsigned alloc_reserve:3;
unsigned incompressible:1;
- unsigned btree_update_ready:1;
+ unsigned stripe_waited:1;
struct bch_devs_list devs_have;
u16 target;