gfs2: Add a migrate_folio operation for journalled files
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 3 Apr 2024 17:23:49 +0000 (18:23 +0100)
committerAndreas Gruenbacher <agruenba@redhat.com>
Fri, 3 May 2024 19:01:02 +0000 (21:01 +0200)
commitb844048011d3c771e7f8ae9354450f4e0c5c041a
tree3c41e20a81b4430f346c2858def82f6358ec3479
parent75377ae754c93a312e8430e9c159db3273bb679c
gfs2: Add a migrate_folio operation for journalled files

For journalled data, folio migration currently works by writing the folio
back, freeing the folio and faulting the new folio back in.  We can
bypass that by telling the migration code to migrate the buffer_heads
attached to our folios.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
fs/gfs2/aops.c