Kent Overstreet 962210b281 bcachefs: Fix a buffer overrun in bch2_fs_usage_read()
We were copying the size of a struct bch_fs_usage_online to a struct
bch_fs_usage, which is 8 bytes smaller.

This adds some new helpers so we can do this correctly, and get rid of
some magic +1s too.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2023-10-22 17:10:01 -04:00
..
2023-10-22 17:09:44 -04:00
2023-10-22 17:09:12 -04:00
2023-10-22 17:10:00 -04:00
2023-10-22 17:10:01 -04:00
2023-10-22 17:10:00 -04:00
2023-10-22 17:09:31 -04:00
2023-10-22 17:09:53 -04:00
2023-10-22 17:08:07 -04:00
2023-10-22 17:09:51 -04:00
2023-10-22 17:09:57 -04:00
2023-10-22 17:08:07 -04:00
2023-10-22 17:09:32 -04:00
2023-10-22 17:10:00 -04:00
2023-10-22 17:10:00 -04:00
2023-10-22 17:09:54 -04:00
2023-10-22 17:10:00 -04:00
2023-10-22 17:10:00 -04:00
2023-10-22 17:09:45 -04:00
2023-10-22 17:10:01 -04:00
2023-10-22 17:10:00 -04:00
2023-10-22 17:10:00 -04:00
2023-10-22 17:09:45 -04:00
2023-10-22 17:10:01 -04:00
2023-10-22 17:09:32 -04:00
2023-10-22 17:08:07 -04:00
2023-10-22 17:09:59 -04:00
2023-10-22 17:08:59 -04:00
2023-10-22 17:10:00 -04:00
2023-10-22 17:10:00 -04:00
2023-10-22 17:09:57 -04:00
2023-10-22 17:09:56 -04:00
2023-10-22 17:08:07 -04:00
2023-10-22 17:10:00 -04:00
2023-10-22 17:10:00 -04:00
2023-10-22 17:09:51 -04:00
2023-10-22 17:08:07 -04:00
2023-10-22 17:09:49 -04:00
2023-10-22 17:09:33 -04:00
2023-10-22 17:08:13 -04:00
2023-10-22 17:10:01 -04:00
2023-10-22 17:10:00 -04:00
2023-10-22 17:10:01 -04:00
2023-10-22 17:10:00 -04:00
2023-10-22 17:10:00 -04:00
2023-10-22 17:09:44 -04:00
2023-10-22 17:08:07 -04:00
2023-10-22 17:09:50 -04:00
2023-10-22 17:10:01 -04:00
2023-10-22 17:10:01 -04:00
2023-10-22 17:09:51 -04:00
2023-10-22 17:09:59 -04:00
2023-10-22 17:09:32 -04:00
2023-10-22 17:10:00 -04:00
2023-10-22 17:09:25 -04:00
2023-10-22 17:10:00 -04:00
2023-10-22 17:10:00 -04:00