]> git.dujemihanovic.xyz Git - linux.git/commit
bcachefs: Fix gap buffer bug in bch2_journal_key_insert_take()
authorKent Overstreet <kent.overstreet@linux.dev>
Sun, 7 Apr 2024 01:45:46 +0000 (21:45 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 7 Apr 2024 06:22:28 +0000 (02:22 -0400)
commit30e615a2ce6601d85729caefd8ac15634f848e59
tree7e12327a16212e0846f07917fdc9d86ad8711d23
parent2d793e9315e335ef299024fe8bf7742c9c974b33
bcachefs: Fix gap buffer bug in bch2_journal_key_insert_take()

Multiple bug fixes for journal iters:

 - When the journal keys gap buffer is resized, we have to adjust the
   iterators for moving the gap to the end
 - We don't want to rewind iterators to point to the key we just
   inserted if it's not for the correct btree/level

Also, add some new assertions.

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