]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
[PATCH] mm: fix rss counter being incremented when unmapping
authorBjorn Steinbrink <B.Steinbrink@gmx.de>
Tue, 17 May 2005 04:53:17 +0000 (21:53 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 17 May 2005 14:59:12 +0000 (07:59 -0700)
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 <B.Steinbrink@gmx.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/rmap.c

index 378de234c12b9e74af3e6f43fc3ae8bf7ffe234c..a6203b4e12786f4bdbf9ad8aefbb0ae287c8a91a 100644 (file)
--- 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);