2.5.67 - small AIO bug fix

Badari Pulavarty (pbadari@us.ibm.com)
Wed, 16 Apr 2003 16:14:39 -0700


--------------Boundary-00=_FWLGR6MCU0X5OID8PLFQ
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hi,

Here is a small bug fix for AIO. get_user_pages() takes number=20
of pages to map as argument. (not in bytes)

Please apply.

Thanks,
Badari
--------------Boundary-00=_FWLGR6MCU0X5OID8PLFQ
Content-Type: text/x-diff;
charset="us-ascii";
name="aio.fix"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="aio.fix"

--- 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);

--------------Boundary-00=_FWLGR6MCU0X5OID8PLFQ--

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/