Re: [PATCH v2 35/46] mm/filemap: Add folio_mkwrite_check_truncate()
From: Matthew Wilcox
Date: Wed Jun 23 2021 - 09:20:27 EST
On Wed, Jun 23, 2021 at 11:47:58AM +0200, Christoph Hellwig wrote:
> On Tue, Jun 22, 2021 at 01:15:40PM +0100, Matthew Wilcox (Oracle) wrote:
> > This is the folio equivalent of page_mkwrite_check_truncate().
> >
> > Signed-off-by: Matthew Wilcox (Oracle) <willy@xxxxxxxxxxxxx>
>
> Any reason that page_mkwrite_check_truncate isn't turned into a wrapper?
It'd introduce an extra call to page_folio() for no actual benefit