]> 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)
committerRuss Allbery <rra@debian.org>
Thu, 31 Mar 2011 21:22:26 +0000 (14:22 -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.

Reviewed-on: http://gerrit.openafs.org/4361
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit 9376293634393597ac7db88593100937621f6c3f)

Change-Id: I8e7e244b2e45a7a3af0505531757b8a54a0b3d29
Reviewed-on: http://gerrit.openafs.org/4370
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit 1e322b883e036fe0bd5468fe60a0431545fe2376)

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 9bbd16a14bc1104d69ca951423054aaf8f23ef22..1158304abaf82783f4618f9a2dd2aef12d20c4e4 100644 (file)
@@ -22,7 +22,6 @@
 #include "afs/sysincludes.h"
 #include "afsincludes.h"
 #include "afs/afs_stats.h"
-#include <linux/smp_lock.h>
 
 #include "osi_compat.h"
 
index 4c0553bc45e0e662023bd2eaa60708f5201904c2..cde4b9b5618ddab499d9aecd61ec27156bac626a 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 f3ba62a77df09d2c1a256a1489f3c344fc6f586c..d8d23b57ed3dc19b6fc2a034f2a22a24b0d0f79d 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 5c1538e564e372647ae0192db8fb8010ab139fad..f2778feb4ae34076205d0a18bd79264e1d743942 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 c8547efadf304e713dd8428cd03a91c4c6728613..7c3d175956bfcffa322c06db8fcbfdb9c8b496e7 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 b1ea8829540991024a4a4014844079a357b62de6..d61a91c7ef93116421caa7c23da60f6168cffaab 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 b6f633729ed8a5fb35962ef970edf7401c6ad3cc..8ad59e9598e9ee8f4037f5afccebb5c8b13da9bb 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>