diff options
Diffstat (limited to 'mm/truncate.c')
-rw-r--r-- | mm/truncate.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/truncate.c b/mm/truncate.c index 5b4c3a4847e9..29a9b8a5a31a 100644 --- a/mm/truncate.c +++ b/mm/truncate.c | |||
@@ -619,9 +619,9 @@ int vmtruncate_range(struct inode *inode, loff_t offset, loff_t end) | |||
619 | mutex_lock(&inode->i_mutex); | 619 | mutex_lock(&inode->i_mutex); |
620 | down_write(&inode->i_alloc_sem); | 620 | down_write(&inode->i_alloc_sem); |
621 | unmap_mapping_range(mapping, offset, (end - offset), 1); | 621 | unmap_mapping_range(mapping, offset, (end - offset), 1); |
622 | truncate_inode_pages_range(mapping, offset, end); | ||
623 | unmap_mapping_range(mapping, offset, (end - offset), 1); | ||
624 | inode->i_op->truncate_range(inode, offset, end); | 622 | inode->i_op->truncate_range(inode, offset, end); |
623 | /* unmap again to remove racily COWed private pages */ | ||
624 | unmap_mapping_range(mapping, offset, (end - offset), 1); | ||
625 | up_write(&inode->i_alloc_sem); | 625 | up_write(&inode->i_alloc_sem); |
626 | mutex_unlock(&inode->i_mutex); | 626 | mutex_unlock(&inode->i_mutex); |
627 | 627 | ||