Skip to content

Commit a1912f7

Browse files
josefbacikkdave
authored andcommitted
btrfs: remove code for inode_cache and recovery mount options
We've deprecated these a while ago in 5.11, go ahead and remove the code for them. Reviewed-by: Johannes Thumshirn <[email protected]> Reviewed-by: Anand Jain <[email protected]> Acked-by: Christian Brauner <[email protected]> Signed-off-by: Josef Bacik <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
1 parent 9fb3b1a commit a1912f7

File tree

1 file changed

+0
-35
lines changed

1 file changed

+0
-35
lines changed

fs/btrfs/super.c

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,6 @@ enum {
130130
Opt_ignoredatacsums,
131131
Opt_rescue_all,
132132

133-
/* Deprecated options */
134-
Opt_recovery,
135-
Opt_inode_cache,
136-
137133
/* Debugging options */
138134
Opt_enospc_debug,
139135
#ifdef CONFIG_BTRFS_DEBUG
@@ -230,7 +226,6 @@ static const struct fs_parameter_spec btrfs_fs_parameters[] = {
230226
fsparam_enum("discard", Opt_discard_mode, btrfs_parameter_discard),
231227
fsparam_enum("fatal_errors", Opt_fatal_errors, btrfs_parameter_fatal_errors),
232228
fsparam_flag_no("flushoncommit", Opt_flushoncommit),
233-
fsparam_flag_no("inode_cache", Opt_inode_cache),
234229
fsparam_string("max_inline", Opt_max_inline),
235230
fsparam_u32("metadata_ratio", Opt_ratio),
236231
fsparam_flag("rescan_uuid_tree", Opt_rescan_uuid_tree),
@@ -253,10 +248,6 @@ static const struct fs_parameter_spec btrfs_fs_parameters[] = {
253248
/* Deprecated, with alias rescue=usebackuproot */
254249
__fsparam(NULL, "usebackuproot", Opt_usebackuproot, fs_param_deprecated, NULL),
255250

256-
/* Deprecated options. */
257-
__fsparam(NULL, "recovery", Opt_recovery,
258-
fs_param_neg_with_no | fs_param_deprecated, NULL),
259-
260251
/* Debugging options. */
261252
fsparam_flag_no("enospc_debug", Opt_enospc_debug),
262253
#ifdef CONFIG_BTRFS_DEBUG
@@ -438,28 +429,6 @@ static int btrfs_parse_param(struct fs_context *fc, struct fs_parameter *param)
438429
else
439430
btrfs_clear_opt(ctx->mount_opt, NOTREELOG);
440431
break;
441-
case Opt_recovery:
442-
/*
443-
* -o recovery used to be an alias for usebackuproot, and then
444-
* norecovery was an alias for nologreplay, hence the different
445-
* behaviors for negated and not.
446-
*/
447-
if (result.negated) {
448-
btrfs_warn(NULL,
449-
"'norecovery' is deprecated, use 'rescue=nologreplay' instead");
450-
btrfs_set_opt(ctx->mount_opt, NOLOGREPLAY);
451-
} else {
452-
btrfs_warn(NULL,
453-
"'recovery' is deprecated, use 'rescue=usebackuproot' instead");
454-
btrfs_set_opt(ctx->mount_opt, USEBACKUPROOT);
455-
456-
/*
457-
* If we're loading the backup roots we can't trust the
458-
* space cache.
459-
*/
460-
btrfs_set_opt(ctx->mount_opt, CLEAR_CACHE);
461-
}
462-
break;
463432
case Opt_nologreplay:
464433
btrfs_warn(NULL,
465434
"'nologreplay' is deprecated, use 'rescue=nologreplay' instead");
@@ -530,10 +499,6 @@ static int btrfs_parse_param(struct fs_context *fc, struct fs_parameter *param)
530499
case Opt_rescan_uuid_tree:
531500
btrfs_set_opt(ctx->mount_opt, RESCAN_UUID_TREE);
532501
break;
533-
case Opt_inode_cache:
534-
btrfs_warn(NULL,
535-
"the 'inode_cache' option is deprecated and has no effect since 5.11");
536-
break;
537502
case Opt_clear_cache:
538503
btrfs_set_opt(ctx->mount_opt, CLEAR_CACHE);
539504
break;

0 commit comments

Comments
 (0)