bcachefs: Fix some memcpy() warnings
authorKent Overstreet <kent.overstreet@linux.dev>
Wed, 28 Dec 2022 20:17:07 +0000 (15:17 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:48 +0000 (17:09 -0400)
commit2cc9c0db89f7b6e3c3218ddaa7964055af8d95af
tree23f8779e2fb1b7a123fd81d534bf98e9ceae3756
parent84464e57529b45e235c24bc7db24b60ffba7f540
bcachefs: Fix some memcpy() warnings

With CONFIG_FORTIFY_SOURCE, the compiler attempts to warn about mempcys
that extend past struct field boundaries. This results in some spurious
warnings where we use embedded variable length structs, this patch
switches to unsafe_mecpy() to fix the warnings.

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