From: Steven Whitehouse Date: Wed, 15 Apr 2009 11:15:12 +0100 Subject: [Cluster-devel] [PATCH 5/5] GFS2: Use DEFINE_SPINLOCK In-Reply-To: <1239790512-2917-5-git-send-email-swhiteho@redhat.com> References: <1239790512-2917-1-git-send-email-swhiteho@redhat.com> <1239790512-2917-2-git-send-email-swhiteho@redhat.com> <1239790512-2917-3-git-send-email-swhiteho@redhat.com> <1239790512-2917-4-git-send-email-swhiteho@redhat.com> <1239790512-2917-5-git-send-email-swhiteho@redhat.com> Message-ID: <1239790512-2917-6-git-send-email-swhiteho@redhat.com> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit From: Xu Gang SPIN_LOCK_UNLOCKED is deprecated, use DEFINE_SPINLOCK instead. (as suggested in Documentation/spinlocks.txt) Signed-off-by: Xu Gang Signed-off-by: Steven Whitehouse diff --git a/fs/gfs2/quota.c b/fs/gfs2/quota.c index 47bc5cb..152e6c4 100644 --- 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) { -- 1.6.0.6