lkml.org 
[lkml]   [2002]   [Apr]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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/

\
 
 \ /
  Last update: 2005-03-22 13:25    [W:0.043 / U:9.520 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site