public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* I have one doubt about detail of page reclaim.
@ 2005-07-11 12:41 liyu@WAN
  2005-07-11 12:45 ` liyu@WAN
  0 siblings, 1 reply; 2+ messages in thread
From: liyu@WAN @ 2005-07-11 12:41 UTC (permalink / raw)
  To: LKML

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~

   
   

   


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: I have one doubt about detail of page reclaim.
  2005-07-11 12:41 I have one doubt about detail of page reclaim liyu@WAN
@ 2005-07-11 12:45 ` liyu@WAN
  0 siblings, 0 replies; 2+ messages in thread
From: liyu@WAN @ 2005-07-11 12:45 UTC (permalink / raw)
  Cc: LKML

liyu@WAN wrote:

>    I am reading code of function balabce_pgdat(pg_data_t *pgdat, int 
> nr_pages, int order).
>
    Sorry, that have one typo, it should be balance_pgdat().




                                                                         
               liyu/NOW:D

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-07-11 12:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-11 12:41 I have one doubt about detail of page reclaim liyu@WAN
2005-07-11 12:45 ` liyu@WAN

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox