From: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
To: Hugh Dickins <hugh@veritas.com>
Cc: kosaki.motohiro@jp.fujitsu.com,
Andrew Morton <akpm@linux-foundation.org>,
Johannes Weiner <hannes@saeurebad.de>,
linux-mm@kvack.org
Subject: Re: [PATCH] mm: show free swap as signed
Date: Mon, 18 Aug 2008 09:24:22 +0900 [thread overview]
Message-ID: <20080818092248.6C26.KOSAKI.MOTOHIRO@jp.fujitsu.com> (raw)
In-Reply-To: <Pine.LNX.4.64.0808152149320.7958@blonde.site>
> Adjust <Alt><SysRq>m show_swap_cache_info() to show "Free swap" as a
> signed long: the signed format is preferable, because during swapoff
> nr_swap_pages can legitimately go negative, so makes more sense thus
> (it used to be shown redundantly, once as signed and once as unsigned).
>
> Signed-off-by: Hugh Dickins <hugh@veritas.com>
> ---
> No big deal, but I hope for 2.6.27.
>
> mm/swap_state.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> --- 2.6.27-rc3/mm/swap_state.c 2008-08-06 08:36:20.000000000 +0100
> +++ linux/mm/swap_state.c 2008-08-13 04:33:56.000000000 +0100
> @@ -60,7 +60,7 @@ void show_swap_cache_info(void)
> printk("Swap cache stats: add %lu, delete %lu, find %lu/%lu\n",
> swap_cache_info.add_total, swap_cache_info.del_total,
> swap_cache_info.find_success, swap_cache_info.find_total);
> - printk("Free swap = %lukB\n", nr_swap_pages << (PAGE_SHIFT - 10));
> + printk("Free swap = %ldkB\n", nr_swap_pages << (PAGE_SHIFT - 10));
> printk("Total swap = %lukB\n", total_swap_pages << (PAGE_SHIFT - 10));
> }
makes sense.
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>
prev parent reply other threads:[~2008-08-18 0:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-15 20:53 Hugh Dickins
2008-08-18 0:24 ` KOSAKI Motohiro [this message]
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=20080818092248.6C26.KOSAKI.MOTOHIRO@jp.fujitsu.com \
--to=kosaki.motohiro@jp.fujitsu.com \
--cc=akpm@linux-foundation.org \
--cc=hannes@saeurebad.de \
--cc=hugh@veritas.com \
--cc=linux-mm@kvack.org \
/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