Skip to content

Commit 6a6ce20

Browse files
Matthew Wilcox (Oracle)gregkh
authored andcommitted
9p: Add a migrate_folio method
commit 03ddd77 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: 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]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 7bdd712 commit 6a6ce20

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
@@ -160,4 +160,5 @@ const struct address_space_operations v9fs_addr_operations = {
160160
.invalidate_folio = netfs_invalidate_folio,
161161
.direct_IO = noop_direct_IO,
162162
.writepages = netfs_writepages,
163+
.migrate_folio = filemap_migrate_folio,
163164
};

0 commit comments

Comments
 (0)