From: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
To: Huang Shijie <shijie8@gmail.com>
Cc: kosaki.motohiro@jp.fujitsu.com, akpm@linux-foundation.org,
linux-mm@kvack.org
Subject: Re: [PATCH] vmscan : simplify code
Date: Thu, 26 Nov 2009 11:54:34 +0900 (JST) [thread overview]
Message-ID: <20091126113128.5A65.A69D9226@jp.fujitsu.com> (raw)
In-Reply-To: <1259201628-26935-1-git-send-email-shijie8@gmail.com>
> simplify the code for shrink_inactive_list.
>
> Signed-off-by: Huang Shijie <shijie8@gmail.com>
> ---
> mm/vmscan.c | 6 ++----
> 1 files changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/mm/vmscan.c b/mm/vmscan.c
> index 777af57..0a3cf75 100644
> --- a/mm/vmscan.c
> +++ b/mm/vmscan.c
> @@ -1166,10 +1166,8 @@ static unsigned long shrink_inactive_list(unsigned long max_scan,
> __mod_zone_page_state(zone, NR_ISOLATED_ANON, nr_anon);
> __mod_zone_page_state(zone, NR_ISOLATED_FILE, nr_file);
>
> - reclaim_stat->recent_scanned[0] += count[LRU_INACTIVE_ANON];
> - reclaim_stat->recent_scanned[0] += count[LRU_ACTIVE_ANON];
> - reclaim_stat->recent_scanned[1] += count[LRU_INACTIVE_FILE];
> - reclaim_stat->recent_scanned[1] += count[LRU_ACTIVE_FILE];
> + reclaim_stat->recent_scanned[0] += nr_anon;
> + reclaim_stat->recent_scanned[1] += nr_file;
>
> spin_unlock_irq(&zone->lru_lock);
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>
next prev parent reply other threads:[~2009-11-26 2:54 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-26 2:13 Huang Shijie
2009-11-26 2:54 ` KOSAKI Motohiro [this message]
2009-12-06 3:48 ` Wu Fengguang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20091126113128.5A65.A69D9226@jp.fujitsu.com \
--to=kosaki.motohiro@jp.fujitsu.com \
--cc=akpm@linux-foundation.org \
--cc=linux-mm@kvack.org \
--cc=shijie8@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox