Messages in this thread |  | | | From | "Stephen C. Tweedie" <> | | Date | Mon, 12 Jul 1999 20:46:15 +0100 (BST) | | Subject | Re: [test program] for OOM situations |
| |
Hi,
On Fri, 9 Jul 1999 20:34:23 +0200 (MEST), Bernd Kaindl <bk@suse.de> said:
>> - nr_good_pages = swap_header->info.last_page - i; >> + nr_good_pages = swap_header->info.last_page - >> + swap_header->info.nr_badpages - >> + 1 /* header page */;
No, this needs to be "... - i - 1", or we'll still overestimate the free swap pages if the swap device has any bad pages marked.
--Stephen
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
|  |