Linux 6.0 compat: Check for migratepage VFS (#17217)

The 6.0 kernel removes the 'migratepage' VFS op. Check for
migratepage.

Signed-off-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Rob Norris <robn@despairlabs.com>
Reviewed-by: Alexander Motin <mav@FreeBSD.org
This commit is contained in:
Tony Hutter
2025-04-10 17:36:31 -07:00
parent 81de1eae4c
commit 20f00819f3
3 changed files with 30 additions and 1 deletions
+1 -1
View File
@@ -1058,7 +1058,7 @@ const struct address_space_operations zpl_address_space_operations = {
#endif
#ifdef HAVE_VFS_MIGRATE_FOLIO
.migrate_folio = migrate_folio,
#else
#elif defined(HAVE_VFS_MIGRATEPAGE)
.migratepage = migrate_page,
#endif
};