@@ -130,10 +130,6 @@ enum {
130
130
Opt_ignoredatacsums ,
131
131
Opt_rescue_all ,
132
132
133
- /* Deprecated options */
134
- Opt_recovery ,
135
- Opt_inode_cache ,
136
-
137
133
/* Debugging options */
138
134
Opt_enospc_debug ,
139
135
#ifdef CONFIG_BTRFS_DEBUG
@@ -230,7 +226,6 @@ static const struct fs_parameter_spec btrfs_fs_parameters[] = {
230
226
fsparam_enum ("discard" , Opt_discard_mode , btrfs_parameter_discard ),
231
227
fsparam_enum ("fatal_errors" , Opt_fatal_errors , btrfs_parameter_fatal_errors ),
232
228
fsparam_flag_no ("flushoncommit" , Opt_flushoncommit ),
233
- fsparam_flag_no ("inode_cache" , Opt_inode_cache ),
234
229
fsparam_string ("max_inline" , Opt_max_inline ),
235
230
fsparam_u32 ("metadata_ratio" , Opt_ratio ),
236
231
fsparam_flag ("rescan_uuid_tree" , Opt_rescan_uuid_tree ),
@@ -253,10 +248,6 @@ static const struct fs_parameter_spec btrfs_fs_parameters[] = {
253
248
/* Deprecated, with alias rescue=usebackuproot */
254
249
__fsparam (NULL , "usebackuproot" , Opt_usebackuproot , fs_param_deprecated , NULL ),
255
250
256
- /* Deprecated options. */
257
- __fsparam (NULL , "recovery" , Opt_recovery ,
258
- fs_param_neg_with_no | fs_param_deprecated , NULL ),
259
-
260
251
/* Debugging options. */
261
252
fsparam_flag_no ("enospc_debug" , Opt_enospc_debug ),
262
253
#ifdef CONFIG_BTRFS_DEBUG
@@ -438,28 +429,6 @@ static int btrfs_parse_param(struct fs_context *fc, struct fs_parameter *param)
438
429
else
439
430
btrfs_clear_opt (ctx -> mount_opt , NOTREELOG );
440
431
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 ;
463
432
case Opt_nologreplay :
464
433
btrfs_warn (NULL ,
465
434
"'nologreplay' is deprecated, use 'rescue=nologreplay' instead" );
@@ -530,10 +499,6 @@ static int btrfs_parse_param(struct fs_context *fc, struct fs_parameter *param)
530
499
case Opt_rescan_uuid_tree :
531
500
btrfs_set_opt (ctx -> mount_opt , RESCAN_UUID_TREE );
532
501
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 ;
537
502
case Opt_clear_cache :
538
503
btrfs_set_opt (ctx -> mount_opt , CLEAR_CACHE );
539
504
break ;
0 commit comments