diff --git a/fs/bcachefs/fs-io.c b/fs/bcachefs/fs-io.c index 77b85da30fb2..33c5d553a612 100644 --- a/fs/bcachefs/fs-io.c +++ b/fs/bcachefs/fs-io.c @@ -180,7 +180,7 @@ static int bch2_flush_inode(struct bch_fs *c, if (!bch2_write_ref_tryget(c, BCH_WRITE_REF_fsync)) return -EROFS; - struct bch_inode_unpacked u; + struct bch_inode_unpacked u = {0}; int ret = bch2_inode_find_by_inum(c, inode_inum(inode), &u) ?: bch2_journal_flush_seq(&c->journal, u.bi_journal_seq) ?: bch2_inode_flush_nocow_writes(c, inode);