diff --git a/fs/incfs/vfs.c b/fs/incfs/vfs.c index c0a5181cd3ef..e794b73a1553 100644 --- a/fs/incfs/vfs.c +++ b/fs/incfs/vfs.c @@ -181,12 +181,13 @@ static int parse_options(struct mount_options *opts, char *str) if (opts == NULL) return -EFAULT; - opts->read_timeout_ms = 1000; /* Default: 1s */ - opts->readahead_pages = 10; - opts->read_log_pages = 2; - opts->read_log_wakeup_count = 10; - opts->no_backing_file_cache = false; - opts->no_backing_file_readahead = false; + *opts = (struct mount_options) { + .read_timeout_ms = 1000, /* Default: 1s */ + .readahead_pages = 10, + .read_log_pages = 2, + .read_log_wakeup_count = 10, + }; + if (str == NULL || *str == 0) return 0;