Lines Matching refs:ret
125 int ret = match_string(bch2_fsck_fix_opts, -1, val);
127 if (ret < 0 && err)
129 if (ret < 0)
130 return ret;
131 *res = ret;
328 ssize_t ret;
333 ret = kstrtou64(val, 10, res);
335 ret = 0;
339 if (ret < 0 || (*res != 0 && *res != 1)) {
342 return ret < 0 ? ret : -BCH_ERR_option_not_bool;
352 ret = opt->flags & OPT_HUMAN_READABLE
355 if (ret < 0) {
359 return ret;
369 ret = match_string(opt->choices, -1, val);
370 if (ret < 0) {
374 return ret;
377 *res = ret;
380 ret = opt->fn.parse(c, val, res, err);
381 if (ret < 0) {
385 return ret;
432 int ret = 0;
437 ret = bch2_check_set_has_compressed_data(c, v);
445 return ret;
451 int ret;
454 ret = bch2_opt_check_may_set(c, i,
456 if (ret)
457 return ret;
468 int ret, id;
517 ret = bch2_opt_parse(c, &bch2_opt_table[id], val, &v, &err);
518 if (ret < 0)
524 ret = 0;
529 ret = -BCH_ERR_option_name;
533 ret = -BCH_ERR_option_value;
538 return ret;