On Sun, Jan 08, 2023 at 05:56:40PM +0100, Christoph Hellwig wrote: > + memset(&disk_super->magic, 0, len); > + set_page_dirty(virt_to_page(disk_super)); Could we make this: folio_mark_dirty(virt_to_folio(disk_super)); Other than that, looks good.
On Sun, Jan 08, 2023 at 05:56:40PM +0100, Christoph Hellwig wrote: > + memset(&disk_super->magic, 0, len); > + set_page_dirty(virt_to_page(disk_super)); Could we make this: folio_mark_dirty(virt_to_folio(disk_super)); Other than that, looks good.