Messages in this thread | | | Date | Wed, 10 Apr 2002 20:57:12 -0700 (PDT) | From | <> | Subject | Re: [patch-2.5.8-pre] swapinfo accounting |
| |
On Wed, 10 Apr 2002, Mike Fedyk wrote:
| On Wed, Apr 10, 2002 at 06:20:55PM -0700, Randy.Dunlap wrote: | > Anyway, here is the patch that makes it better. | > Not perfect, due to possibility of bad blocks, but better | > than it was. Comments? | > | > | > --- linux-258-pre2/mm/swapfile.c.SI Wed Apr 10 17:50:34 2002 | > +++ linux-258-pre2/mm/swapfile.c Wed Apr 10 18:09:46 2002 | > @@ -1107,8 +1107,8 @@ | > } | > } | > } | > - val->freeswap = nr_swap_pages + nr_to_be_unused; | > - val->totalswap = total_swap_pages + nr_to_be_unused; | > + val->freeswap = nr_swap_pages; | > + val->totalswap = total_swap_pages; | > swap_list_unlock(); | > } | | Shouldn't that be s/+/-/ instead? If this is badblocks accounting, it | should probably be subtracted instead of added.
Hi- This isn't badblocks accounting. Sorry for the confusion...
[and yes, I should have looked in one of the other kernel branches that are floating around...]
-- ~Randy
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |