<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">
From: Hugh Dickins &lt;hugh@veritas.com&gt;

Your swapspace-layout-improvements.patch inadvertently deletes a line too
many, so /proc/swaps tends to show negative Used.

I was tempted to delete "akpm", but compassion stayed my hand.

Sorry, I'm sure you'd appreciate proper feedback on the patch, but I
haven't studied it or noticed its impact yet.

Signed-off-by: Hugh Dickins &lt;hugh@veritas.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
---

 25-akpm/mm/swapfile.c |    1 +
 1 files changed, 1 insertion(+)

diff -puN mm/swapfile.c~swapspace-layout-improvements-fix mm/swapfile.c
--- 25/mm/swapfile.c~swapspace-layout-improvements-fix	2005-02-22 18:16:02.000000000 -0800
+++ 25-akpm/mm/swapfile.c	2005-02-22 18:16:02.000000000 -0800
@@ -120,6 +120,7 @@ scan_swap_map(struct swap_info_struct *s
 		if (si-&gt;swap_map[block])
 			continue;
 		si-&gt;swap_map[block] = 1;
+		si-&gt;inuse_pages++;
 		nr_swap_pages--;
 		if (akpm)
 			printk("cookie:%p, index:%lu, chunk:%lu nchunks:%lu "
_
</pre></body></html>