Re: [PATCH v2 44/46] mm/filemap: Convert mapping_get_entry to return a folio

From: Christoph Hellwig
Date: Wed Jun 23 2021 - 07:33:33 EST


On Tue, Jun 22, 2021 at 01:15:49PM +0100, Matthew Wilcox (Oracle) wrote:
> - * Return: The head page or shadow entry, %NULL if nothing is found.
> + * Return: The folio, swap or shadow entry, %NULL if nothing is found.

This (old and new) reads a little weird, given that it returns a
struct folio, even if that happens to be a magic entry.

Otherwise looks good:

Reviewed-by: Christoph Hellwig <hch@xxxxxx>