All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bojan Smojver <bojan@rexursive.com>
To: Per Olofsson <pelle@debian.org>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v9]: Hibernation: fix the number of pages used for hibernate/thaw buffering
Date: Tue, 10 Apr 2012 19:19:14 +1000	[thread overview]
Message-ID: <1334049554.2178.1.camel@shrek.rexursive.com> (raw)
In-Reply-To: <4F83F202.2080600@debian.org>

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


  reply	other threads:[~2012-04-10  9:19 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-10  2:47 [PATCH v9]: Hibernation: fix the number of pages used for hibernate/thaw buffering Bojan Smojver
2012-04-10  8:40 ` Per Olofsson
2012-04-10  9:19   ` Bojan Smojver [this message]
2012-04-10  9:22     ` Per Olofsson
2012-04-10  9:27       ` Bojan Smojver

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1334049554.2178.1.camel@shrek.rexursive.com \
    --to=bojan@rexursive.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pelle@debian.org \
    --cc=rjw@sisk.pl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.