From: Badari Pulavarty <pbadari@us.ibm.com>
To: linux-kernel@vger.kernel.org
Subject: 2.5.67 - small AIO bug fix
Date: Wed, 16 Apr 2003 16:14:39 -0700 [thread overview]
Message-ID: <200304161614.39720.pbadari@us.ibm.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 151 bytes --]
Hi,
Here is a small bug fix for AIO. get_user_pages() takes number
of pages to map as argument. (not in bytes)
Please apply.
Thanks,
Badari
[-- Attachment #2: aio.fix --]
[-- Type: text/x-diff, Size: 422 bytes --]
--- linux-2.5.67/fs/aio.c Wed Apr 16 15:58:06 2003
+++ linux-2.5.67.new/fs/aio.c Wed Apr 16 15:58:25 2003
@@ -148,7 +148,7 @@ static int aio_setup_ring(struct kioctx
dprintk("mmap address: 0x%08lx\n", info->mmap_base);
info->nr_pages = get_user_pages(current, ctx->mm,
- info->mmap_base, info->mmap_size,
+ info->mmap_base, nr_pages,
1, 0, info->ring_pages, NULL);
up_write(&ctx->mm->mmap_sem);
reply other threads:[~2003-04-16 23:04 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=200304161614.39720.pbadari@us.ibm.com \
--to=pbadari@us.ibm.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;
as well as URLs for NNTP newsgroup(s).