diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2024-08-21 21:34:37 +0200 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2024-09-04 06:15:44 +0200 |
commit | 32f51ead3d7771cdec29f75e08d50a76d2c6253d (patch) | |
tree | 6e0a9b32d4ee97c7bbcb41d6228dc12390f92067 /mm/migrate.c | |
parent | mm: remove PageReadahead (diff) | |
download | linux-32f51ead3d7771cdec29f75e08d50a76d2c6253d.tar.xz linux-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 'mm/migrate.c')
-rw-r--r-- | mm/migrate.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mm/migrate.c b/mm/migrate.c index 76cfc6c42eb3..2250baa85ac2 100644 --- a/mm/migrate.c +++ b/mm/migrate.c @@ -639,7 +639,8 @@ void folio_migrate_flags(struct folio *newfolio, struct folio *folio) folio_migrate_ksm(newfolio, folio); /* * Please do not reorder this without considering how mm/ksm.c's - * ksm_get_folio() depends upon ksm_migrate_page() and PageSwapCache(). + * ksm_get_folio() depends upon ksm_migrate_page() and the + * swapcache flag. */ if (folio_test_swapcache(folio)) folio_clear_swapcache(folio); |