linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Andrea Arcangeli <andrea@suse.de>
To: Ingo Oeser <ingo.oeser@informatik.tu-chemnitz.de>
Cc: linux-mm@kvack.org
Subject: Re: Questions about page IO of swapping
Date: Mon, 12 Jun 2000 16:47:08 +0200 (CEST)	[thread overview]
Message-ID: <Pine.LNX.4.21.0006041615150.2482-100000@inspiron.random> (raw)
In-Reply-To: <Pine.LNX.4.10.10005221323490.21738-100000@nightmaster.csn.tu-chemnitz.de>

On Mon, 22 May 2000, Ingo Oeser wrote:

>I thought encryption should be done before calling brw_page() in 
>mm/page_io.c:rw_swap_page_base()

only in the write case of course.

>and decryption in fs/buffer.c:after_unlock_page(), if the
>page->count is >0 after passing every other of the tests in this
>function.

If the page->count during swapping is zero then it's going to be a
bug. You shouldn't need to check the page count.

>So when is a page actually considered written to disk and when is
>it accessed first after this? 

Of course you have to encrypt on a kind of bounce page, not on the swap
cache. While decrypting you can decrypt in place instead.

>I have also problems tracking reads vs. writes, because this

I see. You can probably check if the page is uptodate or not to know if
it's a read or a write during disk completation.

Andrea

--
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-12 14:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-05-22 11:43 Ingo Oeser
2000-06-12 14:47 ` Andrea Arcangeli [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=Pine.LNX.4.21.0006041615150.2482-100000@inspiron.random \
    --to=andrea@suse.de \
    --cc=ingo.oeser@informatik.tu-chemnitz.de \
    --cc=linux-mm@kvack.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