mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-04 20:19:47 +08:00
gfs2: Set .migrate_folio in gfs2_{rgrp,meta}_aops
Clears up the warning added in 7ee3647243
("migrate: Remove call to
->writepage") that occurs in various xfstests, causing "something found
in dmesg" failures.
[ 341.136573] gfs2_meta_aops does not implement migrate_folio
[ 341.136953] WARNING: CPU: 1 PID: 36 at mm/migrate.c:944 move_to_new_folio+0x2f8/0x300
Signed-off-by: Andrew Price <anprice@redhat.com>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
This commit is contained in:
parent
e7ffc0af0e
commit
5c8f12cf1e
@ -103,6 +103,7 @@ const struct address_space_operations gfs2_meta_aops = {
|
||||
.invalidate_folio = block_invalidate_folio,
|
||||
.writepages = gfs2_aspace_writepages,
|
||||
.release_folio = gfs2_release_folio,
|
||||
.migrate_folio = buffer_migrate_folio_norefs,
|
||||
};
|
||||
|
||||
const struct address_space_operations gfs2_rgrp_aops = {
|
||||
@ -110,6 +111,7 @@ const struct address_space_operations gfs2_rgrp_aops = {
|
||||
.invalidate_folio = block_invalidate_folio,
|
||||
.writepages = gfs2_aspace_writepages,
|
||||
.release_folio = gfs2_release_folio,
|
||||
.migrate_folio = buffer_migrate_folio_norefs,
|
||||
};
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user