From: Sam Hartman Date: Mon, 11 Oct 2004 17:21:28 +0000 (+0000) Subject: ppc64-26-support-20041011 X-Git-Tag: BP-disconnected~224 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=1d1412bbc4b19b901dde5f6f2a16223be2230026;p=packages%2Fo%2Fopenafs.git ppc64-26-support-20041011 FIXES 15581 --- diff --git a/src/afs/LINUX/osi_module.c b/src/afs/LINUX/osi_module.c index dba52d595..af2d9503e 100644 --- a/src/afs/LINUX/osi_module.c +++ b/src/afs/LINUX/osi_module.c @@ -223,11 +223,6 @@ asmlinkage int (*sys_setgroups32p) (int gidsetsize, #define SYSCALL2POINTER (void *) #endif -#ifdef AFS_PPC64_LINUX20_ENV -extern void *set_afs_syscall(void*); -extern void *set_afs_xsetgroups_syscall(void*); -extern void *set_afs_xsetgroups_syscall32(void*); -#endif #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,0) int __init @@ -525,11 +520,6 @@ init_module(void) #endif /* AFS_AMD64_LINUX20_ENV */ #endif /* AFS_IA64_LINUX20_ENV */ -#ifdef AFS_PPC64_LINUX20_ENV - afs_ni_syscall = set_afs_syscall(afs_syscall); - sys_setgroupsp = set_afs_xsetgroups_syscall(afs_xsetgroups); - sys32_setgroupsp = set_afs_xsetgroups_syscall32(afs32_xsetgroups); -#endif } osi_sysctl_init(); @@ -582,11 +572,6 @@ cleanup_module(void) } #endif } -#ifdef AFS_PPC64_LINUX20_ENV - set_afs_syscall(afs_ni_syscall); - set_afs_xsetgroups_syscall(sys_setgroupsp); - set_afs_xsetgroups_syscall32(sys32_setgroupsp); -#endif unregister_filesystem(&afs_fs_type); osi_linux_free_inode_pages(); /* Invalidate all pages using AFS inodes. */ diff --git a/src/afs/LINUX/osi_prototypes.h b/src/afs/LINUX/osi_prototypes.h index b39361a6d..233e8af93 100644 --- a/src/afs/LINUX/osi_prototypes.h +++ b/src/afs/LINUX/osi_prototypes.h @@ -36,9 +36,6 @@ extern int osi_lookupname(char *aname, uio_seg_t seg, int followlink, extern int osi_InitCacheInfo(char *aname); extern int osi_rdwr(int rw, struct osi_file *file, caddr_t addrp, size_t asize, size_t * resid); -extern void inline setup_uio(uio_t * uiop, struct iovec *iovecp, char *buf, - afs_offs_t pos, int count, uio_flag_t flag, - uio_seg_t seg); extern int osi_file_uio_rdwr(struct osi_file *osifile, uio_t * uiop, int rw); extern void afs_osi_SetTime(osi_timeval_t * tvp); extern void osi_linux_free_inode_pages(void); diff --git a/src/afs/LINUX/osi_vnodeops.c b/src/afs/LINUX/osi_vnodeops.c index 4025b5a75..6af8d17ea 100644 --- a/src/afs/LINUX/osi_vnodeops.c +++ b/src/afs/LINUX/osi_vnodeops.c @@ -649,12 +649,7 @@ afs_linux_lock(struct file *fp, int cmd, struct file_lock *flp) int code = 0; struct vcache *vcp = ITOAFS(FILE_INODE(fp)); cred_t *credp = crref(); -#ifdef AFS_LINUX24_ENV - struct flock64 flock; -#else - struct flock flock; -#endif - + struct AFS_FLOCK flock; /* Convert to a lock format afs_lockctl understands. */ memset((char *)&flock, 0, sizeof(flock)); flock.l_type = flp->fl_type; diff --git a/src/afs/afs_pioctl.c b/src/afs/afs_pioctl.c index 8ab51ac02..33f7f8426 100644 --- a/src/afs/afs_pioctl.c +++ b/src/afs/afs_pioctl.c @@ -268,7 +268,11 @@ copyin_afs_ioctl(caddr_t cmarg, struct afs_ioctl *dst) #elif defined(AFS_AMD64_LINUX20_ENV) if (current->thread.flags & THREAD_IA32) #elif defined(AFS_PPC64_LINUX20_ENV) - if (current->thread.flags & PPC_FLAG_32BIT) +#ifdef AFS_PPC64_LINUX26_ENV + if (current->thread_info->flags & _TIF_32BIT) +#else /*Linux 2.6*/ + if (current->thread.flags & PPC_FLAG_32BIT) +#endif #elif defined(AFS_S390X_LINUX20_ENV) if (current->thread.flags & S390_FLAG_31BIT) #else diff --git a/src/config/afs_sysnames.h b/src/config/afs_sysnames.h index db042c3b1..185ba9cf1 100644 --- a/src/config/afs_sysnames.h +++ b/src/config/afs_sysnames.h @@ -214,6 +214,7 @@ #define SYS_NAME_ID_ppc64_linux2 2900 #define SYS_NAME_ID_ppc64_linux22 2901 #define SYS_NAME_ID_ppc64_linux24 2902 +#define SYS_NAME_ID_ppc64_linux26 2903 /* * Placeholder to keep system-wide standard flags since this file is included by all