bcachefs: iter->real_pos
authorKent Overstreet <kent.overstreet@gmail.com>
Fri, 12 Feb 2021 02:57:32 +0000 (21:57 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:53 +0000 (17:08 -0400)
commit7e1a3aa9dfcb9cd8f46085df86f158a1f23085dc
treefe9a1fcba94dccd2cedbe98bebb297366365e9b4
parent9f631dc14325df8acfa73c76299dbefb68582ee4
bcachefs: iter->real_pos

We need to differentiate between the search position of a btree
iterator, vs. what it actually points at (what we found). This matters
for extents, where iter->pos will typically be the start of the key we
found and iter->real_pos will be the end of the key we found (which soon
won't necessarily be in the same btree node!) and it will also matter
for snapshots.

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