[Linux-cachefs] [PATCH 3/6] folio: Add a function to get the host inode for a folio

David Howells dhowells at redhat.com
Tue Aug 24 14:11:45 UTC 2021


Matthew Wilcox <willy at infradead.org> wrote:

> > +static inline struct inode *folio_inode(struct folio *folio)
> > +{
> > +	return folio_file_mapping(folio)->host;
> 
> You're contradicting yourself here.  If you're allowed to call this
> function for swap cache pages, then the documentation needs to change.
> If you're not, then we can just use folio->mapping->host.

Um.  I don't know.  I'll do the latter, then, for now.

David




More information about the Linux-cachefs mailing list