public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@zip.com.au>
To: alad@hss.hns.com
Cc: linux-kernel@vger.kernel.org
Subject: Re: vmscan.c: shrink_cache() doubt
Date: Sat, 29 Dec 2001 00:41:26 -0800	[thread overview]
Message-ID: <3C2D81B6.D9B78DDA@zip.com.au> (raw)
In-Reply-To: <65256B31.002E1834.00@sandesh.hss.hns.com>

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.

-

      reply	other threads:[~2001-12-29  8:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-12-29  8:18 vmscan.c: shrink_cache() doubt alad
2001-12-29  8:41 ` Andrew Morton [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3C2D81B6.D9B78DDA@zip.com.au \
    --to=akpm@zip.com.au \
    --cc=alad@hss.hns.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox