[PATCH] swapinfo accounting
authorHugh Dickins <hugh@veritas.com>
Tue, 16 Apr 2002 06:41:59 +0000 (23:41 -0700)
committerLinus Torvalds <torvalds@penguin.transmeta.com>
Tue, 16 Apr 2002 06:41:59 +0000 (23:41 -0700)
commitc6df0ff49626434a91e3621d9fd18c2596fc72bb
treebfacd1219697bcf73e2e141ffe6177345b7bb9c2
parentd1ff5024b2377efc7fb2f87885e07a79383311ae
[PATCH] swapinfo accounting

Randy observed that 2.5 /proc/meminfo SwapFree holds steady
while SwapTotal goes up and down: wrong way round!

Andrew pointed to wrong conditional in si_swapinfo(): 2.5.4
updated it incorrectly when new flags bit was briefly added.
And pointed out that it also makes si_swapinfo much too slow.
mm/swapfile.c