Skip to contentSkip to conversation

GFS2: Use DEFINE_SPINLOCK

PATCH In review Xu Gang 2 participants 2 messages Apr 14, 2009 – Apr 15, 2009 GFS2 file system

lore
Share & tools
lore

Xu Gang

author
#0 lore raw

PATCH 1/1 GFS2: Use DEFINE_SPINLOCK

SPIN_LOCK_UNLOCKED is deprecated, use DEFINE_SPINLOCK instead. (as suggested in Documentation/spinlocks.txt)

---
 fs/gfs2/quota.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
fs/gfs2/quota.c +1 -1
index 8d53f66..56fb9a2 100644
@@ -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)
 {
Signature · 1 line
1.5.3.5
#1 lore raw

Hi,

As soon as my test build is done, I'll push this into the gfs2 git tree. Thanks,

Steve.

Quoted 21 lines · Xu Gang

SPIN_LOCK_UNLOCKED is deprecated, use DEFINE_SPINLOCK instead. (as suggested in Documentation/spinlocks.txt)

---
 fs/gfs2/quota.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
fs/gfs2/quota.c +1 -1
index 8d53f66..56fb9a2 100644
@@ -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)
 {