From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from cuda.sgi.com (cuda2.sgi.com [192.48.176.25]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id oBRECDfE022858 for ; Mon, 27 Dec 2010 08:12:13 -0600 Date: Tue, 28 Dec 2010 01:13:57 +1100 From: Dave Chinner Subject: Re: [PATCH] XFS: Compare, don't assign in ASSERT() in xfs_trans_unreserve_and_mod_sb() Message-ID: <20101227141357.GC24828@dastard> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: List-Id: XFS Filesystem from SGI List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: xfs-bounces@oss.sgi.com Errors-To: xfs-bounces@oss.sgi.com To: Jesper Juhl Cc: xfs-masters@oss.sgi.com, Alex Elder , linux-kernel@vger.kernel.org, xfs@oss.sgi.com 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@fromorbit.com _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs