From: Greg Kroah-Hartman <gre...@linuxfoundation.org> commit 032ac851fd42a62717032a594ac319f8a76b8a7d upstream.
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." <whi...@whissi.de> Reported-by: Brad Spender <spen...@grsecurity.net> Cc: Dave Chinner <da...@fromorbit.com> Cc: Willy Tarreau <w...@1wt.eu> Cc: Jiri Slaby <jsl...@suse.cz> Signed-off-by: Greg Kroah-Hartman <gre...@linuxfoundation.org> Signed-off-by: Willy Tarreau <w...@1wt.eu> --- fs/xfs/xfs_inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/xfs/xfs_inode.c b/fs/xfs/xfs_inode.c index 130881e..06dec55 100644 --- a/fs/xfs/xfs_inode.c +++ b/fs/xfs/xfs_inode.c @@ -2779,7 +2779,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; } -- 2.8.0.rc2.1.gbe9624a