Re: vmscan.c: shrink_cache() doubt

Andrew Morton (akpm@zip.com.au)
Sat, 29 Dec 2001 00:41:26 -0800


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/