bcachefs: Clear k->needs_whitout earlier in commit path
authorKent Overstreet <kent.overstreet@linux.dev>
Tue, 7 Nov 2023 16:16:14 +0000 (11:16 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Mon, 1 Jan 2024 16:47:37 +0000 (11:47 -0500)
commit389c92b36e302d866c2850e70560667ac4a826c6
tree730d56fa3c13a8b5e4bc3b392ae74f45bb9cc673
parent066a26460bb209d987a138519fc32b3806c1288a
bcachefs: Clear k->needs_whitout earlier in commit path

The upcoming btree write buffer rework is going to use the journal
itself as the first stage of the write buffer; this is a cleanup to make
sure k->needs_whiteout is initialized before keys hit the journal.

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