Lines Matching defs:pages
58 * add a contiguous set of pages into a ramfs inode when it's truncated from
65 struct page *pages;
82 /* allocate enough contiguous pages to be able to satisfy the
84 pages = alloc_pages(gfp, order);
85 if (!pages)
88 /* split the high-order page into an array of single pages */
92 split_page(pages, order);
94 /* trim off any pages we don't actually require */
96 __free_page(pages + loop);
100 data = page_address(pages);
103 /* attach all the pages to the inode's address space */
105 struct page *page = pages + loop;
124 __free_page(pages + loop++);
198 * - the pages to be mapped must exist
199 * - the pages be physically contiguous in sequence
207 struct page **pages = NULL, **ptr, *page;
222 /* gang-find the pages */
223 pages = kcalloc(lpages, sizeof(struct page *), GFP_KERNEL);
224 if (!pages)
227 nr = find_get_pages_contig(inode->i_mapping, pgoff, lpages, pages);
229 goto out_free_pages; /* leave if some pages were missing */
231 /* check the pages for physical adjacency */
232 ptr = pages;
240 ret = (unsigned long) page_address(pages[0]);
243 ptr = pages;
247 kfree(pages);