lkml.org 
[lkml]   [2005]   [Jul]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [linux-pm] [PATCH] swsusp: simpler calculation of number of pages in PBE list
Hi!

> > px >= n + x
> >
> > or
> >
> > (p-1)x >= n
> >
> > or
> >
> > x >= n / (p-1).
> >
> > The obvious solution is
> >
> > x = ceiling(n / (p-1)),
> >
> > so calc_nr should return n + ceiling(n / (p-1)), which is exactly what
> > Michal's patch computes.
>
> Nice. :-)
>
> Could we perhaps add your proof to the Michal's patch as a comment,
> for reference?

No, thanks. It only proves that it is equivalent to old code, but says
nothing about quality of code, and we really do not want to keep old
code around.
Pavel
--
teflon -- maybe it is a trademark, but it should not be.
-
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-07-30 15:17    [W:0.113 / U:0.520 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site