bcachefs: Require snapshot id to be set
authorKent Overstreet <kent.overstreet@gmail.com>
Tue, 16 Mar 2021 02:34:00 +0000 (22:34 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:13 +0000 (17:09 -0400)
commita861c7225b9e31da745c262711d625782b5d766a
tree6bf88e70b58f96f0aa522621747b5a13faa24e37
parent6f83cb84bb74cd766f888380cfb5f9268e55d9f1
bcachefs: Require snapshot id to be set

Now that all the existing code has been converted for snapshots, this
patch changes the code for initializing a btree iterator to require a
snapshot to be specified, and also change bkey_invalid() to allow for
non U32_MAX snapshot IDs.

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