]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
Linux: 2.6.39: deal with BKL removal
authorMarc Dionne <marc.c.dionne@gmail.com>
Sun, 27 Mar 2011 15:20:17 +0000 (11:20 -0400)
committerDerrick Brashear <shadow@dementia.org>
Sun, 27 Mar 2011 17:08:50 +0000 (10:08 -0700)
For 2.6 kernels the OpenAFS code is already BKL free, but the
corresponding header file smp_lock.h is still included in various
places.  This header no longer exists, so remove all occurrences
outside of LINUX24.

Change-Id: Ib659fa787eab4b39efce5b0a62f5723950e79703
Reviewed-on: http://gerrit.openafs.org/4361
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
12 files changed:
src/afs/LINUX/osi_export.c
src/afs/LINUX/osi_file.c
src/afs/LINUX/osi_groups.c
src/afs/LINUX/osi_misc.c
src/afs/LINUX/osi_nfssrv.c
src/afs/LINUX/osi_vfsops.c
src/afs/LINUX/osi_vnodeops.c
src/afs/afs_call.c
src/afs/afs_icl.c
src/afs/afs_pag_call.c
src/afs/afs_syscall.c
src/rx/LINUX/rx_knet.c

index 5b300e070cab4e4c1ead85765802e5e149adf8dc..662966ba88deb5b3d21587eec0a27b9561d60a46 100644 (file)
@@ -23,7 +23,6 @@
 #include "afs/sysincludes.h"
 #include "afsincludes.h"
 #include "afs/afs_dynroot.h"
-#include <linux/smp_lock.h>
 
 #if !defined(AFS_NONFSTRANS)
 
index 4a28da6d2b039d57053ae50551ece5e1f192e37e..fbd20e9a02e9dc9b36947f93f5d445f933aa85df 100644 (file)
@@ -15,7 +15,6 @@
 #include "afs/sysincludes.h"   /* Standard vendor system headers */
 #include "afsincludes.h"       /* Afs-based standard headers */
 #include "afs/afs_stats.h"     /* afs statistics */
-#include <linux/smp_lock.h>
 #include <linux/namei.h>
 
 #if defined(HAVE_LINUX_EXPORTFS_H)
index 7561ecc37c208b9ac08861b3298b6d06bc48a735..144f0e32c80bff35f89d5569cc208a164315d557 100644 (file)
@@ -26,8 +26,6 @@
 #include "afs/nfsclient.h"
 #include "osi_compat.h"
 
-#include <linux/smp_lock.h>
-
 #ifdef AFS_LINUX26_ONEGROUP_ENV
 # define NUMPAGGROUPS 1
 
index e2af595989a2ed5fb4be062c0a2a419527ec1eb5..79fa763127cec5d07afde802a12d3b17a178e9e6 100644 (file)
@@ -22,7 +22,6 @@
 #include "afs/sysincludes.h"
 #include "afsincludes.h"
 #include "afs/afs_stats.h"
-#include <linux/smp_lock.h>
 
 int afs_osicred_initialized = 0;
 afs_ucred_t afs_osi_cred;
index 010f830f140cd1990c11bdeeb0200017190c7033..425ecd3411b2c59c1b9db67d0beb42c5b1200b35 100644 (file)
@@ -21,7 +21,6 @@
 #include "afs/sysincludes.h"
 #include "afsincludes.h"
 #include "nfsclient.h"
-#include <linux/smp_lock.h>
 #include <linux/sunrpc/svc.h>
 #include <linux/sunrpc/svcauth.h>
 
index 921efac78d6031cf7e95303140e0862e4c4d2a21..8abe6b149b1e74f7596a9ce0a74bc38d7a73588b 100644 (file)
@@ -21,7 +21,6 @@
 #include "afs/sysincludes.h"
 #include "afsincludes.h"
 #include "afs/afs_stats.h"
-#include <linux/smp_lock.h>
 
 #include "osi_compat.h"
 
index b0df0f37705265270014b6ca9fc4960b2e9f0c92..796c8054bec40fb964ef28a8cb64b7e1be15980c 100644 (file)
@@ -30,7 +30,6 @@
 #include <linux/mm_inline.h>
 #endif
 #include <linux/pagemap.h>
-#include <linux/smp_lock.h>
 #include <linux/writeback.h>
 #include <linux/pagevec.h>
 #include "afs/lock.h"
index 521df2b8c727149e649c153db1fc929df3a89a23..ba7b746b7987829d4072d4b8c1dc91ba3afaecb0 100644 (file)
@@ -24,9 +24,6 @@
 #include "netinet/in_var.h"
 #endif
 #endif /* !defined(UKERNEL) */
-#ifdef AFS_LINUX22_ENV
-#include "h/smp_lock.h"
-#endif
 #ifdef AFS_SUN510_ENV
 #include "h/ksynch.h"
 #include "h/sunddi.h"
index 7a2ec9843c9fe8d1dc573009f2a7ea19cb72a8ec..be9b5021035fb5288b85c432992259b97f5c72d0 100644 (file)
@@ -24,9 +24,6 @@
 #include "netinet/in_var.h"
 #endif
 #endif /* !defined(UKERNEL) */
-#ifdef AFS_LINUX22_ENV
-#include "h/smp_lock.h"
-#endif
 
 
 struct afs_icl_set *afs_iclSetp = (struct afs_icl_set *)0;
index 1a11ebf73f8bacbe9dff0bcb3d776ca6878ec315..941fda5b3c63e4ca6cd5fe8819efb09202973a5c 100644 (file)
@@ -25,9 +25,6 @@
 #include "netinet/in_var.h"
 #endif
 #endif /* !defined(UKERNEL) */
-#ifdef AFS_LINUX22_ENV
-#include "h/smp_lock.h"
-#endif
 #include "rmtsys.h"
 #include "pagcb.h"
 
index 18d6d6e6deb471f42f889c08b6d38e785f83cef2..3bb6f484656f6eaa21ae06f8f23f14757db4f626 100644 (file)
@@ -28,9 +28,6 @@
 #include "netinet/in_var.h"
 #endif
 #endif /* !defined(UKERNEL) */
-#ifdef AFS_LINUX22_ENV
-#include "h/smp_lock.h"
-#endif
 
 #if (defined(AFS_AIX51_ENV) && defined(AFS_64BIT_KERNEL)) || defined(AFS_HPUX_64BIT_ENV) || defined(AFS_SUN57_64BIT_ENV) || (defined(AFS_SGI_ENV) && (_MIPS_SZLONG==64)) || defined(NEED_IOCTL32)
 static void
index 590a0606049d82ad86989c07e2e4e852ee0f2226..942a0724b1cd50d8727015eee17bcf0cefe8f44b 100644 (file)
@@ -18,7 +18,6 @@
 
 #include <linux/version.h>
 #include "rx/rx_kcommon.h"
-#include "h/smp_lock.h"
 #include <asm/uaccess.h>
 #ifdef ADAPT_PMTU
 #include <linux/errqueue.h>