Lines Matching defs:index
90 struct inode *inode, pgoff_t index)
93 index);
102 struct inode *inode, pgoff_t index)
328 unsigned long index = iocb->ki_pos >> huge_page_shift(h);
344 if (index > end_index)
346 if (index == end_index) {
354 page = find_lock_page(mapping, index);
377 index += offset >> huge_page_shift(h);
380 iocb->ki_pos = ((loff_t)index << huge_page_shift(h)) + offset;
474 pgoff_t next, index;
493 index = page->index;
494 hash = hugetlb_fault_mutex_hash(mapping, index);
521 index * pages_per_huge_page(h),
522 (index + 1) * pages_per_huge_page(h));
541 index, index + 1, 1)))
643 pgoff_t start, index, end;
675 * allocation routines. If NUMA is configured, use page index
682 for (index = start; index < end; index++) {
702 /* Set numa allocation policy based on index */
703 hugetlb_set_vma_policy(&pseudo_vma, inode, index);
706 addr = index * hpage_size;
713 hash = hugetlb_fault_mutex_hash(mapping, index);
717 page = find_get_page(mapping, index);
735 error = huge_add_to_page_cache(page, mapping, index);
998 pgoff_t index = page->index;
1001 if (unlikely(hugetlb_unreserve_pages(inode, index, index + 1, 1)))