Searched defs:index (Results 1 - 12 of 12) sorted by relevance

/mm/
H A Dfilemap_xip.c60 pgoff_t index, end_index; local
68 index = pos >> PAGE_CACHE_SHIFT;
84 if (index >= end_index) {
85 if (index > end_index)
96 error = mapping->a_ops->get_xip_mem(mapping, index, 0,
134 index += offset >> PAGE_CACHE_SHIFT;
334 unsigned long index; local
341 index = pos >> PAGE_CACHE_SHIFT;
346 status = a_ops->get_xip_mem(mapping, index, 0,
351 status = a_ops->get_xip_mem(mapping, index,
449 pgoff_t index = from >> PAGE_CACHE_SHIFT; local
[all...]
H A Dtruncate.c29 * @offset: the index of the truncation point
145 (loff_t)page->index << PAGE_CACHE_SHIFT,
202 * When looking at page->index outside the page lock we need to be careful to
233 pgoff_t page_index = page->index;
276 if (pvec.pages[0]->index > end) {
284 if (page->index > end)
289 if (page->index > next)
290 next = page->index;
347 pgoff_t index; local
353 * We really shouldn't be looking at the ->index o
[all...]
H A Dpage_cgroup.c62 unsigned long start_pfn, nr_pages, index; local
76 for (index = 0; index < nr_pages; index++) {
77 pc = base + index;
171 int index; local
194 for (index = 0; index < PAGES_PER_SECTION; index++) {
195 pc = base + index;
[all...]
H A Dswap.c748 * @start: The starting page index
770 pgoff_t *index, int tag, unsigned nr_pages)
772 pvec->nr = find_get_pages_tag(mapping, index, tag,
769 pagevec_lookup_tag(struct pagevec *pvec, struct address_space *mapping, pgoff_t *index, int tag, unsigned nr_pages) argument
H A Dpage-writeback.c808 * @start: starting page index
809 * @end: ending page index (inclusive)
872 pgoff_t index; local
882 index = writeback_index;
883 if (index == 0)
889 index = wbc->range_start >> PAGE_CACHE_SHIFT;
901 tag_pages_for_writeback(mapping, index, end);
902 done_index = index;
903 while (!done && (index <= end)) {
906 nr_pages = pagevec_lookup_tag(&pvec, mapping, &index, ta
[all...]
H A Dvmstat.c571 * A fragmentation index only makes sense if an allocation of a requested
572 * size would fail. If that is true, the fragmentation index indicates
584 /* Fragmentation index only makes sense when a request would fail */
597 /* Same as __fragmentation index but allocs contig_page_info on stack */
1225 * Return an index indicating how much of the available free memory is
1250 int index; local
1258 index = unusable_free_index(order, &info);
1259 seq_printf(m, "%d.%03d ", index / 1000, index % 1000);
1266 * Display unusable free space index
1310 int index; local
[all...]
H A Dfilemap.c132 radix_tree_delete(&mapping->page_tree, page->index);
269 pgoff_t index = start_byte >> PAGE_CACHE_SHIFT; local
279 while ((index <= end) &&
280 (nr_pages = pagevec_lookup_tag(&pvec, mapping, &index,
282 min(end - index, (pgoff_t)PAGEVEC_SIZE-1) + 1)) != 0) {
289 if (page->index > end)
409 pgoff_t offset = old->index;
414 new->index = offset;
441 * @offset: page index
463 page->index
774 find_or_create_page(struct address_space *mapping, pgoff_t index, gfp_t gfp_mask) argument
883 find_get_pages_contig(struct address_space *mapping, pgoff_t index, unsigned int nr_pages, struct page **pages) argument
948 find_get_pages_tag(struct address_space *mapping, pgoff_t *index, int tag, unsigned int nr_pages, struct page **pages) argument
1016 grab_cache_page_nowait(struct address_space *mapping, pgoff_t index) argument
1075 pgoff_t index; local
1469 do_readahead(struct address_space *mapping, struct file *filp, pgoff_t index, unsigned long nr) argument
1782 __read_cache_page(struct address_space *mapping, pgoff_t index, int (*filler)(void *,struct page*), void *data, gfp_t gfp) argument
1813 do_read_cache_page(struct address_space *mapping, pgoff_t index, int (*filler)(void *,struct page*), void *data, gfp_t gfp) argument
1865 read_cache_page_async(struct address_space *mapping, pgoff_t index, int (*filler)(void *,struct page*), void *data) argument
1897 read_cache_page_gfp(struct address_space *mapping, pgoff_t index, gfp_t gfp) argument
1919 read_cache_page(struct address_space *mapping, pgoff_t index, int (*filler)(void *,struct page*), void *data) argument
2312 grab_cache_page_write_begin(struct address_space *mapping, pgoff_t index, unsigned flags) argument
[all...]
H A Dmemory.c684 pgoff_t index; local
710 index = linear_page_index(vma, addr);
719 "addr:%p vm_flags:%08lx anon_vma:%p mapping:%p index:%lx\n",
720 (void *)addr, vma->vm_flags, vma->anon_vma, mapping, index);
1144 * Each page->index must be checked when
1148 (page->index < details->first_index ||
1149 page->index > details->last_index))
1159 addr) != page->index)
1161 pgoff_to_pte(page->index));
2552 vmf.pgoff = old_page->index;
[all...]
H A Dshmem.c303 * @index: index of the page to find
317 * For pages with index > SHMEM_NR_DIRECT there is the pointer
337 static swp_entry_t *shmem_swp_entry(struct shmem_inode_info *info, unsigned long index, struct page **page) argument
343 if (index < SHMEM_NR_DIRECT) {
345 return info->i_direct+index;
355 index -= SHMEM_NR_DIRECT;
356 offset = index % ENTRIES_PER_PAGE;
357 index /= ENTRIES_PER_PAGE;
360 if (index >
411 shmem_swp_alloc(struct shmem_inode_info *info, unsigned long index, enum sgp_type sgp) argument
1053 unsigned long index; local
1691 pgoff_t index = pos >> PAGE_CACHE_SHIFT; local
1717 unsigned long index, offset; local
3060 shmem_read_mapping_page_gfp(struct address_space *mapping, pgoff_t index, gfp_t gfp) argument
[all...]
H A Dslab.c305 * it. Mostly the same as what is in linux/slab.h except it returns an index.
1423 static void __init set_up_list3s(struct kmem_cache *cachep, int index) argument
1428 cachep->nodelists[node] = &initkmem_list3[index + node];
H A Dslub.c286 /* Determine object index from a given position */
2797 * Conversion table for small slabs sizes / 8 to the index in the
2836 int index; local
2842 index = size_index[size_index_elem(size)];
2844 index = fls(size - 1);
2848 return kmalloc_dma_caches[index];
2851 return kmalloc_caches[index];
3246 * handle the index determination for the smaller caches.
H A Dpage_alloc.c1373 /* The ALLOC_WMARK bits are used as an index to zone->watermark */
1601 int i; /* index of *z in zonelist zones */
1623 int i; /* index of *z in zonelist zones */
3794 static int __meminit next_active_region_index_in_nid(int index, int nid) argument
3796 for (index = index + 1; index < nr_nodemap_entries; index++)
3797 if (nid == MAX_NUMNODES || early_node_map[index].nid == nid)
3798 return index;
3905 previous_active_region_index_in_nid(int index, int nid) argument
[all...]

Completed in 131 milliseconds