X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=fs%2Fudf%2Fsuper.c;h=54e1ecffa07a894bae6d8feda94937c0deddf047;hb=9bf4aaab3e101692164d49b7ca357651eb691cb6;hp=bbad84970ebbf6c170083d515a747330e22ab483;hpb=5273a3df6485dc2ad6aa7ddd441b9a21970f003b;p=linux-2.6.git diff --git a/fs/udf/super.c b/fs/udf/super.c index bbad84970..54e1ecffa 100644 --- a/fs/udf/super.c +++ b/fs/udf/super.c @@ -417,7 +417,7 @@ udf_parse_options(char *options, struct udf_options *uopt) case Opt_utf8: uopt->flags |= (1 << UDF_FLAG_UTF8); break; -#if defined(CONFIG_NLS) || defined(CONFIG_NLS_MODULE) +#ifdef CONFIG_UDF_NLS case Opt_iocharset: uopt->nls_map = load_nls(args[0].from); uopt->flags |= (1 << UDF_FLAG_NLS_MAP); @@ -1518,7 +1518,7 @@ static int udf_fill_super(struct super_block *sb, void *options, int silent) "utf8 cannot be combined with iocharset\n"); goto error_out; } -#if defined(CONFIG_NLS) || defined(CONFIG_NLS_MODULE) +#ifdef CONFIG_UDF_NLS if ((uopt.flags & (1 << UDF_FLAG_NLS_MAP)) && !uopt.nls_map) { uopt.nls_map = load_nls_default(); @@ -1668,7 +1668,7 @@ error_out: udf_release_data(UDF_SB_TYPESPAR(sb, UDF_SB_PARTITION(sb)).s_spar_map[i]); } } -#if defined(CONFIG_NLS) || defined(CONFIG_NLS_MODULE) +#ifdef CONFIG_UDF_NLS if (UDF_QUERY_FLAG(sb, UDF_FLAG_NLS_MAP)) unload_nls(UDF_SB(sb)->s_nls_map); #endif @@ -1746,7 +1746,7 @@ udf_put_super(struct super_block *sb) udf_release_data(UDF_SB_TYPESPAR(sb, UDF_SB_PARTITION(sb)).s_spar_map[i]); } } -#if defined(CONFIG_NLS) || defined(CONFIG_NLS_MODULE) +#ifdef CONFIG_UDF_NLS if (UDF_QUERY_FLAG(sb, UDF_FLAG_NLS_MAP)) unload_nls(UDF_SB(sb)->s_nls_map); #endif