Skip to content

Commit 8af94e7

Browse files
adam900710kdave
authored andcommitted
btrfs: remove standalone "nologreplay" mount option
Standalone "nologreplay" mount option has been marked deprecated since commit 74ef001 ("btrfs: introduce "rescue=" mount option"), which dates back to v5.9 (2020). Furthermore there is no other filesystem with the same named mount option, so this one is btrfs specific and we will not hit the same problem when removing "norecovery" mount option. So let's remove the standalone "nologreplay" mount option. Signed-off-by: Qu Wenruo <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
1 parent 1ce06d4 commit 8af94e7

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

fs/btrfs/super.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@ enum {
125125
/* Rescue options */
126126
Opt_rescue,
127127
Opt_usebackuproot,
128-
Opt_nologreplay,
129128

130129
/* Debugging options */
131130
Opt_enospc_debug,
@@ -246,8 +245,6 @@ static const struct fs_parameter_spec btrfs_fs_parameters[] = {
246245

247246
/* Rescue options. */
248247
fsparam_enum("rescue", Opt_rescue, btrfs_parameter_rescue),
249-
/* Deprecated, with alias rescue=nologreplay */
250-
__fsparam(NULL, "nologreplay", Opt_nologreplay, fs_param_deprecated, NULL),
251248
/* Deprecated, with alias rescue=usebackuproot */
252249
__fsparam(NULL, "usebackuproot", Opt_usebackuproot, fs_param_deprecated, NULL),
253250
/* For compatibility only, alias for "rescue=nologreplay". */
@@ -449,11 +446,6 @@ static int btrfs_parse_param(struct fs_context *fc, struct fs_parameter *param)
449446
else
450447
btrfs_clear_opt(ctx->mount_opt, NOTREELOG);
451448
break;
452-
case Opt_nologreplay:
453-
btrfs_warn(NULL,
454-
"'nologreplay' is deprecated, use 'rescue=nologreplay' instead");
455-
btrfs_set_opt(ctx->mount_opt, NOLOGREPLAY);
456-
break;
457449
case Opt_norecovery:
458450
btrfs_info(NULL,
459451
"'norecovery' is for compatibility only, recommended to use 'rescue=nologreplay'");

0 commit comments

Comments
 (0)