diff options
-rw-r--r-- | fs/xfs/linux-2.6/xfs_file.c | 2 | ||||
-rw-r--r-- | fs/xfs/linux-2.6/xfs_super.c | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/fs/xfs/linux-2.6/xfs_file.c b/fs/xfs/linux-2.6/xfs_file.c index 42dd3bcfba6b..d8fb1b5d6cb5 100644 --- a/fs/xfs/linux-2.6/xfs_file.c +++ b/fs/xfs/linux-2.6/xfs_file.c | |||
@@ -115,6 +115,8 @@ xfs_file_fsync( | |||
115 | 115 | ||
116 | xfs_iflags_clear(ip, XFS_ITRUNCATED); | 116 | xfs_iflags_clear(ip, XFS_ITRUNCATED); |
117 | 117 | ||
118 | xfs_ioend_wait(ip); | ||
119 | |||
118 | /* | 120 | /* |
119 | * We always need to make sure that the required inode state is safe on | 121 | * We always need to make sure that the required inode state is safe on |
120 | * disk. The inode might be clean but we still might need to force the | 122 | * disk. The inode might be clean but we still might need to force the |
diff --git a/fs/xfs/linux-2.6/xfs_super.c b/fs/xfs/linux-2.6/xfs_super.c index e8ad6dd2c10c..e9002513e08f 100644 --- a/fs/xfs/linux-2.6/xfs_super.c +++ b/fs/xfs/linux-2.6/xfs_super.c | |||
@@ -1093,6 +1093,7 @@ xfs_fs_write_inode( | |||
1093 | * the code will only flush the inode if it isn't already | 1093 | * the code will only flush the inode if it isn't already |
1094 | * being flushed. | 1094 | * being flushed. |
1095 | */ | 1095 | */ |
1096 | xfs_ioend_wait(ip); | ||
1096 | xfs_ilock(ip, XFS_ILOCK_SHARED); | 1097 | xfs_ilock(ip, XFS_ILOCK_SHARED); |
1097 | if (ip->i_update_core) { | 1098 | if (ip->i_update_core) { |
1098 | error = xfs_log_inode(ip); | 1099 | error = xfs_log_inode(ip); |