From ee2851074b4a555c7f4f883816143cce46880e0c Mon Sep 17 00:00:00 2001 From: Qu Wenruo Date: Fri, 3 Jul 2026 19:16:08 +0930 Subject: [PATCH] btrfs: remove "usebackuproot" mount option This mount option is marked deprecated since the introduction of "rescue=" mount option group, in v5.9. That's already a long time ago, and it should be safe to completely remove the old "usebackuproot" mount option now. Reviewed-by: Johannes Thumshirn Reviewed-by: Neal Gompa Signed-off-by: Qu Wenruo Signed-off-by: David Sterba --- fs/btrfs/super.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c index 1919f42dfb24..b745794595d1 100644 --- a/fs/btrfs/super.c +++ b/fs/btrfs/super.c @@ -129,7 +129,6 @@ enum { /* Rescue options */ Opt_rescue, - Opt_usebackuproot, /* Debugging options */ Opt_enospc_debug, @@ -249,8 +248,6 @@ static const struct fs_parameter_spec btrfs_fs_parameters[] = { /* Rescue options. */ fsparam_enum("rescue", Opt_rescue, btrfs_parameter_rescue), - /* Deprecated, with alias rescue=usebackuproot */ - __fsparam(NULL, "usebackuproot", Opt_usebackuproot, fs_param_deprecated, NULL), /* For compatibility only, alias for "rescue=nologreplay". */ fsparam_flag("norecovery", Opt_norecovery), @@ -561,14 +558,6 @@ static int btrfs_parse_param(struct fs_context *fc, struct fs_parameter *param) else btrfs_set_opt(ctx->mount_opt, AUTO_DEFRAG); break; - case Opt_usebackuproot: - btrfs_warn(NULL, - "'usebackuproot' is deprecated, use 'rescue=usebackuproot' instead"); - btrfs_set_opt(ctx->mount_opt, USEBACKUPROOT); - - /* If we're loading the backup roots we can't trust the space cache. */ - btrfs_set_opt(ctx->mount_opt, CLEAR_CACHE); - break; case Opt_skip_balance: btrfs_set_opt(ctx->mount_opt, SKIP_BALANCE); break;