From 2a0f8bfda8b00de429cb15481e3e20d5d140a81c Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Mon, 21 Apr 2008 19:59:14 +0000 Subject: [PATCH] ppc64-linux-26-thread-info-20080418 LICENSE IPL10 thread_info is dead --- src/afs/afs_syscall.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/afs/afs_syscall.c b/src/afs/afs_syscall.c index 5b1d782800..91cb82cc78 100644 --- a/src/afs/afs_syscall.c +++ b/src/afs/afs_syscall.c @@ -111,7 +111,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) @@ -378,7 +382,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)