]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: Rework init order in bch2_data_update_init()
authorKent Overstreet <kent.overstreet@linux.dev>
Sun, 19 Jan 2025 18:43:44 +0000 (13:43 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sat, 15 Mar 2025 01:02:11 +0000 (21:02 -0400)
commitc37d42a0e2be210e4e9b60a5a1092e1f139b64a0
treef8776a33c5c0f3b7d21aa109c2d432b5ca57f15c
parent29ad31c780d1e4e37244140442aaec41c3efb7d6
bcachefs: Rework init order in bch2_data_update_init()

Initialize the write op first, so that in the next patch we can check if
the allocator would block (for BCH_WRITE_alloc_nowait ops) and bail out
before taking nocow locks/dev refs.

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