lkml.org 
[lkml]   [2012]   [Apr]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v9]: Hibernation: fix the number of pages used for hibernate/thaw buffering
From
Date
On Tue, 2012-04-10 at 10:40 +0200, Per Olofsson wrote:
> Nitpick: it should be faster to calculate "nr_free_pages() -
> nr_free_highpages()", at least on systems without high pages. But
> perhaps it does not matter.

Actually, nr_free_highpages() does a loop very similar to the one in the
patch. So, you would then have that and nr_free_pages() invocation.
That's why I went with just the loop.

Make sense?

--
Bojan



\
 
 \ /
  Last update: 2012-04-10 11:23    [W:0.046 / U:0.104 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site