* [PATCH]vmscan: trival: delete dead code
@ 2010-09-02 5:54 Shaohua Li
2010-09-02 6:55 ` KOSAKI Motohiro
0 siblings, 1 reply; 2+ messages in thread
From: Shaohua Li @ 2010-09-02 5:54 UTC (permalink / raw)
To: linux-mm; +Cc: akpm
delete dead code.
Signed-off-by: Shaohua Li <shaohua.li@intel.com>
diff --git a/mm/vmscan.c b/mm/vmscan.c
index c391c32..993ab4c 100644
--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@ -1914,16 +1914,6 @@ static unsigned long do_try_to_free_pages(struct zonelist *zonelist,
}
out:
- /*
- * Now that we've scanned all the zones at this priority level, note
- * that level within the zone so that the next thread which performs
- * scanning of this zone will immediately start out at this priority
- * level. This affects only the decision whether or not to bring
- * mapped pages onto the inactive list.
- */
- if (priority < 0)
- priority = 0;
-
delayacct_freepages_end();
put_mems_allowed();
--
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] 2+ messages in thread
* Re: [PATCH]vmscan: trival: delete dead code
2010-09-02 5:54 [PATCH]vmscan: trival: delete dead code Shaohua Li
@ 2010-09-02 6:55 ` KOSAKI Motohiro
0 siblings, 0 replies; 2+ messages in thread
From: KOSAKI Motohiro @ 2010-09-02 6:55 UTC (permalink / raw)
To: Shaohua Li; +Cc: kosaki.motohiro, linux-mm, akpm
> delete dead code.
>
> Signed-off-by: Shaohua Li <shaohua.li@intel.com>
>
> diff --git a/mm/vmscan.c b/mm/vmscan.c
> index c391c32..993ab4c 100644
> --- a/mm/vmscan.c
> +++ b/mm/vmscan.c
> @@ -1914,16 +1914,6 @@ static unsigned long do_try_to_free_pages(struct zonelist *zonelist,
> }
>
> out:
> - /*
> - * Now that we've scanned all the zones at this priority level, note
> - * that level within the zone so that the next thread which performs
> - * scanning of this zone will immediately start out at this priority
> - * level. This affects only the decision whether or not to bring
> - * mapped pages onto the inactive list.
> - */
> - if (priority < 0)
> - priority = 0;
> -
> delayacct_freepages_end();
> put_mems_allowed();
thank you.
Reviewed-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
--
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] 2+ messages in thread
end of thread, other threads:[~2010-09-02 6:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-02 5:54 [PATCH]vmscan: trival: delete dead code Shaohua Li
2010-09-02 6:55 ` KOSAKI Motohiro
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox