The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH] GFS2: Use DEFINE_SPINLOCK
@ 2009-04-14  6:54 Xu Gang
  2009-04-15 10:30 ` Steven Whitehouse
  0 siblings, 1 reply; 2+ messages in thread
From: Xu Gang @ 2009-04-14  6:54 UTC (permalink / raw)
  To: Steven Whitehouse; +Cc: Andrew Morton, linux-kernel, Xu Gang

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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] GFS2: Use DEFINE_SPINLOCK
  2009-04-14  6:54 [PATCH] GFS2: Use DEFINE_SPINLOCK Xu Gang
@ 2009-04-15 10:30 ` Steven Whitehouse
  0 siblings, 0 replies; 2+ messages in thread
From: Steven Whitehouse @ 2009-04-15 10:30 UTC (permalink / raw)
  To: Xu Gang; +Cc: Andrew Morton, linux-kernel

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-04-15 10:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-14  6:54 [PATCH] GFS2: Use DEFINE_SPINLOCK Xu Gang
2009-04-15 10:30 ` Steven Whitehouse

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox