diff options
author | Christoph Hellwig <hch@lst.de> | 2022-11-16 14:18:33 +0100 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2022-12-08 09:51:53 -0600 |
commit | 9381666e289852f93be9d7f4f7844017e04f6315 (patch) | |
tree | 2a6e7e4cbead912e68feca27abbe1503d1320954 /fs/cifs | |
parent | 64ce47cb1b29d7d6aab6dcc287ae1fddb4876bd5 (diff) | |
download | linux-stable-9381666e289852f93be9d7f4f7844017e04f6315.tar.gz linux-stable-9381666e289852f93be9d7f4f7844017e04f6315.tar.bz2 linux-stable-9381666e289852f93be9d7f4f7844017e04f6315.zip |
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 <hch@lst.de>
Reviewed-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs')
-rw-r--r-- | fs/cifs/file.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/fs/cifs/file.c b/fs/cifs/file.c index cd9698209930..6be924caed39 100644 --- a/fs/cifs/file.c +++ b/fs/cifs/file.c @@ -5240,10 +5240,10 @@ const struct address_space_operations cifs_addr_ops = { .direct_IO = cifs_direct_io, .invalidate_folio = cifs_invalidate_folio, .launder_folio = cifs_launder_folio, + .migrate_folio = filemap_migrate_folio, /* - * TODO: investigate and if useful we could add an cifs_migratePage - * helper (under an CONFIG_MIGRATION) in the future, and also - * investigate and add an is_dirty_writeback helper if needed + * TODO: investigate and if useful we could add an is_dirty_writeback + * helper if needed */ .swap_activate = cifs_swap_activate, .swap_deactivate = cifs_swap_deactivate, @@ -5264,4 +5264,5 @@ const struct address_space_operations cifs_addr_ops_smallbuf = { .release_folio = cifs_release_folio, .invalidate_folio = cifs_invalidate_folio, .launder_folio = cifs_launder_folio, + .migrate_folio = filemap_migrate_folio, }; |