summaryrefslogtreecommitdiffstats
path: root/mm/swap.h
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2022-09-02 20:46:34 +0100
committerAndrew Morton <akpm@linux-foundation.org>2022-10-03 14:02:51 -0700
commitcb691e2f28bc63b1a872aa593dd542ee796e8364 (patch)
tree600a6fd91392204fab1d4143d29e876225e663c6 /mm/swap.h
parent5a423081b2465d38baf2fcbbc19f77d211507061 (diff)
downloadlinux-stable-cb691e2f28bc63b1a872aa593dd542ee796e8364.tar.gz
linux-stable-cb691e2f28bc63b1a872aa593dd542ee796e8364.tar.bz2
linux-stable-cb691e2f28bc63b1a872aa593dd542ee796e8364.zip
mm: remove lookup_swap_cache()
All callers have now been converted to swap_cache_get_folio(), so we can remove this wrapper. Link: https://lkml.kernel.org/r/20220902194653.1739778-39-willy@infradead.org Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/swap.h')
-rw-r--r--mm/swap.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/mm/swap.h b/mm/swap.h
index ccd8d9a9ad36..cc08c459c619 100644
--- a/mm/swap.h
+++ b/mm/swap.h
@@ -41,9 +41,6 @@ void clear_shadow_from_swap_cache(int type, unsigned long begin,
unsigned long end);
struct folio *swap_cache_get_folio(swp_entry_t entry,
struct vm_area_struct *vma, unsigned long addr);
-struct page *lookup_swap_cache(swp_entry_t entry,
- struct vm_area_struct *vma,
- unsigned long addr);
struct page *find_get_incore_page(struct address_space *mapping, pgoff_t index);
struct page *read_swap_cache_async(swp_entry_t entry, gfp_t gfp_mask,
@@ -107,13 +104,6 @@ static inline struct folio *swap_cache_get_folio(swp_entry_t entry,
return NULL;
}
-static inline struct page *lookup_swap_cache(swp_entry_t swp,
- struct vm_area_struct *vma,
- unsigned long addr)
-{
- return NULL;
-}
-
static inline
struct page *find_get_incore_page(struct address_space *mapping, pgoff_t index)
{