소스 검색

GFS2: Use DEFINE_SPINLOCK

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>
Xu Gang 16 년 전
부모
커밋
1328df7252
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      fs/gfs2/quota.c

+ 1 - 1
fs/gfs2/quota.c

@@ -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)
 {
 {