xfs: wrong error sign conversion during failed DIO writes
authorDave Chinner <dchinner@redhat.com>
Wed, 16 Apr 2014 22:15:27 +0000 (08:15 +1000)
committerDave Chinner <david@fromorbit.com>
Wed, 16 Apr 2014 22:15:27 +0000 (08:15 +1000)
commite90af604006ff41d0620518b74c39384772e0d53
tree86af0bf1ad0fe31ab0c8f87b0bb66e45a6099962
parent32bef784364cd587c524ce708ec978db4ec6fe08
xfs: wrong error sign conversion during failed DIO writes

We negate the error value being returned from a generic function
incorrectly. The code path that it is running in returned negative
errors, so there is no need to negate it to get the correct error
signs here.

This was uncovered by generic/019.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_file.c