linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* 2.5.67 - small AIO bug fix
@ 2003-04-16 23:14 Badari Pulavarty
  0 siblings, 0 replies; only message in thread
From: Badari Pulavarty @ 2003-04-16 23:14 UTC (permalink / raw)
  To: linux-kernel

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-04-16 23:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-16 23:14 2.5.67 - small AIO bug fix Badari Pulavarty

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