Messages in this thread | | | Date | Wed, 2 Jan 2008 18:53:26 -0500 | From | Rik van Riel <> | Subject | Re: why do we call clear_active_flags in shrink_inactive_list ? |
| |
On Sun, 30 Dec 2007 16:32:42 +0900 "minchan Kim" <barrioskmc@gmail.com> wrote:
> In 2.6.23's shrink_inactive_list function, why do we have to call > clear_active_flags after isolate_lru_pages call ? > IMHO, If it call isolate_lru_pages with "zone->inactive_list", It can > be sure that it is not PG_active.
If we call isolate_lru_pages with mode = ISOLATE_BOTH, then it can return both active and inactive pages and the calling function has to be able to deal with both kinds of pages.
ISOLATE_BOTH is used when the kernel is trying to defragment memory, for larger physically contiguous allocations.
-- All rights reversed.
| |