]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: peek_prev_min(): Search forwards for extents, snapshots
authorKent Overstreet <kent.overstreet@linux.dev>
Sat, 26 Oct 2024 00:41:06 +0000 (20:41 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sat, 21 Dec 2024 06:36:18 +0000 (01:36 -0500)
commitac745efb429226434d9a8c5a1496dc0373efa359
tree2baa70283b59ac5fef96d2c0d0ce288db5d664cd
parent7e5b8e00e2631ee1fa72edeb420e7393ad078ab3
bcachefs: peek_prev_min(): Search forwards for extents, snapshots

With extents and snapshots, for slightly different reasons, we may have
to search forwards to find a key that compares equal to iter->pos (i.e.
a key that peek_prev() should return, as it returns keys <= iter->pos).

peek_slot() does this, and is an easy way to fix this case.

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