Skip to content

Commit

Permalink
GFS2: Use DEFINE_SPINLOCK
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Xu Gang authored and Steven Whitehouse committed Apr 15, 2009
1 parent 10d2198 commit 1328df7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/gfs2/quota.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 1328df7

Please sign in to comment.