Skip to content
Snippets Groups Projects
Commit c4333eb5 authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: Fix check_snapshot() memcpy


check_snapshot() copies the bch_snapshot to a temporary to easily handle
older versions that don't have all the fields of the current version,
but it lacked a min() to correctly handle keys newer and larger than the
current version.

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 097471f9
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment