Commit 962210b2 authored by Kent Overstreet's avatar Kent Overstreet
Browse files

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: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 0b438c5b
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment