diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2023-12-13 22:58:40 +0100 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2023-12-29 20:58:32 +0100 |
commit | 69fe7d67cb0c6eeab3d4c9a3bf950f9d12af4719 (patch) | |
tree | da7d7b707c9d15184ebcb0fac73ed1500a3fce4e /mm/swap.h | |
parent | mm: convert swap_readpage() to swap_read_folio() (diff) | |
download | linux-69fe7d67cb0c6eeab3d4c9a3bf950f9d12af4719.tar.xz 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.h | 2 |
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; |