]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
[PATCH] Always print out the header line in /proc/swaps
authorSuleiman Souhlal <ssouhlal@FreeBSD.org>
Thu, 7 Dec 2006 04:32:28 +0000 (20:32 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Thu, 7 Dec 2006 16:39:22 +0000 (08:39 -0800)
commit881e4aabe4c6b3fce93674b67c6adc646fe2683b
treef5e429c01ca20c8bb8bd300e33013f056516b131
parentb43a57bb4dae72e8f7232e7c821a8799eda30022
[PATCH] Always print out the header line in /proc/swaps

It would be possible for /proc/swaps to not always print out the header:

swapon /dev/hdc2
swapon /dev/hde2
swapoff /dev/hdc2

At this point /proc/swaps would not have a header.

Signed-off-by: Suleiman Souhlal <suleiman@google.com>
Cc: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/swapfile.c