From: Andy Lutomirski Date: Tue, 22 Mar 2016 21:25:01 +0000 (-0700) Subject: staging/lustre: switch from is_compat_task to in_compat_syscall X-Git-Tag: v4.6-rc1~45^2~67 X-Git-Url: http://git.cascardo.eti.br/?a=commitdiff_plain;h=6d8bedff926b7d31fa68e7f81c2f13fdc29fe157;hp=efbc0fbf34927bd4d3d49b50b370990be82809c2;p=cascardo%2Flinux.git staging/lustre: switch from is_compat_task to in_compat_syscall AFAICT, lustre is trying to determine syscall bitness. Use the new accessor. Signed-off-by: Andy Lutomirski Cc: Oleg Drokin Cc: Andreas Dilger Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/staging/lustre/lustre/llite/llite_internal.h b/drivers/staging/lustre/lustre/llite/llite_internal.h index 973f5cdec192..3e1572cb457b 100644 --- a/drivers/staging/lustre/lustre/llite/llite_internal.h +++ b/drivers/staging/lustre/lustre/llite/llite_internal.h @@ -657,7 +657,7 @@ static inline int ll_need_32bit_api(struct ll_sb_info *sbi) #if BITS_PER_LONG == 32 return 1; #elif defined(CONFIG_COMPAT) - return unlikely(is_compat_task() || (sbi->ll_flags & LL_SBI_32BIT_API)); + return unlikely(in_compat_syscall() || (sbi->ll_flags & LL_SBI_32BIT_API)); #else return unlikely(sbi->ll_flags & LL_SBI_32BIT_API); #endif