[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <1239791432.3377.7.camel@localhost.localdomain>
Date: Wed, 15 Apr 2009 11:30:32 +0100
From: Steven Whitehouse <swhiteho@...hat.com>
To: Xu Gang <xug@...fujitsu.com>
Cc: Andrew Morton <akpm@...ux-foundation.org>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] GFS2: Use DEFINE_SPINLOCK
Hi,
As soon as my test build is done, I'll push this into the gfs2 git tree.
Thanks,
Steve.
On Tue, 2009-04-14 at 14:54 +0800, Xu Gang wrote:
> SPIN_LOCK_UNLOCKED is deprecated, use DEFINE_SPINLOCK instead.
> (as suggested in Documentation/spinlocks.txt)
>
> Signed-off-by: Xu Gang <xug@...fujitsu.com>
> ---
> fs/gfs2/quota.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/fs/gfs2/quota.c b/fs/gfs2/quota.c
> index 8d53f66..56fb9a2 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)
> {
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists