Lines Matching defs:opts

72 static int squashfs_parse_param_threads_str(const char *str, struct squashfs_mount_opts *opts)
76 opts->thread_ops = &squashfs_decompressor_single;
80 opts->thread_ops = &squashfs_decompressor_multi;
84 opts->thread_ops = &squashfs_decompressor_percpu;
91 static int squashfs_parse_param_threads_num(const char *str, struct squashfs_mount_opts *opts)
101 opts->thread_ops = &squashfs_decompressor_multi;
102 if (num > opts->thread_ops->max_decompressors())
104 opts->thread_num = (int)num;
109 opts->thread_ops = &squashfs_decompressor_single;
110 opts->thread_num = 1;
118 static int squashfs_parse_param_threads(const char *str, struct squashfs_mount_opts *opts)
120 int ret = squashfs_parse_param_threads_str(str, opts);
124 return squashfs_parse_param_threads_num(str, opts);
129 struct squashfs_mount_opts *opts = fc->fs_private;
139 opts->errors = result.uint_32;
142 if (squashfs_parse_param_threads(param->string, opts) != 0)
182 struct squashfs_mount_opts *opts = fc->fs_private;
200 msblk->thread_ops = opts->thread_ops;
202 msblk->panic_on_errors = (opts->errors == Opt_errors_panic);
236 if (opts->thread_num == 0) {
239 msblk->max_thread_num = opts->thread_num;
492 struct squashfs_mount_opts *opts = fc->fs_private;
497 msblk->panic_on_errors = (opts->errors == Opt_errors_panic);
542 struct squashfs_mount_opts *opts;
544 opts = kzalloc(sizeof(*opts), GFP_KERNEL);
545 if (!opts)
549 opts->thread_ops = &squashfs_decompressor_single;
551 opts->thread_ops = &squashfs_decompressor_multi;
553 opts->thread_ops = &squashfs_decompressor_percpu;
557 opts->thread_num = 0;
558 fc->fs_private = opts;