bcachefs: Write buffer flush needs BTREE_INSERT_NOCHECK_RW
authorKent Overstreet <kent.overstreet@linux.dev>
Sun, 11 Jun 2023 23:45:21 +0000 (19:45 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:10:04 +0000 (17:10 -0400)
commit8e5b1115f1dd88125cbb06c344ba1f4214265042
tree1f90df01f27cebabc17c7f055130c4eb1c43ecf4
parent7724664f0ee4520f1c7fd3c0cc26223ba532986f
bcachefs: Write buffer flush needs BTREE_INSERT_NOCHECK_RW

btree write buffer flush is only invoked from contexts that already hold
a write ref, and checking if we're still RW could cause us to fail to
completely flush the write buffer when shutting down.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/btree_write_buffer.c