bcachefs: Initialize journal pad data in bch_replica_entry objects.
authorJustin Husted <sigstop@gmail.com>
Wed, 9 Oct 2019 02:17:06 +0000 (19:17 -0700)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:29 +0000 (17:08 -0400)
commitbf974f92039778d338e265278cb7aeaabf82ec2d
tree02a5f463707223ce777e725e5f090c9fc7786e7e
parentf7c0fcdd396ff4bd3175000eb3911f75edbc85c5
bcachefs: Initialize journal pad data in bch_replica_entry objects.

Running the filesystem under valgrind exposed some garbage data being
written to disk in bch2_journal_super_entries_add_common(), in the
portion which encodes bch_replica_entry objects.

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