diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2025-03-19 10:15:48 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2025-03-19 10:18:56 -0400 |
commit | 62ea232b09a6ed6464ccd23d3b60f5acf284a77b (patch) | |
tree | 836c5603fce33a4d3c7379607ec48017ec37bea4 /c_src | |
parent | 64ce740ac675de883ed6ce99be134a1096708063 (diff) |
Update bcachefs sources to dbe591cee299 bcachefs: Add missing smp_rmb()
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'c_src')
-rw-r--r-- | c_src/cmd_option.c | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/c_src/cmd_option.c b/c_src/cmd_option.c index eaf3429f..99e397b9 100644 --- a/c_src/cmd_option.c +++ b/c_src/cmd_option.c @@ -111,16 +111,16 @@ int cmd_set_option(int argc, char *argv[]) if (!bch2_opt_defined_by_id(&new_opts, i)) continue; - ret = bch2_opt_check_may_set(c, i, v); - if (ret < 0) { - fprintf(stderr, "error setting %s: %i\n", opt->attr.name, ret); - continue; - } - if (!(opt->flags & (OPT_FS|OPT_DEVICE))) fprintf(stderr, "Can't set option %s\n", opt->attr.name); if (opt->flags & OPT_FS) { + ret = bch2_opt_check_may_set(c, NULL, i, v); + if (ret < 0) { + fprintf(stderr, "error setting %s: %i\n", opt->attr.name, ret); + continue; + } + bch2_opt_set_sb(c, NULL, opt, v); } @@ -133,6 +133,12 @@ int cmd_set_option(int argc, char *argv[]) continue; } + ret = bch2_opt_check_may_set(c, ca, i, v); + if (ret < 0) { + fprintf(stderr, "error setting %s: %i\n", opt->attr.name, ret); + continue; + } + bch2_opt_set_sb(c, ca, opt, v); bch2_dev_put(ca); } |