[patch] xfs: extra semi-colon breaks a condition
Raphael S Carvalho
raphael.scarv at gmail.com
Fri Mar 28 21:08:58 CDT 2014
On Fri, Mar 28, 2014 at 10:56 PM, Eric Sandeen <sandeen at sandeen.net> wrote:
> 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.
>
Wonder how errors like this one get into the kernel :-) Suppose it's not
the main tree, but instead xfs private one.
>
> Reviewed-by: Eric Sandeen <sandeen at redhat.com>
>
> > Signed-off-by: Dan Carpenter <dan.carpenter at oracle.com>
> >
> > 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 at oss.sgi.com
> > http://oss.sgi.com/mailman/listinfo/xfs
> >
>
> --
> To unsubscribe from this list: send the line "unsubscribe kernel-janitors"
> in
> the body of a message to majordomo at vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
--
Raphael S. Carvalho
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://oss.sgi.com/pipermail/xfs/attachments/20140328/722725ee/attachment.html>
More information about the xfs
mailing list