diff options
-rw-r--r-- | fs/xfs/xfs_inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_inode.c b/fs/xfs/xfs_inode.c index cc0474ddd2d4..2b1294b8ad79 100644 --- a/fs/xfs/xfs_inode.c +++ b/fs/xfs/xfs_inode.c | |||
@@ -1450,7 +1450,7 @@ xfs_itruncate_start( | |||
1450 | mp = ip->i_mount; | 1450 | mp = ip->i_mount; |
1451 | 1451 | ||
1452 | /* wait for the completion of any pending DIOs */ | 1452 | /* wait for the completion of any pending DIOs */ |
1453 | if (new_size < ip->i_size) | 1453 | if (new_size == 0 || new_size < ip->i_size) |
1454 | vn_iowait(ip); | 1454 | vn_iowait(ip); |
1455 | 1455 | ||
1456 | /* | 1456 | /* |