Messages in this thread | | | Date | Wed, 10 Apr 2002 18:46:30 -0700 | From | Mike Fedyk <> | Subject | Re: [patch-2.5.8-pre] swapinfo accounting |
| |
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. - 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/
| |