X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fllite%2Fllite_internal.h;h=912b04d198b5af939bb511da96fea8c6e97af207;hp=d72fe696368904b4bebb0fe34ec0c9fdd124e1df;hb=9ec520b7e8a1858266c747f8501b347385914d3f;hpb=60eb9e88cafe07fd0a7922d8953f66b53d97b0cd diff --git a/lustre/llite/llite_internal.h b/lustre/llite/llite_internal.h index d72fe69..912b04d 100644 --- a/lustre/llite/llite_internal.h +++ b/lustre/llite/llite_internal.h @@ -657,7 +657,12 @@ static inline int ll_need_32bit_api(struct ll_sb_info *sbi) #if BITS_PER_LONG == 32 return 1; #else - return unlikely(is_compat_task() || (sbi->ll_flags & LL_SBI_32BIT_API)); + return unlikely( +#ifdef CONFIG_COMPAT + is_compat_task() || +#endif + (sbi->ll_flags & LL_SBI_32BIT_API) + ); #endif }