From: Greg Kroah-Hartman Date: Wed, 22 Jun 2016 05:19:10 +0000 (-0700) Subject: xfs: fix up backport error in fs/xfs/xfs_inode.c X-Git-Tag: v3.14.73~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=032ac851fd42a62717032a594ac319f8a76b8a7d;p=thirdparty%2Fkernel%2Fstable.git xfs: fix up backport error in fs/xfs/xfs_inode.c 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 --- diff --git a/fs/xfs/xfs_inode.c b/fs/xfs/xfs_inode.c index fb8579d35cd40..47533013a7720 100644 --- 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; }