From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751625AbcFVWhr (ORCPT ); Wed, 22 Jun 2016 18:37:47 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:45848 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751265AbcFVWhm (ORCPT ); Wed, 22 Jun 2016 18:37:42 -0400 From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, "Thomas D." , Brad Spender , Dave Chinner , Willy Tarreau , Jiri Slaby Subject: [PATCH 3.14 18/29] xfs: fix up backport error in fs/xfs/xfs_inode.c Date: Wed, 22 Jun 2016 15:37:26 -0700 Message-Id: <20160622223531.495325437@linuxfoundation.org> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20160622223530.496939726@linuxfoundation.org> References: <20160622223530.496939726@linuxfoundation.org> User-Agent: quilt/0.64 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Greg Kroah-Hartman Commit c66edeaf79bb6f0ca688ffec9ca50a61b7569984, which was a backport of commit b1438f477934f5a4d5a44df26f3079a7575d5946 upstream, needed to have the error value be positive, not negative, in order to work properly. Reported-by: "Thomas D." Reported-by: Brad Spender Cc: Dave Chinner Cc: Willy Tarreau Cc: Jiri Slaby Signed-off-by: Greg Kroah-Hartman --- fs/xfs/xfs_inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/fs/xfs/xfs_inode.c +++ b/fs/xfs/xfs_inode.c @@ -3098,7 +3098,7 @@ xfs_iflush( */ error = xfs_imap_to_bp(mp, NULL, &ip->i_imap, &dip, &bp, XBF_TRYLOCK, 0); - if (error == -EAGAIN) { + if (error == EAGAIN) { xfs_ifunlock(ip); return error; }