diff options
Diffstat (limited to 'fs/xfs/xfs_iops.c')
-rw-r--r-- | fs/xfs/xfs_iops.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/fs/xfs/xfs_iops.c b/fs/xfs/xfs_iops.c index 28856accb4fa..9ba2a07b7343 100644 --- a/fs/xfs/xfs_iops.c +++ b/fs/xfs/xfs_iops.c | |||
@@ -466,7 +466,7 @@ xfs_vn_getattr( | |||
466 | trace_xfs_getattr(ip); | 466 | trace_xfs_getattr(ip); |
467 | 467 | ||
468 | if (XFS_FORCED_SHUTDOWN(mp)) | 468 | if (XFS_FORCED_SHUTDOWN(mp)) |
469 | return XFS_ERROR(EIO); | 469 | return -XFS_ERROR(EIO); |
470 | 470 | ||
471 | stat->size = XFS_ISIZE(ip); | 471 | stat->size = XFS_ISIZE(ip); |
472 | stat->dev = inode->i_sb->s_dev; | 472 | stat->dev = inode->i_sb->s_dev; |
@@ -612,7 +612,7 @@ xfs_setattr_nonsize( | |||
612 | } | 612 | } |
613 | } | 613 | } |
614 | 614 | ||
615 | xfs_trans_ijoin(tp, ip); | 615 | xfs_trans_ijoin(tp, ip, 0); |
616 | 616 | ||
617 | /* | 617 | /* |
618 | * Change file ownership. Must be the owner or privileged. | 618 | * Change file ownership. Must be the owner or privileged. |
@@ -834,16 +834,16 @@ xfs_setattr_size( | |||
834 | * care about here. | 834 | * care about here. |
835 | */ | 835 | */ |
836 | if (ip->i_size != ip->i_d.di_size && iattr->ia_size > ip->i_d.di_size) { | 836 | if (ip->i_size != ip->i_d.di_size && iattr->ia_size > ip->i_d.di_size) { |
837 | error = xfs_flush_pages(ip, ip->i_d.di_size, iattr->ia_size, | 837 | error = xfs_flush_pages(ip, ip->i_d.di_size, iattr->ia_size, 0, |
838 | XBF_ASYNC, FI_NONE); | 838 | FI_NONE); |
839 | if (error) | 839 | if (error) |
840 | goto out_unlock; | 840 | goto out_unlock; |
841 | } | 841 | } |
842 | 842 | ||
843 | /* | 843 | /* |
844 | * Wait for all I/O to complete. | 844 | * Wait for all direct I/O to complete. |
845 | */ | 845 | */ |
846 | xfs_ioend_wait(ip); | 846 | inode_dio_wait(inode); |
847 | 847 | ||
848 | error = -block_truncate_page(inode->i_mapping, iattr->ia_size, | 848 | error = -block_truncate_page(inode->i_mapping, iattr->ia_size, |
849 | xfs_get_blocks); | 849 | xfs_get_blocks); |
@@ -864,7 +864,7 @@ xfs_setattr_size( | |||
864 | 864 | ||
865 | xfs_ilock(ip, XFS_ILOCK_EXCL); | 865 | xfs_ilock(ip, XFS_ILOCK_EXCL); |
866 | 866 | ||
867 | xfs_trans_ijoin(tp, ip); | 867 | xfs_trans_ijoin(tp, ip, 0); |
868 | 868 | ||
869 | /* | 869 | /* |
870 | * Only change the c/mtime if we are changing the size or we are | 870 | * Only change the c/mtime if we are changing the size or we are |