From: Andrew Morton <akpm@zip.com.au>
To: Benjamin LaHaise <bcrl@redhat.com>
Cc: linux-fsdevel@vger.kernel.org,
Linux Kernel <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] loop.c forgot a kmap
Date: Thu, 23 May 2002 21:18:56 -0700 [thread overview]
Message-ID: <3CEDBF30.1FACBE15@zip.com.au> (raw)
In-Reply-To: <20020523232024.A2917@redhat.com>
Benjamin LaHaise wrote:
>
> The patch below fixes a bug in loop.c that causes highmem systems
> to fail spectacularly when a page happens to be allocated in highmem
> by replacing the use of page_address with a kmap/kunmap sequence.
You must be using a funny kernel, or you have loop on a funny address_space.
The current ->prepare_write() API definition requires that the page be kmapped.
By ->prepare_write. So it appears that the real bug is actually in whatever
you've mounted your loop on.
Now, Linus (I think) decided that this wasn't a good API and moves were made
to change it. Note how generic_file_write() kmaps the page as well. So
we're currently kmapping pages twice on such rare operations as writing
to an ext2 file ;)
So right now, it's unclear whether the kmap should be done by prepare/commit,
or whether it should be done by the caller. I started to clean it up. Al
disagreed with Linus. I went and did something else.
-
prev parent reply other threads:[~2002-05-24 4:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-24 3:20 [PATCH] loop.c forgot a kmap Benjamin LaHaise
2002-05-24 3:24 ` William Lee Irwin III
2002-05-24 4:18 ` 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=3CEDBF30.1FACBE15@zip.com.au \
--to=akpm@zip.com.au \
--cc=bcrl@redhat.com \
--cc=linux-fsdevel@vger.kernel.org \
--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