Patch "9p: Add a migrate_folio method" has been added to the 6.12-stable tree
[email protected]
AppliedThis is a note to let you know that I've just added the patch titled
9p: Add a migrate_folio method
to the 6.12-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
9p-add-a-migrate_folio-method.patch
and it can be found in the queue-6.12 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
From 03ddd7725ed1b39cf9251e1a420559f25dac49b3 Mon Sep 17 00:00:00 2001
From: "Matthew Wilcox (Oracle)" <[email protected]>
Date: Wed, 2 Apr 2025 15:59:55 +0100
Subject: 9p: Add a migrate_folio method
From: Matthew Wilcox (Oracle) <[email protected]>
commit 03ddd7725ed1b39cf9251e1a420559f25dac49b3 upstream.
The migration code used to be able to migrate dirty 9p folios by writing them back using writepage. When the writepage method was removed, we neglected to add a migrate_folio method, which means that dirty 9p folios have been unmovable ever since. This reduced our success at defragmenting memory on machines which use 9p heavily.
--- fs/9p/vfs_addr.c | 1 + 1 file changed, 1 insertion(+)
fs/9p/vfs_addr.c +1 -0
@@ -160,4 +160,5 @@ const struct address_space_operations v9 .invalidate_folio = netfs_invalidate_folio, .direct_IO = noop_direct_IO, .writepages = netfs_writepages, + .migrate_folio = filemap_migrate_folio, };
Patches currently in stable-queue which might be from [email protected] are
queue-6.12/bio-fix-bio_first_folio-for-sparsemem-without-vmemma.patch queue-6.12/block-fix-bvec_set_folio-for-very-large-folios.patch queue-6.12/9p-add-a-migrate_folio-method.patch