aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_vfsops.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/xfs_vfsops.c')
-rw-r--r--fs/xfs/xfs_vfsops.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/fs/xfs/xfs_vfsops.c b/fs/xfs/xfs_vfsops.c
index c2a6eab7fa2d..29f72f613782 100644
--- a/fs/xfs/xfs_vfsops.c
+++ b/fs/xfs/xfs_vfsops.c
@@ -872,10 +872,10 @@ xfs_statvfs(
872 * this by simply making sure the log gets flushed 872 * this by simply making sure the log gets flushed
873 * if SYNC_BDFLUSH is set, and by actually writing it 873 * if SYNC_BDFLUSH is set, and by actually writing it
874 * out otherwise. 874 * out otherwise.
875 * SYNC_DIO_WAIT - The caller wants us to wait for all direct I/Os 875 * SYNC_IOWAIT - The caller wants us to wait for all data I/O to complete
876 * as well to ensure all data I/O completes before we 876 * before we return (including direct I/O). Forms the drain
877 * return. Forms the drain side of the write barrier needed 877 * side of the write barrier needed to safely quiesce the
878 * to safely quiesce the filesystem. 878 * filesystem.
879 * 879 *
880 */ 880 */
881/*ARGSUSED*/ 881/*ARGSUSED*/
@@ -1174,10 +1174,11 @@ xfs_sync_inodes(
1174 1174
1175 } 1175 }
1176 /* 1176 /*
1177 * When freezing, we need to wait ensure direct I/O is complete 1177 * When freezing, we need to wait ensure all I/O (including direct
1178 * as well to ensure all data modification is complete here 1178 * I/O) is complete to ensure no further data modification can take
1179 * place after this point
1179 */ 1180 */
1180 if (flags & SYNC_DIO_WAIT) 1181 if (flags & SYNC_IOWAIT)
1181 vn_iowait(vp); 1182 vn_iowait(vp);
1182 1183
1183 if (flags & SYNC_BDFLUSH) { 1184 if (flags & SYNC_BDFLUSH) {
@@ -1975,7 +1976,7 @@ xfs_freeze(
1975 /* flush inodes and push all remaining buffers out to disk */ 1976 /* flush inodes and push all remaining buffers out to disk */
1976 xfs_quiesce_fs(mp); 1977 xfs_quiesce_fs(mp);
1977 1978
1978 BUG_ON(atomic_read(&mp->m_active_trans) > 0); 1979 ASSERT_ALWAYS(atomic_read(&mp->m_active_trans) == 0);
1979 1980
1980 /* Push the superblock and write an unmount record */ 1981 /* Push the superblock and write an unmount record */
1981 xfs_log_unmount_write(mp); 1982 xfs_log_unmount_write(mp);