summaryrefslogtreecommitdiffstats
path: root/mm/swap.h
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2023-12-13 21:58:40 +0000
committerAndrew Morton <akpm@linux-foundation.org>2023-12-29 11:58:32 -0800
commit69fe7d67cb0c6eeab3d4c9a3bf950f9d12af4719 (patch)
treeda7d7b707c9d15184ebcb0fac73ed1500a3fce4e /mm/swap.h
parentc9bdf768dd9319d2d80a334646e2c8116af9e430 (diff)
downloadlinux-69fe7d67cb0c6eeab3d4c9a3bf950f9d12af4719.tar.gz
linux-69fe7d67cb0c6eeab3d4c9a3bf950f9d12af4719.tar.bz2
linux-69fe7d67cb0c6eeab3d4c9a3bf950f9d12af4719.zip
mm: remove page_swap_info()
It's more efficient to get the swap_info_struct by calling swp_swap_info() directly. Link: https://lkml.kernel.org/r/20231213215842.671461-12-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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/swap.h b/mm/swap.h
index 859ae8f0fd2d..6bf25342589f 100644
--- a/mm/swap.h
+++ b/mm/swap.h
@@ -60,7 +60,7 @@ struct page *swapin_readahead(swp_entry_t entry, gfp_t flag,
static inline unsigned int folio_swap_flags(struct folio *folio)
{
- return page_swap_info(&folio->page)->flags;
+ return swp_swap_info(folio->swap)->flags;
}
#else /* CONFIG_SWAP */
struct swap_iocb;