projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
526c420
)
[XFS] Manage spinlock differences between kernel versions a bit.
author
Nathan Scott
<nathans@sgi.com>
Sun, 4 Sep 2005 22:27:50 +0000
(08:27 +1000)
committer
Nathan Scott
<nathans@sgi.com>
Sun, 4 Sep 2005 22:27:50 +0000
(08:27 +1000)
SGI-PV: 904196
SGI-Modid: xfs-linux:xfs-kern:23563a
Signed-off-by: Nathan Scott <nathans@sgi.com>
fs/xfs/linux-2.6/spin.h
patch
|
blob
|
blame
|
history
diff --git
a/fs/xfs/linux-2.6/spin.h
b/fs/xfs/linux-2.6/spin.h
index bcf60a0b8df0ee71211cf35939694dacdfe3416f..0039504069a51c378de0906bf2b50262f1152d86 100644
(file)
--- a/
fs/xfs/linux-2.6/spin.h
+++ b/
fs/xfs/linux-2.6/spin.h
@@
-45,6
+45,9
@@
typedef spinlock_t lock_t;
#define SPLDECL(s) unsigned long s
+#ifndef DEFINE_SPINLOCK
+#define DEFINE_SPINLOCK(s) spinlock_t s = SPIN_LOCK_UNLOCKED
+#endif
#define spinlock_init(lock, name) spin_lock_init(lock)
#define spinlock_destroy(lock)