lkml.org 
[lkml]   [2010]   [Feb]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH][mmotm-2010-02-01-16-25] Fix wrong accouting of anon and file
From
Date
Unfortunately, Kame said he doesn't support this series.
I am not sure we need this patch or revert patch.

Who need this?

David. Do you want to remain this patch in mmotm for your OOM patch
in future?

If anyone doesn't reply my question, Do we have to make revert patch?

== CUT_HERE ==

mm-count-lowmem-rss.patch added lowmem accouting.
But it changed file and rss accouting by mistake.
Unfortunately my review also doesn't found it.

This patch fixes it.

Signed-off-by: Minchan Kim <minchan.kim@gmail.com>
---
mm/memory.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/mm/memory.c b/mm/memory.c
index 3becdc3..ce8ff9d 100644
--- a/mm/memory.c
+++ b/mm/memory.c
@@ -210,14 +210,14 @@ void sync_mm_rss(struct task_struct *task, struct mm_struct *mm)

unsigned long get_file_rss(struct mm_struct *mm)
{
- return get_mm_counter(mm, MM_ANONPAGES)
- + get_mm_counter(mm, MM_ANON_LOWPAGES);
+ return get_mm_counter(mm, MM_FILEPAGES)
+ + get_mm_counter(mm, MM_FILE_LOWPAGES);
}

unsigned long get_anon_rss(struct mm_struct *mm)
{
- return get_mm_counter(mm, MM_FILEPAGES)
- + get_mm_counter(mm, MM_FILE_LOWPAGES);
+ return get_mm_counter(mm, MM_ANONPAGES)
+ + get_mm_counter(mm, MM_ANON_LOWPAGES);
}

unsigned long get_low_rss(struct mm_struct *mm)
--
1.6.5


--
Kind regards,
Minchan Kim




\
 
 \ /
  Last update: 2010-02-03 16:29    [W:0.035 / U:0.304 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site