bcachefs: Fix bch2_sort_repack_merge()
authorKent Overstreet <kent.overstreet@gmail.com>
Wed, 21 Aug 2019 22:35:15 +0000 (18:35 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:25 +0000 (17:08 -0400)
commite42951b0aa50bb67b29da1af1099013c1aeb1d9d
treed423c9d3eb2c00af621f1ffa42939259f4ce0f49
parent76426098e419c1732efc3f88166f3f3592c215c9
bcachefs: Fix bch2_sort_repack_merge()

bch2_bkey_normalize() modifies the value, and we were modifying the
original value in the src btree node - but, we're called without a write
lock held on the src node. Oops...

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