xfs
[Top] [All Lists]

Re: [PATCH] XFS: Compare, don't assign in ASSERT() in xfs_trans_unreserv

To: Jesper Juhl <jj@xxxxxxxxxxxxx>
Subject: Re: [PATCH] XFS: Compare, don't assign in ASSERT() in xfs_trans_unreserve_and_mod_sb()
From: Dave Chinner <david@xxxxxxxxxxxxx>
Date: Tue, 28 Dec 2010 01:13:57 +1100
Cc: xfs@xxxxxxxxxxx, xfs-masters@xxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, Alex Elder <aelder@xxxxxxx>
In-reply-to: <alpine.LNX.2.00.1012252110490.10759@xxxxxxxxxxxxxxxxxxxxxxxxx>
References: <alpine.LNX.2.00.1012252110490.10759@xxxxxxxxxxxxxxxxxxxxxxxxx>
User-agent: Mutt/1.5.20 (2009-06-14)
On Sat, Dec 25, 2010 at 09:14:53PM +0100, Jesper Juhl wrote:
> Hi,
> 
> In fs/xfs/xfs_trans.c::xfs_trans_unreserve_and_mod_sb() at the out: label 
> we have this:
>       ASSERT(error = 0);
> I believe a comparison was intended, not an assignment. If I'm right, the 
> patch below fixes that up.

Already fixed in this patch pending for 2.6.38:

http://git.kernel.org/?p=linux/kernel/git/dgc/xfsdev.git;a=commitdiff;h=831ef3cf682a1f9d8fc7c16dace55137751c0410

Cheers,

Dave.
-- 
Dave Chinner
david@xxxxxxxxxxxxx

<Prev in Thread] Current Thread [Next in Thread>