OpenVZ Forum - RDF feed
type: channel
items: [PATCH] Fix of vm_rss calculations in vma_merge

[PATCH] Fix of vm_rss calculations in vma_merge
type: item
description: Patch from Pavel (xemul@): One of merge cases was accounted with mistake. Possible fix of Bug #54871 Bug #51592 --- ./mm/mmap.c.vmrssfix 2005-12-13 15:30:05.000000000 +0300 +++ ./mm/mmap.c 2005-12-19 15:40:17.225126176 +0300 @@ -664,7 +664,7 @@ struct vm_area_struct *vma_merge(struct * case 7*: prev->vm_rss += area->vm_rss */ if (next && addr == next->vm_start) { /* case 5 */ - extra_rss = pages_in_vma_range(prev, addr, end); + extra_rss = pages_in_vma_range(next, addr, end); next->vm_rss -= extra_rss; } prev->vm_rss += extra_rss;
creator: xemul
date: 2005-12-19T12:58:24-00:00