Skip to content

Commit 03ddd77

Browse files
Matthew Wilcox (Oracle)brauner
authored andcommitted
9p: Add a migrate_folio method
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: 80105ed (9p: Use netfslib read/write_iter) Cc: [email protected] Cc: David Howells <[email protected]> Cc: [email protected] Signed-off-by: "Matthew Wilcox (Oracle)" <[email protected]> Link: https://lore.kernel.org/r/[email protected] Acked-by: Dominique Martinet <[email protected]> Reviewed-by: David Howells <[email protected]> Signed-off-by: Christian Brauner <[email protected]>
1 parent 0af2f6b commit 03ddd77

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/9p/vfs_addr.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,4 +164,5 @@ const struct address_space_operations v9fs_addr_operations = {
164164
.invalidate_folio = netfs_invalidate_folio,
165165
.direct_IO = noop_direct_IO,
166166
.writepages = netfs_writepages,
167+
.migrate_folio = filemap_migrate_folio,
167168
};

0 commit comments

Comments
 (0)