public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "liyu@WAN" <liyu@ccoss.com.cn>
To: LKML <linux-kernel@vger.kernel.org>
Subject: I have one doubt about detail of page reclaim.
Date: Mon, 11 Jul 2005 20:41:27 +0800	[thread overview]
Message-ID: <42D268F7.2060108@ccoss.com.cn> (raw)

Hi, everyone on LKML.

    This is my fourth or fifth send mail to this list. Of course, almost 
all mail are submit question.
and lucky, can get answers soon. thank that every man that reply my 
question.
   
    I understand some kernel skills while I resolved one question. this 
process is so fun.

    OK, the question at this time:

    I am reading code of function balabce_pgdat(pg_data_t *pgdat, int 
nr_pages, int order).

    As the comment said, the argument 'nr_free' is how many pages to 
free when software suspending .
In that function, define a int variable 'to_free' first, and it is 
assigned to value of 'nr_pages'.
but I found both two variables (to_free and nr_pages) didn't change in 
this function at all, then,
Why define variable to_free? And, in middle of this function, there have 
one if condtion statement
as follow:

        if (nr_pages && to_free > total_reclaimed)
            continue;    /* swsusp: need to do more work */

    It's look like to guaruatee release enough pages to satisfy reqire 
of software suspend. but as
my view, 'nr_pages' and 'to_free' must have same value in this function.
   
    Do here have secret too?

    Waiting for magical answer.




                                                                         
      liyu/NOW~

   
   

   


             reply	other threads:[~2005-07-11 12:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-11 12:41 liyu@WAN [this message]
2005-07-11 12:45 ` I have one doubt about detail of page reclaim liyu@WAN

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=42D268F7.2060108@ccoss.com.cn \
    --to=liyu@ccoss.com.cn \
    --cc=linux-kernel@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox