diff options
author | Dave Chinner <dchinner@redhat.com> | 2011-01-11 10:13:53 +1100 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2011-01-11 10:13:53 +1100 |
commit | a363f0c2030cb9781e7e458f4a9e354b6c43d7ce (patch) | |
tree | 7152662c40e6754194c6810c7331c87cdc338cb6 /fs/xfs/xfs_sb.h | |
parent | d0eb2f38b250b7d6c993adf81b0e4ded0565497e (diff) |
xfs: ensure sync write errors are returned
xfs_file_aio_write() only returns the error from synchronous
flushing of the data and inode if error == 0. At the point where
error is being checked, it is guaranteed to be > 0. Therefore any
errors returned by the data or fsync flush will never be returned.
Fix the checks so we overwrite the current error once and only if an
error really occurred.
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Alex Elder <aelder@sgi.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/xfs/xfs_sb.h')
0 files changed, 0 insertions, 0 deletions