projects
/
platform
/
kernel
/
linux-amlogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
10d2198
)
GFS2: Use DEFINE_SPINLOCK
author
Xu Gang
<xug@cn.fujitsu.com>
Tue, 14 Apr 2009 06:54:14 +0000
(14:54 +0800)
committer
Steven Whitehouse
<swhiteho@redhat.com>
Wed, 15 Apr 2009 09:18:07 +0000
(10:18 +0100)
SPIN_LOCK_UNLOCKED is deprecated, use DEFINE_SPINLOCK instead.
(as suggested in Documentation/spinlocks.txt)
Signed-off-by: Xu Gang <xug@cn.fujitsu.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/quota.c
patch
|
blob
|
history
diff --git
a/fs/gfs2/quota.c
b/fs/gfs2/quota.c
index
47bc5cb
..
152e6c4
100644
(file)
--- a/
fs/gfs2/quota.c
+++ b/
fs/gfs2/quota.c
@@
-81,7
+81,7
@@
struct gfs2_quota_change_host {
static LIST_HEAD(qd_lru_list);
static atomic_t qd_lru_count = ATOMIC_INIT(0);
-static
spinlock_t qd_lru_lock = SPIN_LOCK_UNLOCKED
;
+static
DEFINE_SPINLOCK(qd_lru_lock)
;
int gfs2_shrink_qd_memory(int nr, gfp_t gfp_mask)
{