bcachefs: rebalance, copygc enabled are runtime opts
authorKent Overstreet <kent.overstreet@linux.dev>
Sat, 25 Jan 2025 22:19:38 +0000 (17:19 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 26 Jan 2025 00:33:19 +0000 (19:33 -0500)
Fix a regression from when these were switched to normal opts.h options.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/opts.h

index e763d52e0f389d59f26430215594d1d11c02a36c..a182b5d454ba62199bbd94c38c7b3d623e6609a3 100644 (file)
@@ -476,13 +476,13 @@ enum fsck_err_opts {
          NULL,         "Enable nocow mode: enables runtime locking in\n"\
                        "data move path needed if nocow will ever be in use\n")\
        x(copygc_enabled,               u8,                             \
-         OPT_FS|OPT_MOUNT,                                             \
+         OPT_FS|OPT_MOUNT|OPT_RUNTIME,                                 \
          OPT_BOOL(),                                                   \
          BCH2_NO_SB_OPT,                       true,                   \
          NULL,         "Enable copygc: disable for debugging, or to\n"\
                        "quiet the system when doing performance testing\n")\
        x(rebalance_enabled,            u8,                             \
-         OPT_FS|OPT_MOUNT,                                             \
+         OPT_FS|OPT_MOUNT|OPT_RUNTIME,                                 \
          OPT_BOOL(),                                                   \
          BCH2_NO_SB_OPT,                       true,                   \
          NULL,         "Enable rebalance: disable for debugging, or to\n"\