linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -mmotm] mm: setup_per_zone_inactive_ratio - fix comment and make it __init
@ 2009-05-06  6:19 Cyrill Gorcunov
  2009-05-06  6:34 ` David Rientjes
  2009-05-06  6:51 ` Minchan Kim
  0 siblings, 2 replies; 5+ messages in thread
From: Cyrill Gorcunov @ 2009-05-06  6:19 UTC (permalink / raw)
  To: Andrew Morton, David Rientjes; +Cc: LMMML, LKML

The caller of setup_per_zone_inactive_ratio is module_init function.
No need to keep the callee after is completed as well.
Also fix a comment.

CC: David Rientjes <rientjes@google.com>
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
---
 mm/page_alloc.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

Index: linux-2.6.git/mm/page_alloc.c
=====================================================================
--- linux-2.6.git.orig/mm/page_alloc.c
+++ linux-2.6.git/mm/page_alloc.c
@@ -4540,8 +4540,6 @@ void setup_per_zone_pages_min(void)
 }
 
 /**
- * setup_per_zone_inactive_ratio - called when min_free_kbytes changes.
- *
  * The inactive anon list should be small enough that the VM never has to
  * do too much work, but large enough that each inactive page has a chance
  * to be referenced again before it is swapped out.
@@ -4562,7 +4560,7 @@ void setup_per_zone_pages_min(void)
  *    1TB     101        10GB
  *   10TB     320        32GB
  */
-static void setup_per_zone_inactive_ratio(void)
+static void __init setup_per_zone_inactive_ratio(void)
 {
 	struct zone *zone;
 

--
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:"dont@kvack.org"> email@kvack.org </a>

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

* Re: [PATCH -mmotm] mm: setup_per_zone_inactive_ratio - fix comment and make it __init
  2009-05-06  6:19 [PATCH -mmotm] mm: setup_per_zone_inactive_ratio - fix comment and make it __init Cyrill Gorcunov
@ 2009-05-06  6:34 ` David Rientjes
  2009-05-06  6:51 ` Minchan Kim
  1 sibling, 0 replies; 5+ messages in thread
From: David Rientjes @ 2009-05-06  6:34 UTC (permalink / raw)
  To: Cyrill Gorcunov; +Cc: Andrew Morton, LMMML, LKML

On Wed, 6 May 2009, Cyrill Gorcunov wrote:

> The caller of setup_per_zone_inactive_ratio is module_init function.
> No need to keep the callee after is completed as well.
> Also fix a comment.
> 
> CC: David Rientjes <rientjes@google.com>
> Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>

Acked-by: David Rientjes <rientjes@google.com>

There's no need to specify -mmotm on the subject line since it isn't 
specific to that tree, this applies to HEAD just fine.

--
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:"dont@kvack.org"> email@kvack.org </a>

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

* Re: [PATCH -mmotm] mm: setup_per_zone_inactive_ratio - fix comment and make it __init
  2009-05-06  6:19 [PATCH -mmotm] mm: setup_per_zone_inactive_ratio - fix comment and make it __init Cyrill Gorcunov
  2009-05-06  6:34 ` David Rientjes
@ 2009-05-06  6:51 ` Minchan Kim
  2009-05-06  7:03   ` Cyrill Gorcunov
  1 sibling, 1 reply; 5+ messages in thread
From: Minchan Kim @ 2009-05-06  6:51 UTC (permalink / raw)
  To: Cyrill Gorcunov; +Cc: Andrew Morton, David Rientjes, LMMML, LKML, Rik van Riel

On Wed, 6 May 2009 10:19:23 +0400
Cyrill Gorcunov <gorcunov@openvz.org> wrote:

> The caller of setup_per_zone_inactive_ratio is module_init function.

__init :)

> No need to keep the callee after is completed as well.
> Also fix a comment.
> 
> CC: David Rientjes <rientjes@google.com>
> Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>

Reviewed-by: Minchan Kim <minchan.kim@gmail.com>
I guess the comment was a typo. 

> ---
>  mm/page_alloc.c |    4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)
> 
> Index: linux-2.6.git/mm/page_alloc.c
> =====================================================================
> --- linux-2.6.git.orig/mm/page_alloc.c
> +++ linux-2.6.git/mm/page_alloc.c
> @@ -4540,8 +4540,6 @@ void setup_per_zone_pages_min(void)
>  }
>  
>  /**
> - * setup_per_zone_inactive_ratio - called when min_free_kbytes changes.
> - *
>   * The inactive anon list should be small enough that the VM never has to
>   * do too much work, but large enough that each inactive page has a chance
>   * to be referenced again before it is swapped out.
> @@ -4562,7 +4560,7 @@ void setup_per_zone_pages_min(void)
>   *    1TB     101        10GB
>   *   10TB     320        32GB
>   */
> -static void setup_per_zone_inactive_ratio(void)
> +static void __init setup_per_zone_inactive_ratio(void)
>  {
>  	struct zone *zone;
>  
> 
> --
> 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:"dont@kvack.org"> email@kvack.org </a>


-- 
Kinds Regards
Minchan Kim

--
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:"dont@kvack.org"> email@kvack.org </a>

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

* Re: [PATCH -mmotm] mm: setup_per_zone_inactive_ratio - fix comment and make it __init
  2009-05-06  6:51 ` Minchan Kim
@ 2009-05-06  7:03   ` Cyrill Gorcunov
  2009-05-06  7:12     ` Cyrill Gorcunov
  0 siblings, 1 reply; 5+ messages in thread
From: Cyrill Gorcunov @ 2009-05-06  7:03 UTC (permalink / raw)
  To: Minchan Kim; +Cc: Andrew Morton, David Rientjes, LMMML, LKML, Rik van Riel

[Minchan Kim - Wed, May 06, 2009 at 03:51:45PM +0900]
| On Wed, 6 May 2009 10:19:23 +0400
| Cyrill Gorcunov <gorcunov@openvz.org> wrote:
| 
| > The caller of setup_per_zone_inactive_ratio is module_init function.
| 
| __init :)
| 
| > No need to keep the callee after is completed as well.
| > Also fix a comment.
| > 
| > CC: David Rientjes <rientjes@google.com>
| > Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
| 
| Reviewed-by: Minchan Kim <minchan.kim@gmail.com>
| I guess the comment was a typo. 

Thanks Minchan. Actually it's not a typo :)
module_init function is supposed to be __initcall
function anyway. But it's confusing I could fix
changelog.

	-- Cyrill

--
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:"dont@kvack.org"> email@kvack.org </a>

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

* Re: [PATCH -mmotm] mm: setup_per_zone_inactive_ratio - fix comment and make it __init
  2009-05-06  7:03   ` Cyrill Gorcunov
@ 2009-05-06  7:12     ` Cyrill Gorcunov
  0 siblings, 0 replies; 5+ messages in thread
From: Cyrill Gorcunov @ 2009-05-06  7:12 UTC (permalink / raw)
  To: Minchan Kim, Andrew Morton, David Rientjes, LMMML, LKML,
	Rik van Riel

[Cyrill Gorcunov - Wed, May 06, 2009 at 11:03:23AM +0400]
... 
| Thanks Minchan. Actually it's not a typo :)
| module_init function is supposed to be __initcall
| function anyway. But it's confusing I could fix
| changelog.
| 
| 	-- Cyrill

Andrew, could you s/module_init/__init/ in changelog
please?

	-- Cyrill

--
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:"dont@kvack.org"> email@kvack.org </a>

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

end of thread, other threads:[~2009-05-06  7:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-06  6:19 [PATCH -mmotm] mm: setup_per_zone_inactive_ratio - fix comment and make it __init Cyrill Gorcunov
2009-05-06  6:34 ` David Rientjes
2009-05-06  6:51 ` Minchan Kim
2009-05-06  7:03   ` Cyrill Gorcunov
2009-05-06  7:12     ` Cyrill Gorcunov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).