From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Sandeen Date: Sat, 29 Mar 2014 01:56:04 +0000 Subject: Re: [patch] xfs: extra semi-colon breaks a condition Message-Id: <53362834.7090900@sandeen.net> List-Id: References: <20140328080313.GA25192@mwanda> In-Reply-To: <20140328080313.GA25192@mwanda> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Dan Carpenter , Dave Chinner Cc: kernel-janitors@vger.kernel.org, xfs@oss.sgi.com On 3/28/14, 3:03 AM, Dan Carpenter wrote: > There were some extra semi-colons here which mean that we return true > unintentionally. > > Fixes: a49935f200e2 ('xfs: xfs_check_page_type buffer checks need help') that's terrifying. Reviewed-by: Eric Sandeen > Signed-off-by: Dan Carpenter > > diff --git a/fs/xfs/xfs_aops.c b/fs/xfs/xfs_aops.c > index 98016b3..75df77d 100644 > --- a/fs/xfs/xfs_aops.c > +++ b/fs/xfs/xfs_aops.c > @@ -659,10 +659,10 @@ xfs_check_page_type( > if (type = XFS_IO_UNWRITTEN) > return true; > } else if (buffer_delay(bh)) { > - if (type = XFS_IO_DELALLOC); > + if (type = XFS_IO_DELALLOC) > return true; > } else if (buffer_dirty(bh) && buffer_mapped(bh)) { > - if (type = XFS_IO_OVERWRITE); > + if (type = XFS_IO_OVERWRITE) > return true; > } > > > _______________________________________________ > xfs mailing list > xfs@oss.sgi.com > http://oss.sgi.com/mailman/listinfo/xfs >