diff options
Diffstat (limited to 'fs/xfs/xfs_file.c')
-rw-r--r-- | fs/xfs/xfs_file.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/fs/xfs/xfs_file.c b/fs/xfs/xfs_file.c index b5d70e77195d..cd3540997d65 100644 --- a/fs/xfs/xfs_file.c +++ b/fs/xfs/xfs_file.c | |||
@@ -903,14 +903,10 @@ xfs_file_write_iter( | |||
903 | ret = xfs_file_buffered_aio_write(iocb, from); | 903 | ret = xfs_file_buffered_aio_write(iocb, from); |
904 | 904 | ||
905 | if (ret > 0) { | 905 | if (ret > 0) { |
906 | ssize_t err; | ||
907 | |||
908 | XFS_STATS_ADD(ip->i_mount, xs_write_bytes, ret); | 906 | XFS_STATS_ADD(ip->i_mount, xs_write_bytes, ret); |
909 | 907 | ||
910 | /* Handle various SYNC-type writes */ | 908 | /* Handle various SYNC-type writes */ |
911 | err = generic_write_sync(iocb, iocb->ki_pos - ret, ret); | 909 | ret = generic_write_sync(iocb, ret); |
912 | if (err < 0) | ||
913 | ret = err; | ||
914 | } | 910 | } |
915 | return ret; | 911 | return ret; |
916 | } | 912 | } |