X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=fs%2Fudf%2Fsuper.c;h=bbad84970ebbf6c170083d515a747330e22ab483;hb=1be35e94e1da3669db492995cd2c8b1a37016b11;hp=54e1ecffa07a894bae6d8feda94937c0deddf047;hpb=a91482bdcc2e0f6035702e46f1b99043a0893346;p=linux-2.6.git diff --git a/fs/udf/super.c b/fs/udf/super.c index 54e1ecffa..bbad84970 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; -#ifdef CONFIG_UDF_NLS +#if defined(CONFIG_NLS) || defined(CONFIG_NLS_MODULE) 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; } -#ifdef CONFIG_UDF_NLS +#if defined(CONFIG_NLS) || defined(CONFIG_NLS_MODULE) 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]); } } -#ifdef CONFIG_UDF_NLS +#if defined(CONFIG_NLS) || defined(CONFIG_NLS_MODULE) 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]); } } -#ifdef CONFIG_UDF_NLS +#if defined(CONFIG_NLS) || defined(CONFIG_NLS_MODULE) if (UDF_QUERY_FLAG(sb, UDF_FLAG_NLS_MAP)) unload_nls(UDF_SB(sb)->s_nls_map); #endif