Re: [PATCH v1 03/10] mm: fs: remove filemap_nr_thps*() functions and their users

From: Lance Yang

Date: Fri Mar 27 2026 - 05:34:50 EST




On 2026/3/27 09:42, Zi Yan wrote:
They are used by READ_ONLY_THP_FOR_FS to handle writes to FSes without
large folio support, so that read-only THPs created in these FSes are not
seen by the FSes when the underlying fd becomes writable. Now read-only PMD
THPs only appear in a FS with large folio support and the supported orders
include PMD_ORDRE.

Signed-off-by: Zi Yan <ziy@xxxxxxxxxx>
---

LGTM, feel free to add:

Reviewed-by: Lance Yang <lance.yang@xxxxxxxxx>