bcachefs: Further padding fixes in bch2_journal_super_entries_add_common()
authorJustin Husted <sigstop@gmail.com>
Sat, 12 Oct 2019 00:05:11 +0000 (17:05 -0700)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:30 +0000 (17:08 -0400)
commit43cfbad6e431568d14e5d1407203c39a140f0148
tree4c62005b2cad54875399eb0c040755017b8af595
parente3728b50034504e5e64604d72896973374cb1fa5
bcachefs: Further padding fixes in bch2_journal_super_entries_add_common()

The previous patch 128cb1a to fix uninitialized data was incorrect and
did not initialize the padding space correctly. Furthermore, several
other cases in this function do not initialize their padding space
correctly.

Move initialization into some helper functions in a more robust way.

Signed-off-by: Justin Husted <sigstop@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/super-io.c