Commit 58517f4d authored by Roxana Nicolescu's avatar Roxana Nicolescu Committed by Kent Overstreet
Browse files

bcachefs: Initialize from_inode members for bch_io_opts



When there is no inode source, all "from_inode" members in the structure
bhc_io_opts should be set false.

Fixes: 7a7c43a0 ("bcachefs: Add bch_io_opts fields for indicating whether the opts came from the inode")
Reported-by: default avatar <syzbot+c17ad4b4367b72a853cb@syzkaller.appspotmail.com>
Closes: https://syzkaller.appspot.com/bug?extid=c17ad4b4367b72a853cb


Signed-off-by: default avatarRoxana Nicolescu <nicolescu.roxana@protonmail.com>
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 3a04334d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1198,6 +1198,7 @@ void bch2_inode_opts_get(struct bch_io_opts *opts, struct bch_fs *c,
		opts->_name##_from_inode = true;			\
	} else {							\
		opts->_name = c->opts._name;				\
		opts->_name##_from_inode = false;			\
	}
	BCH_INODE_OPTS()
#undef x