Skip to content

Commit

Permalink
[XFS] Manage spinlock differences between kernel versions a bit.
Browse files Browse the repository at this point in the history
SGI-PV: 904196
SGI-Modid: xfs-linux:xfs-kern:23563a

Signed-off-by: Nathan Scott <nathans@sgi.com>
  • Loading branch information
Nathan Scott committed Sep 4, 2005
1 parent 526c420 commit 53937c5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fs/xfs/linux-2.6/spin.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 53937c5

Please sign in to comment.