Lines Matching refs:nr_pages
87 for (i=0; i<info->nr_pages; i++) in aio_free_ring()
108 int nr_pages; in aio_setup_ring() local
115 nr_pages = (size + PAGE_SIZE-1) >> PAGE_SHIFT; in aio_setup_ring()
117 if (nr_pages < 0) in aio_setup_ring()
120 nr_events = (PAGE_SIZE * nr_pages - sizeof(struct aio_ring)) / sizeof(struct io_event); in aio_setup_ring()
124 if (nr_pages > AIO_RING_PAGES) { in aio_setup_ring()
125 info->ring_pages = kcalloc(nr_pages, sizeof(struct page *), GFP_KERNEL); in aio_setup_ring()
130 info->mmap_size = nr_pages * PAGE_SIZE; in aio_setup_ring()
144 info->nr_pages = get_user_pages(current, ctx->mm, in aio_setup_ring()
145 info->mmap_base, nr_pages, in aio_setup_ring()
149 if (unlikely(info->nr_pages != nr_pages)) { in aio_setup_ring()