lkml.org 
[lkml]   [2001]   [Dec]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: vmscan.c: shrink_cache() doubt
alad@hss.hns.com wrote:
>
> In shrink_cache(), we have
>
> if (!page->buffers && (page_count(page) != 1 || !page->mapping))
> goto page_mapped;
> .
> .
> .
> page_mapped:
> if (--max_mapped >=0)
> continue;
>
> Assume page->buffers == NULL and page->count == 1, then why jump to page_mapped
> if page->mapping == NULL ??
>

These are anonymous pages - memory returned by malloc() rather
than by mmap().

Replace max_mapped with max_unfreeable and replace page_mapped
with page_unfreeable and it may make some sense.

-
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:14    [W:0.033 / U:0.592 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site