diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2021-11-28 16:14:50 -0500 |
---|---|---|
committer | Matthew Wilcox (Oracle) <willy@infradead.org> | 2022-01-04 13:15:33 -0500 |
commit | bb2e98b613a3c76c904dfa82eb4b86773817598b (patch) | |
tree | d1a34986bb1356cc9fb14dfbed72ae3eaa2ee2e1 /include/linux/pagemap.h | |
parent | f5e6429a51145178a3593ec83865a731fd7d01d3 (diff) | |
download | lwn-bb2e98b613a3c76c904dfa82eb4b86773817598b.tar.gz lwn-bb2e98b613a3c76c904dfa82eb4b86773817598b.zip |
filemap: Remove thp_contains()
This function is now unused, so delete it.
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: William Kucharski <william.kucharski@oracle.com>
Diffstat (limited to 'include/linux/pagemap.h')
-rw-r--r-- | include/linux/pagemap.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/include/linux/pagemap.h b/include/linux/pagemap.h index 3f26b191ede3..8c2cad7f0c36 100644 --- a/include/linux/pagemap.h +++ b/include/linux/pagemap.h @@ -512,15 +512,6 @@ static inline struct page *grab_cache_page_nowait(struct address_space *mapping, mapping_gfp_mask(mapping)); } -/* Does this page contain this index? */ -static inline bool thp_contains(struct page *head, pgoff_t index) -{ - /* HugeTLBfs indexes the page cache in units of hpage_size */ - if (PageHuge(head)) - return head->index == index; - return page_index(head) == (index & ~(thp_nr_pages(head) - 1UL)); -} - #define swapcache_index(folio) __page_file_index(&(folio)->page) /** |