diff options
Diffstat (limited to 'fs/xfs/xfs_file.c')
| -rw-r--r-- | fs/xfs/xfs_file.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/xfs/xfs_file.c b/fs/xfs/xfs_file.c index 951a2321ee01..830c1c937b88 100644 --- a/fs/xfs/xfs_file.c +++ b/fs/xfs/xfs_file.c | |||
| @@ -155,7 +155,7 @@ xfs_dir_fsync( | |||
| 155 | 155 | ||
| 156 | if (!lsn) | 156 | if (!lsn) |
| 157 | return 0; | 157 | return 0; |
| 158 | return _xfs_log_force_lsn(mp, lsn, XFS_LOG_SYNC, NULL); | 158 | return -_xfs_log_force_lsn(mp, lsn, XFS_LOG_SYNC, NULL); |
| 159 | } | 159 | } |
| 160 | 160 | ||
| 161 | STATIC int | 161 | STATIC int |
| @@ -295,7 +295,7 @@ xfs_file_aio_read( | |||
| 295 | xfs_rw_ilock(ip, XFS_IOLOCK_EXCL); | 295 | xfs_rw_ilock(ip, XFS_IOLOCK_EXCL); |
| 296 | 296 | ||
| 297 | if (inode->i_mapping->nrpages) { | 297 | if (inode->i_mapping->nrpages) { |
| 298 | ret = -filemap_write_and_wait_range( | 298 | ret = filemap_write_and_wait_range( |
| 299 | VFS_I(ip)->i_mapping, | 299 | VFS_I(ip)->i_mapping, |
| 300 | pos, -1); | 300 | pos, -1); |
| 301 | if (ret) { | 301 | if (ret) { |
| @@ -837,7 +837,7 @@ xfs_file_fallocate( | |||
| 837 | unsigned blksize_mask = (1 << inode->i_blkbits) - 1; | 837 | unsigned blksize_mask = (1 << inode->i_blkbits) - 1; |
| 838 | 838 | ||
| 839 | if (offset & blksize_mask || len & blksize_mask) { | 839 | if (offset & blksize_mask || len & blksize_mask) { |
| 840 | error = -EINVAL; | 840 | error = EINVAL; |
| 841 | goto out_unlock; | 841 | goto out_unlock; |
| 842 | } | 842 | } |
| 843 | 843 | ||
| @@ -846,7 +846,7 @@ xfs_file_fallocate( | |||
| 846 | * in which case it is effectively a truncate operation | 846 | * in which case it is effectively a truncate operation |
| 847 | */ | 847 | */ |
| 848 | if (offset + len >= i_size_read(inode)) { | 848 | if (offset + len >= i_size_read(inode)) { |
| 849 | error = -EINVAL; | 849 | error = EINVAL; |
| 850 | goto out_unlock; | 850 | goto out_unlock; |
| 851 | } | 851 | } |
| 852 | 852 | ||
