linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] fix for mm counters to macros conversion
@ 2005-05-16 23:34 Michal Ludvig
  2005-05-16 23:38 ` Christoph Lameter
  0 siblings, 1 reply; 3+ messages in thread
From: Michal Ludvig @ 2005-05-16 23:34 UTC (permalink / raw)
  To: Christoph Lameter; +Cc: Andrew Morton, linux-mm

Hi,

The patch of Christoph Lameter sent on March 15 contains this in
mm/rmap.c:try_to_unmap_one() around line 590:

-	mm->rss--;
+	inc_mm_counter(mm, rss);

I wonder if it was an intent to change dec to inc? In all other places the 
conversion conforms to the previous operation except for this one. Perhaps 
the following patch should be applied...

Signed-off-by: Michal Ludvig <michal@logix.cz>


Index: linux-2.6.12-rc4/mm/rmap.c
===================================================================
--- linux-2.6.12-rc4.orig/mm/rmap.c	2005-05-07 17:20:31.000000000 +1200
+++ linux-2.6.12-rc4/mm/rmap.c	2005-05-17 11:16:40.716223000 +1200
@@ -586,7 +586,7 @@
 		dec_mm_counter(mm, anon_rss);
 	}
 
-	inc_mm_counter(mm, rss);
+	dec_mm_counter(mm, rss);
 	page_remove_rmap(page);
 	page_cache_release(page);
 



Michal Ludvig
-- 
* Personal homepage - http://www.logix.cz/michal
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] fix for mm counters to macros conversion
  2005-05-16 23:34 [PATCH] fix for mm counters to macros conversion Michal Ludvig
@ 2005-05-16 23:38 ` Christoph Lameter
  2005-05-16 23:53   ` Michal Ludvig
  0 siblings, 1 reply; 3+ messages in thread
From: Christoph Lameter @ 2005-05-16 23:38 UTC (permalink / raw)
  To: Michal Ludvig; +Cc: Andrew Morton, linux-mm

Ok. This is third or fourth time this patch was posted. I thought this 
already went in?

On Mon, 16 May 2005, Michal Ludvig wrote:

> Hi,
> 
> The patch of Christoph Lameter sent on March 15 contains this in
> mm/rmap.c:try_to_unmap_one() around line 590:
> 
> -	mm->rss--;
> +	inc_mm_counter(mm, rss);
> 
> I wonder if it was an intent to change dec to inc? In all other places the 
> conversion conforms to the previous operation except for this one. Perhaps 
> the following patch should be applied...
> 
> Signed-off-by: Michal Ludvig <michal@logix.cz>
> 
> 
> Index: linux-2.6.12-rc4/mm/rmap.c
> ===================================================================
> --- linux-2.6.12-rc4.orig/mm/rmap.c	2005-05-07 17:20:31.000000000 +1200
> +++ linux-2.6.12-rc4/mm/rmap.c	2005-05-17 11:16:40.716223000 +1200
> @@ -586,7 +586,7 @@
>  		dec_mm_counter(mm, anon_rss);
>  	}
>  
> -	inc_mm_counter(mm, rss);
> +	dec_mm_counter(mm, rss);
>  	page_remove_rmap(page);
>  	page_cache_release(page);
>  
> 
> 
> 
> Michal Ludvig
> -- 
> * Personal homepage - http://www.logix.cz/michal
> 
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] fix for mm counters to macros conversion
  2005-05-16 23:38 ` Christoph Lameter
@ 2005-05-16 23:53   ` Michal Ludvig
  0 siblings, 0 replies; 3+ messages in thread
From: Michal Ludvig @ 2005-05-16 23:53 UTC (permalink / raw)
  To: Christoph Lameter; +Cc: Andrew Morton, linux-mm

Christoph Lameter wrote:
> Ok. This is third or fourth time this patch was posted. I thought this 
> already went in?

Oops, sorry then. I worked with 2.6.12-rc4.

BTW Is there an easy way to get the most up-to-date tree of akpm or
linus? Similar to 'bk pull' from Linus' tree that I used to use? I would
have checked that if I knew how...

Michal Ludvig
-- 
* Personal homepage: http://www.logix.cz/michal
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-05-16 23:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-16 23:34 [PATCH] fix for mm counters to macros conversion Michal Ludvig
2005-05-16 23:38 ` Christoph Lameter
2005-05-16 23:53   ` Michal Ludvig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox