]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
DEVEL15-linux-updates-20060811
authorDerrick Brashear <shadow@dementia.org>
Fri, 18 Aug 2006 18:14:23 +0000 (18:14 +0000)
committerDerrick Brashear <shadow@dementia.org>
Fri, 18 Aug 2006 18:14:23 +0000 (18:14 +0000)
fix for current fc kernels, and clean up linux nfs translator

(cherry picked from commit 4baf136974d8845b7960708b804a87f1e6f512ff)

src/afs/LINUX/osi_pag_module.c

index 7b5d0154b649832cad3c6c683847a16e4c9677a6..0a44eb8f3a799f516c513c16c929f039725f46f3 100644 (file)
@@ -55,7 +55,11 @@ MODULE_PARM(this_cell, "s");
 MODULE_PARM_DESC(this_cell, "Local cell name");
 
 #if defined(AFS_LINUX24_ENV)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,16)
+DEFINE_MUTEX(afs_global_lock);
+#else
 DECLARE_MUTEX(afs_global_lock);
+#endif
 struct proc_dir_entry *openafs_procfs;
 #else
 struct semaphore afs_global_lock = MUTEX;