From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from relay.sgi.com (relay3.corp.sgi.com [198.149.34.15]) by oss.sgi.com (Postfix) with ESMTP id 8CE297F47 for ; Thu, 16 Apr 2015 12:32:48 -0500 (CDT) Received: from cuda.sgi.com (cuda3.sgi.com [192.48.176.15]) by relay3.corp.sgi.com (Postfix) with ESMTP id 18FFCAC008 for ; Thu, 16 Apr 2015 10:32:48 -0700 (PDT) Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by cuda.sgi.com with ESMTP id hsjwdAlhncxAkiNX (version=TLSv1 cipher=AES256-SHA bits=256 verify=NO) for ; Thu, 16 Apr 2015 10:32:46 -0700 (PDT) Date: Thu, 16 Apr 2015 13:32:43 -0400 From: Brian Foster Subject: Re: [PATCH] xfs: xfs_iozero can return positive errno Message-ID: <20150416173242.GC39482@bfoster.bfoster> References: <1429187921-13903-1-git-send-email-david@fromorbit.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1429187921-13903-1-git-send-email-david@fromorbit.com> 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 Errors-To: xfs-bounces@oss.sgi.com Sender: xfs-bounces@oss.sgi.com To: Dave Chinner Cc: xfs@oss.sgi.com On Thu, Apr 16, 2015 at 10:38:41PM +1000, Dave Chinner wrote: > From: Dave Chinner > > It was missed when we converted everything in XFs to use negative error > numbers, so fix it now. Bug introduced in 3.17 by commit 2451337 ("xfs: global > error sign conversion"), and should go back to stable kernels. > > Thanks to Brian Foster for noticing it. > > cc: # 3.17, 3.18, 3.19, 4.0 > Signed-off-by: Dave Chinner > --- Reviewed-by: Brian Foster > fs/xfs/xfs_file.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/fs/xfs/xfs_file.c b/fs/xfs/xfs_file.c > index ec0c9c2..8383df0 100644 > --- a/fs/xfs/xfs_file.c > +++ b/fs/xfs/xfs_file.c > @@ -125,7 +125,7 @@ xfs_iozero( > status = 0; > } while (count); > > - return (-status); > + return status; > } > > int > -- > 2.0.0 > > _______________________________________________ > xfs mailing list > xfs@oss.sgi.com > http://oss.sgi.com/mailman/listinfo/xfs _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs