aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mm/migrate.c
diff options
context:
space:
mode:
authorChristian Brauner <brauner@kernel.org>2024-10-04 09:24:28 +0200
committerChristian Brauner <brauner@kernel.org>2024-10-04 09:24:28 +0200
commitc6bbfc7ce1567eb7928f22d92b6ad34d8e4ea22b (patch)
tree88ad5b79876361b117c42e3ed9daf68c57372d29 /mm/migrate.c
parentLinux 6.12-rc1 (diff)
parentmigrate: Remove references to Private2 (diff)
downloadwireguard-linux-c6bbfc7ce1567eb7928f22d92b6ad34d8e4ea22b.tar.xz
wireguard-linux-c6bbfc7ce1567eb7928f22d92b6ad34d8e4ea22b.zip
Merge patch series "Filesystem page flags cleanup"
Matthew Wilcox (Oracle) <willy@infradead.org> says: The first four patches continue the work begun in 02e1960aafac to make the mappedtodisk/owner_2 flag available to filesystems which don't use buffer heads. The last two remove uses of Private2 (we're achingly close to being rid of it entirely, but that doesn't seem like it'll land this merge window). * patches from https://lore.kernel.org/r/20241002040111.1023018-1-willy@infradead.org: migrate: Remove references to Private2 ceph: Remove call to PagePrivate2() btrfs: Switch from using the private_2 flag to owner_2 mm: Remove PageMappedToDisk nilfs2: Convert nilfs_copy_buffer() to use folios fs: Move clearing of mappedtodisk to buffer.c Link: https://lore.kernel.org/r/20241002040111.1023018-1-willy@infradead.org Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to '')
-rw-r--r--mm/migrate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/migrate.c b/mm/migrate.c
index df91248755e4..21264c24a404 100644
--- a/mm/migrate.c
+++ b/mm/migrate.c
@@ -472,7 +472,7 @@ static int folio_expected_refs(struct address_space *mapping,
* The number of remaining references must be:
* 1 for anonymous folios without a mapping
* 2 for folios with a mapping
- * 3 for folios with a mapping and PagePrivate/PagePrivate2 set.
+ * 3 for folios with a mapping and the private flag set.
*/
static int __folio_migrate_mapping(struct address_space *mapping,
struct folio *newfolio, struct folio *folio, int expected_count)
@@ -786,7 +786,7 @@ static int __migrate_folio(struct address_space *mapping, struct folio *dst,
* @mode: How to migrate the page.
*
* Common logic to directly migrate a single LRU folio suitable for
- * folios that do not use PagePrivate/PagePrivate2.
+ * folios that do not have private data.
*
* Folios are locked upon entry and exit.
*/