All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Stephen C. Tweedie" <sct@redhat.com>
To: Neil Schemenauer <nascheme@enme.ucalgary.ca>
Cc: Kanoj Sarcar <kanoj@google.engr.sgi.com>, linux-mm@kvack.org
Subject: Re: shrink_mmap bug in 2.2?
Date: Fri, 16 Jun 2000 11:05:02 +0100	[thread overview]
Message-ID: <20000616110502.A1202@redhat.com> (raw)
In-Reply-To: <20000615131241.D9717@acs.ucalgary.ca>; from nascheme@enme.ucalgary.ca on Thu, Jun 15, 2000 at 01:12:41PM -0600

Hi,

On Thu, Jun 15, 2000 at 01:12:41PM -0600, Neil Schemenauer wrote:
> 
> If the page is not referenced it will be removed regardless of
> the swap_count.  My question is "does swap_count have to equal
> one before calling delete_from_swap_cache"?  If it does then I
> think the code is wrong.

No.  The swap cache is only an in-memory cached copy of the on-disk
swap page.  It is quite safe to delete the swap cache page in memory
no matter how many references to the on-disk copy there are.  If
this were not true, we'd be unable to delete any swapped-out pages
from ram!

Cheers,
 Stephen
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/

      reply	other threads:[~2000-06-16 10:05 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-06-15  0:50 shrink_mmap bug in 2.2? Neil Schemenauer
2000-06-15  1:16 ` Kanoj Sarcar
2000-06-15  8:58   ` volodya
2000-06-15 16:56     ` Kanoj Sarcar
2000-06-15 19:12   ` Neil Schemenauer
2000-06-16 10:05     ` Stephen C. Tweedie [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=20000616110502.A1202@redhat.com \
    --to=sct@redhat.com \
    --cc=kanoj@google.engr.sgi.com \
    --cc=linux-mm@kvack.org \
    --cc=nascheme@enme.ucalgary.ca \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.