From: Bjorn Steinbrink Date: Tue, 17 May 2005 04:53:17 +0000 (-0700) Subject: [PATCH] mm: fix rss counter being incremented when unmapping X-Git-Tag: MMI-PSA29.97-13-9~56746^2~256 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=202d182a92c60416680e31baa697faa60b0882f5;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git [PATCH] mm: fix rss counter being incremented when unmapping This patch fixes a bug introduced by the "mm counter operations through macros" patch, which replaced a decrement operation in with an increment macro in try_to_unmap_one(). Signed-off-by: Björn Steinbrink Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/rmap.c b/mm/rmap.c index 378de234c12b..a6203b4e1278 100644 --- a/mm/rmap.c +++ b/mm/rmap.c @@ -586,7 +586,7 @@ static int try_to_unmap_one(struct page *page, struct vm_area_struct *vma) dec_mm_counter(mm, anon_rss); } - inc_mm_counter(mm, rss); + dec_mm_counter(mm, rss); page_remove_rmap(page); page_cache_release(page);