From: Matthew Wilcox <willy@infradead.org>
To: Andrew Morton <akpm@linux-foundation.org>,
Jane Chu <jane.chu@oracle.com>,
linux-mm@kvack.org
Cc: Muchun Song <muchun.song@linux.dev>,
Oscar Salvador <osalvador@suse.de>,
David Hildenbrand <david@kernel.org>,
Miaohe Lin <linmiaohe@huawei.com>,
Naoya Horiguchi <nao.horiguchi@gmail.com>,
Jan Kara <jack@suse.cz>,
linux-fsdevel@vger.kernel.org,
Christian Brauner <christian@brauner.io>
Subject: Re: [PATCH v3 9/9] hugetlb: replace hugetlbfs_read_iter() with generic_file_read_iter()
Date: Tue, 14 Jul 2026 19:44:16 +0100 [thread overview]
Message-ID: <alaDgCdMQvrfUL8f@casper.infradead.org> (raw)
In-Reply-To: <20260714180840.3731244-10-willy@infradead.org>
On Tue, Jul 14, 2026 at 07:08:39PM +0100, Matthew Wilcox (Oracle) wrote:
> From: Jane Chu <jane.chu@oracle.com>
>
> generic_file_read_iter() now handles hugetlb poison, hugetlb page
> size and missing folios correctly, so we no longer need a separate
> hugetlbfs_read_iter().
>
> Signed-off-by: Jane Chu <jane.chu@oracle.com>
> Co-developed-by: Matthew Wilcox (Oracle) <willy@infradead.org>
> Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
> ---
> fs/hugetlbfs/inode.c | 109 +------------------------------------------
> 1 file changed, 1 insertion(+), 108 deletions(-)
What I was _testing_ had this hunk in that I neglected to commit to git
before running format-patch:
@@ -784,6 +784,7 @@ static void hugetlbfs_init_regular_inode(struct inode *inode)
inode->i_op = &hugetlbfs_inode_operations;
inode->i_fop = &hugetlbfs_file_operations;
mapping_set_folio_order_range(inode->i_mapping, order, order);
+ mapping_set_authoritative(inode->i_mapping);
}
/*
prev parent reply other threads:[~2026-07-14 18:44 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-14 18:08 [PATCH v3 0/9] Use generic_file_read_iter() in hugetlbfs Matthew Wilcox (Oracle)
2026-07-14 18:08 ` [PATCH v3 1/9] mm: Rename folio_contain_hwpoison_page() to folio_has_hwpoison_page() Matthew Wilcox (Oracle)
2026-07-14 18:08 ` [PATCH v3 2/9] hugetlb: Mark some function arguments as const Matthew Wilcox (Oracle)
2026-07-14 18:08 ` [PATCH v3 3/9] memory-failure: Track hugetlb poison in a hash table Matthew Wilcox (Oracle)
2026-07-14 18:08 ` [PATCH v3 4/9] mm: Handle hugetlb correctly in is_page_hwpoison() Matthew Wilcox (Oracle)
2026-07-14 18:08 ` [PATCH v3 5/9] filemap: Add hwpoison handling to filemap_read() Matthew Wilcox (Oracle)
2026-07-14 18:08 ` [PATCH v3 6/9] filemap: Remove checks in mapping_set_folio_order_range() Matthew Wilcox (Oracle)
2026-07-14 18:43 ` Matthew Wilcox
2026-07-14 18:08 ` [PATCH v3 7/9] hugetlb: Set mapping folio order Matthew Wilcox (Oracle)
2026-07-14 18:08 ` [PATCH v3 8/9] filemap: Add support for authoritative mappings Matthew Wilcox (Oracle)
2026-07-14 18:08 ` [PATCH v3 9/9] hugetlb: replace hugetlbfs_read_iter() with generic_file_read_iter() Matthew Wilcox (Oracle)
2026-07-14 18:44 ` Matthew Wilcox [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=alaDgCdMQvrfUL8f@casper.infradead.org \
--to=willy@infradead.org \
--cc=akpm@linux-foundation.org \
--cc=christian@brauner.io \
--cc=david@kernel.org \
--cc=jack@suse.cz \
--cc=jane.chu@oracle.com \
--cc=linmiaohe@huawei.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=muchun.song@linux.dev \
--cc=nao.horiguchi@gmail.com \
--cc=osalvador@suse.de \
/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