Commit 1328df72 authored by Xu Gang's avatar Xu Gang Committed by Steven Whitehouse

GFS2: Use DEFINE_SPINLOCK

SPIN_LOCK_UNLOCKED is deprecated, use DEFINE_SPINLOCK instead.
(as suggested in Documentation/spinlocks.txt)
Signed-off-by: default avatarXu Gang <xug@cn.fujitsu.com>
Signed-off-by: default avatarSteven Whitehouse <swhiteho@redhat.com>
parent 10d21988
...@@ -81,7 +81,7 @@ struct gfs2_quota_change_host { ...@@ -81,7 +81,7 @@ struct gfs2_quota_change_host {
static LIST_HEAD(qd_lru_list); static LIST_HEAD(qd_lru_list);
static atomic_t qd_lru_count = ATOMIC_INIT(0); 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) int gfs2_shrink_qd_memory(int nr, gfp_t gfp_mask)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment