bcachefs: Add an overflow check in set_bkey_val_u64s()
authorKent Overstreet <kent.overstreet@gmail.com>
Mon, 15 Aug 2022 18:05:44 +0000 (14:05 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:38 +0000 (17:09 -0400)
commit15bc0948e73d9a858a6b69fc4eb34d176436044c
tree2ba76c58f2f863ed139dd14a75087aff142dd3c6
parentefa8a7014d288b713781404367b54ef10aa2477f
bcachefs: Add an overflow check in set_bkey_val_u64s()

For now this is just a BUG_ON() - we may want to change this to return
an error in the future.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
fs/bcachefs/bkey.h