diff options
Diffstat (limited to 'fs/xfs/xfs_inode.c')
-rw-r--r-- | fs/xfs/xfs_inode.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/xfs/xfs_inode.c b/fs/xfs/xfs_inode.c index 2424a4777949..8d2b36879f06 100644 --- a/fs/xfs/xfs_inode.c +++ b/fs/xfs/xfs_inode.c | |||
@@ -1420,6 +1420,9 @@ xfs_itruncate_start( | |||
1420 | 1420 | ||
1421 | mp = ip->i_mount; | 1421 | mp = ip->i_mount; |
1422 | vp = XFS_ITOV(ip); | 1422 | vp = XFS_ITOV(ip); |
1423 | |||
1424 | vn_iowait(vp); /* wait for the completion of any pending DIOs */ | ||
1425 | |||
1423 | /* | 1426 | /* |
1424 | * Call VOP_TOSS_PAGES() or VOP_FLUSHINVAL_PAGES() to get rid of pages and buffers | 1427 | * Call VOP_TOSS_PAGES() or VOP_FLUSHINVAL_PAGES() to get rid of pages and buffers |
1425 | * overlapping the region being removed. We have to use | 1428 | * overlapping the region being removed. We have to use |