]> git.baikalelectronics.ru Git - kernel.git/commit
mm: show free swap as signed
authorHugh Dickins <hugh@veritas.com>
Wed, 20 Aug 2008 21:09:05 +0000 (14:09 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 20 Aug 2008 22:40:30 +0000 (15:40 -0700)
commitf2f85bfeacde1fa2f98e16866b2f0120a5842717
treee1f1269b459790e45ae11057fcd5b530bcbe5fd5
parentc651e21b97ff087c49bfe74e4a1d476eb26f7213
mm: show free swap as signed

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>
Reviewed-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/swap_state.c