From: David Howells <dhowells@redhat.com>
To: willy@infradead.org
Cc: dhowells@redhat.com, linux-mm@kvack.org
Subject: Re: [RFC PATCH] folio: Add a function to get the host inode for a folio
Date: Fri, 13 Aug 2021 11:15:10 +0100 [thread overview]
Message-ID: <3565083.1628849710@warthog.procyon.org.uk> (raw)
In-Reply-To: <162880453171.3369675.3704943108660112470.stgit@warthog.procyon.org.uk>
David Howells <dhowells@redhat.com> wrote:
> +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
prev parent reply other threads:[~2021-08-13 10:15 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-12 21:42 David Howells
2021-08-12 22:44 ` Matthew Wilcox
2021-08-13 10:15 ` David Howells [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3565083.1628849710@warthog.procyon.org.uk \
--to=dhowells@redhat.com \
--cc=linux-mm@kvack.org \
--cc=willy@infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox