* Patch "9p: Add a migrate_folio method" has been added to the 6.12-stable tree
@ 2025-06-17 14:31 gregkh
0 siblings, 0 replies; only message in thread
From: gregkh @ 2025-06-17 14:31 UTC (permalink / raw)
To: asmadeus, brauner, dhowells, gregkh, v9fs, willy; +Cc: stable-commits
This 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 <stable@vger.kernel.org> know about it.
From 03ddd7725ed1b39cf9251e1a420559f25dac49b3 Mon Sep 17 00:00:00 2001
From: "Matthew Wilcox (Oracle)" <willy@infradead.org>
Date: Wed, 2 Apr 2025 15:59:55 +0100
Subject: 9p: Add a migrate_folio method
From: Matthew Wilcox (Oracle) <willy@infradead.org>
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.
Fixes: 80105ed2fd27 (9p: Use netfslib read/write_iter)
Cc: stable@vger.kernel.org
Cc: David Howells <dhowells@redhat.com>
Cc: v9fs@lists.linux.dev
Signed-off-by: "Matthew Wilcox (Oracle)" <willy@infradead.org>
Link: https://lore.kernel.org/r/20250402150005.2309458-2-willy@infradead.org
Acked-by: Dominique Martinet <asmadeus@codewreck.org>
Reviewed-by: David Howells <dhowells@redhat.com>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
fs/9p/vfs_addr.c | 1 +
1 file changed, 1 insertion(+)
--- a/fs/9p/vfs_addr.c
+++ b/fs/9p/vfs_addr.c
@@ -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 willy@infradead.org 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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-06-17 14:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-17 14:31 Patch "9p: Add a migrate_folio method" has been added to the 6.12-stable tree gregkh
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox