Re: [PATCH v11 26/33] mm/writeback: Add folio_wait_writeback()

From: David Howells
Date: Wed Jun 16 2021 - 06:30:58 EST


Matthew Wilcox (Oracle) <willy@xxxxxxxxxxxxx> wrote:

> + struct page *page = &folio->page;

Isn't that a layering violation? Should it be something like:

struct page *page = folio_head();

or:

struct page *page = folio_subpage(0);

maybe?