mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-20 05:31:15 +00:00
[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: Bjrn Steinbrink <B.Steinbrink@gmx.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
7a5febe9ff
commit
202d182a92
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue