diff options
author | 2024-08-21 20:34:37 +0100 | |
---|---|---|
committer | 2024-09-03 21:15:44 -0700 | |
commit | 32f51ead3d7771cdec29f75e08d50a76d2c6253d (patch) | |
tree | 6e0a9b32d4ee97c7bbcb41d6228dc12390f92067 /include/linux/page-flags.h | |
parent | mm: remove PageReadahead (diff) | |
download | linux-rng-32f51ead3d7771cdec29f75e08d50a76d2c6253d.tar.xz linux-rng-32f51ead3d7771cdec29f75e08d50a76d2c6253d.zip |
mm: remove PageSwapCache
This flag is now only used on folios, so we can remove all the page
accessors and reword the comments that refer to them.
Link: https://lkml.kernel.org/r/20240821193445.2294269-5-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'include/linux/page-flags.h')
-rw-r--r-- | include/linux/page-flags.h | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/include/linux/page-flags.h b/include/linux/page-flags.h index 71444223d630..b31d2c50b6f0 100644 --- a/include/linux/page-flags.h +++ b/include/linux/page-flags.h @@ -574,15 +574,10 @@ static __always_inline bool folio_test_swapcache(const struct folio *folio) test_bit(PG_swapcache, const_folio_flags(folio, 0)); } -static __always_inline bool PageSwapCache(const struct page *page) -{ - return folio_test_swapcache(page_folio(page)); -} - -SETPAGEFLAG(SwapCache, swapcache, PF_NO_TAIL) -CLEARPAGEFLAG(SwapCache, swapcache, PF_NO_TAIL) +FOLIO_SET_FLAG(swapcache, FOLIO_HEAD_PAGE) +FOLIO_CLEAR_FLAG(swapcache, FOLIO_HEAD_PAGE) #else -PAGEFLAG_FALSE(SwapCache, swapcache) +FOLIO_FLAG_FALSE(swapcache) #endif PAGEFLAG(Unevictable, unevictable, PF_HEAD) |