bcachefs: Kill bch_write_op->btree_update_ready
authorKent Overstreet <kent.overstreet@linux.dev>
Sat, 11 Mar 2023 22:21:30 +0000 (17:21 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:57 +0000 (17:09 -0400)
commit751c025f0de7ca55ad5f77099645b5247623de98
treece90901b0bb5ec9ef43688fcb01e441ce54dfe48
parente28ef07e0ef47c03f773571d85bc82fcce831376
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>
fs/bcachefs/io.c
fs/bcachefs/io_types.h