lkml.org 
[lkml]   [2008]   [Apr]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectwrong comment in do_try_to_free_pages ?
static unsigned long do_try_to_free_pages(struct zone **zones, gfp_t gfp_mask,
struct scan_control *sc)
...
...
/* Take a nap, wait for some writeback to complete */
if (sc->nr_scanned && priority < DEF_PRIORITY - 2)
congestion_wait(WRITE, HZ/10);
}
/* top priority shrink_caches still had more to do? don't OOM, then */
^^^^^^^^^^^^^^^^^
if (!sc->all_unreclaimable && scan_global_lru(sc))
ret = 1;
out:
/*
....

I think we change shrink_caches commet with shrink_zone.

And I can't understand that's comment.

What's role sc->all_unreclaimable ?
What benefit do we can get with that code ?
If we don't have that code, What's problem happen ?

--
Thanks,
barrios


\
 
 \ /
  Last update: 2008-04-24 04:05    [W:2.396 / U:0.028 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site