aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/pagemap.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/include/linux/pagemap.h b/include/linux/pagemap.h
index 9ec3544baee2..fe0b29bf2df7 100644
--- a/include/linux/pagemap.h
+++ b/include/linux/pagemap.h
@@ -333,19 +333,6 @@ static inline struct page *grab_cache_page_nowait(struct address_space *mapping,
333 mapping_gfp_mask(mapping)); 333 mapping_gfp_mask(mapping));
334} 334}
335 335
336static inline struct page *find_subpage(struct page *page, pgoff_t offset)
337{
338 unsigned long mask;
339
340 if (PageHuge(page))
341 return page;
342
343 VM_BUG_ON_PAGE(PageTail(page), page);
344
345 mask = (1UL << compound_order(page)) - 1;
346 return page + (offset & mask);
347}
348
349struct page *find_get_entry(struct address_space *mapping, pgoff_t offset); 336struct page *find_get_entry(struct address_space *mapping, pgoff_t offset);
350struct page *find_lock_entry(struct address_space *mapping, pgoff_t offset); 337struct page *find_lock_entry(struct address_space *mapping, pgoff_t offset);
351unsigned find_get_entries(struct address_space *mapping, pgoff_t start, 338unsigned find_get_entries(struct address_space *mapping, pgoff_t start,