diff options
| author | Jan Kara <jack@suse.cz> | 2019-03-19 04:48:59 -0400 |
|---|---|---|
| committer | Jan Kara <jack@suse.cz> | 2019-03-26 06:21:23 -0400 |
| commit | a768a9abc625d554f7b6428517089c193fcb5962 (patch) | |
| tree | 18c13717fcc0d10b8d66e0df4e0068ff83f7f877 | |
| parent | 8c2ffd9174779014c3fe1f96d9dc3641d9175f00 (diff) | |
udf: Explain handling of load_nls() failure
Add comment explaining that load_nls() failure gets handled back in
udf_fill_super() to avoid false impression that it is unhandled.
Signed-off-by: Jan Kara <jack@suse.cz>
| -rw-r--r-- | fs/udf/super.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/udf/super.c b/fs/udf/super.c index ffd8038ff728..387f90b32fa9 100644 --- a/fs/udf/super.c +++ b/fs/udf/super.c | |||
| @@ -572,6 +572,11 @@ static int udf_parse_options(char *options, struct udf_options *uopt, | |||
| 572 | if (!remount) { | 572 | if (!remount) { |
| 573 | if (uopt->nls_map) | 573 | if (uopt->nls_map) |
| 574 | unload_nls(uopt->nls_map); | 574 | unload_nls(uopt->nls_map); |
| 575 | /* | ||
| 576 | * load_nls() failure is handled later in | ||
| 577 | * udf_fill_super() after all options are | ||
| 578 | * parsed. | ||
| 579 | */ | ||
| 575 | uopt->nls_map = load_nls(args[0].from); | 580 | uopt->nls_map = load_nls(args[0].from); |
| 576 | uopt->flags |= (1 << UDF_FLAG_NLS_MAP); | 581 | uopt->flags |= (1 << UDF_FLAG_NLS_MAP); |
| 577 | } | 582 | } |
