Commit bb455250 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] AIO mmap fix

From: Badari Pulavarty <pbadari@us.ibm.com>

Here is a small bug fix for AIO. get_user_pages() takes number
of pages to map as argument. (not in bytes)
parent d637ceb0
......@@ -148,7 +148,7 @@ static int aio_setup_ring(struct kioctx *ctx)
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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment