Thread (3 messages) 3 messages, 2 authors, 2021-08-13

Re: [RFC PATCH] folio: Add a function to get the host inode for a folio

flat view

From: David Howells <dhowells@redhat.com>
Date: 2021-08-13 10:15:17

David Howells [off-list ref] wrote:
quoted hunk ↗ jump to hunk
+static inline struct inode *folio_inode(struct folio *folio)
+{
+	return folio_mapping(folio)->host;
+}
I've changed my mind on how I implemented it.  I think that if this is
intended to be used from within filesystems, then it should be calling
folio_file_mapping() instead - or possibly just doing folio->mapping->host.

folio_mapping() seems unnecessarily complex for a page a filesystem is pretty
sure belongs to it.

David

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help