File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -577,26 +577,25 @@ static int erofs_fc_parse_param(struct fs_context *fc,
577
577
}
578
578
++ ctx -> devs -> extra_devices ;
579
579
break ;
580
- case Opt_fsid :
581
580
#ifdef CONFIG_EROFS_FS_ONDEMAND
581
+ case Opt_fsid :
582
582
kfree (ctx -> fsid );
583
583
ctx -> fsid = kstrdup (param -> string , GFP_KERNEL );
584
584
if (!ctx -> fsid )
585
585
return - ENOMEM ;
586
- #else
587
- errorfc (fc , "fsid option not supported" );
588
- #endif
589
586
break ;
590
587
case Opt_domain_id :
591
- #ifdef CONFIG_EROFS_FS_ONDEMAND
592
588
kfree (ctx -> domain_id );
593
589
ctx -> domain_id = kstrdup (param -> string , GFP_KERNEL );
594
590
if (!ctx -> domain_id )
595
591
return - ENOMEM ;
592
+ break ;
596
593
#else
597
- errorfc (fc , "domain_id option not supported" );
598
- #endif
594
+ case Opt_fsid :
595
+ case Opt_domain_id :
596
+ errorfc (fc , "%s option not supported" , erofs_fs_parameters [opt ].name );
599
597
break ;
598
+ #endif
600
599
default :
601
600
return - ENOPARAM ;
602
601
}
You can’t perform that action at this time.
0 commit comments