diff options
| author | Shivank Garg <[email protected]> | 2025-04-30 10:01:52 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2025-05-13 06:50:47 +0000 |
| commit | 906d7ce3b59d62cf017ca602a0dfcb29413b8872 (patch) | |
| tree | ca289579e15598f445fe3cc70083af0264de892a /lib/xarray.c | |
| parent | mm: add folio_expected_ref_count() for reference count calculation (diff) | |
| download | kernel-906d7ce3b59d62cf017ca602a0dfcb29413b8872.tar.gz kernel-906d7ce3b59d62cf017ca602a0dfcb29413b8872.zip | |
jfs: implement migrate_folio for jfs_metapage_aops
Add the missing migrate_folio operation to jfs_metapage_aops to fix
warnings during memory compaction. These warnings were introduced by
commit 7ee3647243e5 ("migrate: Remove call to ->writepage") which added
explicit warnings when filesystems don't implement migrate_folio.
System reports following warnings:
jfs_metapage_aops does not implement migrate_folio
WARNING: CPU: 0 PID: 6870 at mm/migrate.c:955 fallback_migrate_folio mm/migrate.c:953 [inline]
WARNING: CPU: 0 PID: 6870 at mm/migrate.c:955 move_to_new_folio+0x70e/0x840 mm/migrate.c:1007
Implement metapage_migrate_folio() which handles both single and multiple
metapages per page configurations.
[[email protected]: change comment style]
Link: https://lkml.kernel.org/r/[email protected]
[[email protected]: fix build]
[[email protected]: remove redundant NULL check in __metapage_migrate_folio()]
Link: https://lkml.kernel.org/r/[email protected]
Link: https://lkml.kernel.org/r/[email protected]
Fixes: 35474d52c605 ("jfs: Convert metapage_writepage to metapage_write_folio")
Signed-off-by: Shivank Garg <[email protected]>
Reported-by: [email protected]
Closes: https://lore.kernel.org/all/[email protected]
Tested-by: [email protected]
Cc: Alistair Popple <[email protected]>
Cc: Dave Kleikamp <[email protected]>
Cc: David Hildenbrand <[email protected]>
Cc: Donet Tom <[email protected]>
Cc: Jane Chu <[email protected]>
Cc: Kefeng Wang <[email protected]>
Cc: Matthew Wilcox <[email protected]>
Cc: Zi Yan <[email protected]>
Cc: Dan Carpenter <[email protected]>
Cc: kernel test robot <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'lib/xarray.c')
0 files changed, 0 insertions, 0 deletions
