Re: [PATCH] RT: unwritten_done_lock to DEFINE_SPINLOCK

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2005-09-27 at 11:32 -0700, Daniel Walker wrote:
> Convert unwritten_done_lock xfs lock to the new syntax.
> 
> Signed-Off-By: Daniel Walker <[email protected]>
> 
> Index: linux-2.6.13/fs/xfs/linux-2.6/xfs_aops.c
> ===================================================================
> --- linux-2.6.13.orig/fs/xfs/linux-2.6/xfs_aops.c
> +++ linux-2.6.13/fs/xfs/linux-2.6/xfs_aops.c
> @@ -192,7 +192,7 @@ linvfs_unwritten_done(
>  	int			uptodate)
>  {
>  	xfs_ioend_t		*ioend = bh->b_private;
> -	static spinlock_t	unwritten_done_lock = SPIN_LOCK_UNLOCKED;
> +	static DECLARE_SPINLOCK(unwritten_done_lock);
>  	unsigned long		flags;

Did you actually compile this ?


tglx

--- linux-2.6.13.orig/fs/xfs/linux-2.6/xfs_aops.c
+++ linux-2.6.13/fs/xfs/linux-2.6/xfs_aops.c
@@ -192,7 +192,7 @@ linvfs_unwritten_done(
        int                     uptodate)
 {
        xfs_ioend_t             *ioend = bh->b_private;
-       static spinlock_t       unwritten_done_lock = SPIN_LOCK_UNLOCKED;
+       static DEFINE_SPINLOCK(unwritten_done_lock);
        unsigned long           flags;
 
        ASSERT(buffer_unwritten(bh));



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]
  Powered by Linux