]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
bcachefs: Ensure iter->real_pos is consistent with key returned
authorKent Overstreet <kent.overstreet@gmail.com>
Tue, 24 Aug 2021 20:54:36 +0000 (16:54 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:10 +0000 (17:09 -0400)
commite6e024e9bf250e24cc8f8546a4645d7271d7f090
tree7f71e99664c8880b4c9499758baa407a5d207afa
parent1865ccff159cce61d017d1c93e024d2f482d6a0c
bcachefs: Ensure iter->real_pos is consistent with key returned

iter->real_pos needs to match the key returned or bad things will happen
when we go to update the key at that position. When we returned a
pending update from btree_trans_peek_updates(), this wasn't necessarily
the case.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
fs/bcachefs/btree_iter.c