From: Steven Whitehouse <swhiteho@redhat.com>
To: Xu Gang <xug@cn.fujitsu.com>
Cc: Andrew Morton <akpm@linux-foundation.org>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] GFS2: Use DEFINE_SPINLOCK
Date: Wed, 15 Apr 2009 11:30:32 +0100 [thread overview]
Message-ID: <1239791432.3377.7.camel@localhost.localdomain> (raw)
In-Reply-To: <1239692054-22797-1-git-send-email-xug@cn.fujitsu.com>
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@cn.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)
> {
prev parent reply other threads:[~2009-04-15 10:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-14 6:54 Xu Gang
2009-04-15 10:30 ` Steven Whitehouse [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1239791432.3377.7.camel@localhost.localdomain \
--to=swhiteho@redhat.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=xug@cn.fujitsu.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®