Re: [3.0-stable PATCH 04/36] xfs: xfs_trans_add_item() - dont assign in ASSERT() when compare is intended

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

 



On Mon, Dec 03, 2012 at 05:42:12PM -0600, Mark Tinguely wrote:
> From: Jesper Juhl <jj@xxxxxxxxxxxxx>
> 
> Upstream commit: f65020a83ad570c1788f7d8ece67f3487166576b
> 
> It looks to me like the two ASSERT()s in xfs_trans_add_item() really
> want to do a compare (==) rather than assignment (=).
> This patch changes it from the latter to the former.
> 
> Signed-off-by: Jesper Juhl <jj@xxxxxxxxxxxxx>
> Signed-off-by: Ben Myers <bpm@xxxxxxx>
> 
> (cherry picked from commit 05293485a0b6b1f803e8a3c0ff188c38f6969985)

Only affects debug builds, and isn't a bug that would cause any
problems at all, so it is really necessary?

Cheers,

Dave.
-- 
Dave Chinner
david@xxxxxxxxxxxxx

_______________________________________________
xfs mailing list
xfs@xxxxxxxxxxx
http://oss.sgi.com/mailman/listinfo/xfs


[Index of Archives]     [Linux XFS Devel]     [Linux Filesystem Development]     [Filesystem Testing]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux