• D
    [XFS] fix error inversion problems with data flushing · 2e656092
    Dave Chinner 提交于
    XFS gets the sign of the error wrong in several places when
    gathering the error from generic linux functions. These functions
    return negative error values, while the core XFS code returns
    positive error values. Hence when XFS inverts the error to be
    returned to the VFS, it can incorrectly invert a negative
    error and this error will be ignored by the syscall return.
    
    Fix all the problems related to calling filemap_* functions.
    
    Problem initially identified by Nick Piggin in xfs_fsync().
    Signed-off-by: NDave Chinner <david@fromorbit.com>
    Reviewed-by: NChristoph Hellwig <hch@lst.de>
    Signed-off-by: NNiv Sardi <xaiki@sgi.com>
    2e656092
xfs_vnodeops.c 85.8 KB