Lines Matching defs:nr_pages
8802 unsigned long nr_pages)
8804 atomic_long_sub(nr_pages, &user->locked_vm);
8808 unsigned long nr_pages)
8817 new_pages = cur_pages + nr_pages;
8826 static void io_unaccount_mem(struct io_ring_ctx *ctx, unsigned long nr_pages)
8829 __io_unaccount_mem(ctx->user, nr_pages);
8832 atomic64_sub(nr_pages, &ctx->mm_account->pinned_vm);
8835 static int io_account_mem(struct io_ring_ctx *ctx, unsigned long nr_pages)
8840 ret = __io_account_mem(ctx->user, nr_pages);
8846 atomic64_add(nr_pages, &ctx->mm_account->pinned_vm);
8988 int nr_pages, struct page *hpage)
8993 for (i = 0; i < nr_pages; i++) {
9016 int nr_pages, struct io_mapped_ubuf *imu,
9022 for (i = 0; i < nr_pages; i++) {
9056 int ret, pret, nr_pages, i;
9066 nr_pages = end - start;
9071 pages = kvmalloc_array(nr_pages, sizeof(struct page *), GFP_KERNEL);
9075 vmas = kvmalloc_array(nr_pages, sizeof(struct vm_area_struct *),
9080 imu = kvmalloc(struct_size(imu, bvec, nr_pages), GFP_KERNEL);
9086 pret = pin_user_pages(ubuf, nr_pages, FOLL_WRITE | FOLL_LONGTERM,
9088 if (pret == nr_pages) {
9092 for (i = 0; i < nr_pages; i++) {
9126 for (i = 0; i < nr_pages; i++) {
9139 imu->nr_bvecs = nr_pages;