Commit 202d182a92c60416680e31baa697faa60b0882f5

Authored by Bjorn Steinbrink
Committed by Linus Torvalds
1 parent 7a5febe9ff

[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 <B.Steinbrink@gmx.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -586,7 +586,7 @@
586 586 dec_mm_counter(mm, anon_rss);
587 587 }
588 588  
589   - inc_mm_counter(mm, rss);
  589 + dec_mm_counter(mm, rss);
590 590 page_remove_rmap(page);
591 591 page_cache_release(page);
592 592