Skip to content

Commit 9381666

Browse files
Christoph Hellwigsmfrench
authored andcommitted
cifs: wire up >migrate_folio
CIFS does not use page private data that needs migration, so it can just wire up filemap_migrate_folio. This prepares for removing ->writepage, which is used as a fallback if no migrate_folio method is set. Signed-off-by: Christoph Hellwig <[email protected]> Reviewed-by: Paulo Alcantara (SUSE) <[email protected]> Signed-off-by: Steve French <[email protected]>
1 parent 64ce47c commit 9381666

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

fs/cifs/file.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5240,10 +5240,10 @@ const struct address_space_operations cifs_addr_ops = {
52405240
.direct_IO = cifs_direct_io,
52415241
.invalidate_folio = cifs_invalidate_folio,
52425242
.launder_folio = cifs_launder_folio,
5243+
.migrate_folio = filemap_migrate_folio,
52435244
/*
5244-
* TODO: investigate and if useful we could add an cifs_migratePage
5245-
* helper (under an CONFIG_MIGRATION) in the future, and also
5246-
* investigate and add an is_dirty_writeback helper if needed
5245+
* TODO: investigate and if useful we could add an is_dirty_writeback
5246+
* helper if needed
52475247
*/
52485248
.swap_activate = cifs_swap_activate,
52495249
.swap_deactivate = cifs_swap_deactivate,
@@ -5264,4 +5264,5 @@ const struct address_space_operations cifs_addr_ops_smallbuf = {
52645264
.release_folio = cifs_release_folio,
52655265
.invalidate_folio = cifs_invalidate_folio,
52665266
.launder_folio = cifs_launder_folio,
5267+
.migrate_folio = filemap_migrate_folio,
52675268
};

0 commit comments

Comments
 (0)