Patch 2.6.32.32 to 2.6.32.33
/mm/mremap.c
blob:166b824c20667e743c7b7b2e6474cb6fb7642eca -> blob:845190898d59f206201b4b5d60f1d4534a755913
--- mm/mremap.c
+++ mm/mremap.c
@@ -92,7 +92,9 @@ static void move_ptes(struct vm_area_str
*/
mapping = vma->vm_file->f_mapping;
spin_lock(&mapping->i_mmap_lock);
- new_vma->vm_truncate_count = 0;
+ if (new_vma->vm_truncate_count &&
+ new_vma->vm_truncate_count != vma->vm_truncate_count)
+ new_vma->vm_truncate_count = 0;
}
/*