]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
bcachefs: Simplify bch2_btree_iter_peek_prev()
authorKent Overstreet <kent.overstreet@gmail.com>
Fri, 5 Mar 2021 03:40:41 +0000 (22:40 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:55 +0000 (17:08 -0400)
commita045be5a0edb0f53770e6c6465155d3952e5bbde
treef7191df41858135445dbc878997661e6805467cb
parent27ace9cc01ea0ebb4a857c8d91e303fd7ab46b19
bcachefs: Simplify bch2_btree_iter_peek_prev()

Since we added iter->real_pos, btree_iter_set_pos_to_(next|prev)_leaf no
longer modify iter->pos, so we don't have to save it at the start
anymore.

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