|
|
| version 1.488, 2007/11/30 05:10:36 | version 1.489, 2007/12/11 03:06:46 |
|---|---|
| Line 1464 xfs_itruncate_start( | Line 1464 xfs_itruncate_start( |
| mp = ip->i_mount; | mp = ip->i_mount; |
| vp = XFS_ITOV(ip); | vp = XFS_ITOV(ip); |
| vn_iowait(ip); /* wait for the completion of any pending DIOs */ | /* wait for the completion of any pending DIOs */ |
| if (new_size < ip->i_size) | |
| vn_iowait(ip); | |
| /* | /* |
| * Call toss_pages or flushinval_pages to get rid of pages | * Call toss_pages or flushinval_pages to get rid of pages |
| * overlapping the region being removed. We have to use | * overlapping the region being removed. We have to use |