From 9886ba89059b0877b118178952ede6adddd3b89f Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Fri, 18 Apr 2008 21:13:32 +0000 Subject: [PATCH] STABLE14-ppc64-linux-26-thread-info-20080418 LICENSE IPL10 thread_info is dead (cherry picked from commit 2a0f8bfda8b00de429cb15481e3e20d5d140a81c) --- src/afs/afs_call.c | 4 ++++ src/afs/afs_pioctl.c | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/afs/afs_call.c b/src/afs/afs_call.c index dcf0a8ba4e..7be11b987e 100644 --- a/src/afs/afs_call.c +++ b/src/afs/afs_call.c @@ -1415,7 +1415,11 @@ copyin_iparam(caddr_t cmarg, struct iparam *dst) if (current->thread.flags & THREAD_IA32) #elif defined(AFS_PPC64_LINUX26_ENV) +#if defined(STRUCT_TASK_STRUCT_HAS_THREAD_INFO) if (current->thread_info->flags & _TIF_32BIT) +#else + if (task_thread_info(current)->flags & _TIF_32BIT) +#endif #elif defined(AFS_PPC64_LINUX20_ENV) if (current->thread.flags & PPC_FLAG_32BIT) diff --git a/src/afs/afs_pioctl.c b/src/afs/afs_pioctl.c index dedf693de6..e1d9123c97 100644 --- a/src/afs/afs_pioctl.c +++ b/src/afs/afs_pioctl.c @@ -284,7 +284,11 @@ copyin_afs_ioctl(caddr_t cmarg, struct afs_ioctl *dst) if (current->thread.flags & THREAD_IA32) #elif defined(AFS_PPC64_LINUX26_ENV) - if (current->thread_info->flags & _TIF_32BIT) +#if defined(STRUCT_TASK_STRUCT_HAS_THREAD_INFO) + if (current->thread_info->flags & _TIF_32BIT) +#else + if (task_thread_info(current)->flags & _TIF_32BIT) +#endif #elif defined(AFS_PPC64_LINUX20_ENV) if (current->thread.flags & PPC_FLAG_32BIT)