Lines Matching defs:index
35 pgoff_t index, void *entry)
37 XA_STATE(xas, &mapping->i_pages, index);
46 static void clear_shadow_entry(struct address_space *mapping, pgoff_t index,
50 __clear_shadow_entry(mapping, index, entry);
84 pgoff_t index = indices[i];
91 if (index >= end)
95 dax_delete_mapping_entry(mapping, index);
99 __clear_shadow_entry(mapping, index, page);
112 pgoff_t index, void *entry)
117 clear_shadow_entry(mapping, index, entry);
126 pgoff_t index, void *entry)
132 return dax_invalidate_mapping_entry_sync(mapping, index);
133 clear_shadow_entry(mapping, index, entry);
297 pgoff_t index;
325 index = start;
326 while (index < end && pagevec_lookup_entries(&pvec, mapping, index,
327 min(end - index, (pgoff_t)PAGEVEC_SIZE),
340 /* We rely upon deletion not changing page->index */
341 index = indices[i];
342 if (index >= end)
350 WARN_ON(page_to_index(page) != index);
369 index++;
410 index = start;
413 if (!pagevec_lookup_entries(&pvec, mapping, index,
414 min(end - index, (pgoff_t)PAGEVEC_SIZE), indices)) {
416 if (index == start)
419 index = start;
422 if (index == start && indices[0] >= end) {
432 /* We rely upon deletion not changing page->index */
433 index = indices[i];
434 if (index >= end) {
436 index = start - 1;
444 WARN_ON(page_to_index(page) != index);
451 index++;
533 pgoff_t index = start;
539 while (index <= end && pagevec_lookup_entries(&pvec, mapping, index,
540 min(end - index, (pgoff_t)PAGEVEC_SIZE - 1) + 1,
545 /* We rely upon deletion not changing page->index */
546 index = indices[i];
547 if (index > end)
551 invalidate_exceptional_entry(mapping, index,
559 WARN_ON(page_to_index(page) != index);
566 index += HPAGE_PMD_NR - 1;
573 if (index > end) {
609 index++;
708 pgoff_t index;
718 index = start;
719 while (index <= end && pagevec_lookup_entries(&pvec, mapping, index,
720 min(end - index, (pgoff_t)PAGEVEC_SIZE - 1) + 1,
725 /* We rely upon deletion not changing page->index */
726 index = indices[i];
727 if (index > end)
732 index, page))
742 unmap_mapping_pages(mapping, index,
743 (1 + end - index), false);
748 WARN_ON(page_to_index(page) != index);
771 index++;
887 pgoff_t index;
898 index = from >> PAGE_SHIFT;
899 page = find_lock_page(inode->i_mapping, index);