Commit 032ac851 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

xfs: fix up backport error in fs/xfs/xfs_inode.c

Commit c66edeaf, which was a backport of
commit b1438f47 upstream, needed to have
the error value be positive, not negative, in order to work properly.
Reported-by: default avatar"Thomas D." <whissi@whissi.de>
Reported-by: default avatarBrad Spender <spender@grsecurity.net>
Cc: Dave Chinner <david@fromorbit.com>
Cc: Willy Tarreau <w@1wt.eu>
Cc: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a1a184a2
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment