Re: [PATCH RFC v2 2/7] mm: memory_failure: Allow truncate_error_folio to return MF_DELAYED

Lisa Wang
2026-04-03T22:32:00Z

> On Mon, Mar 30, 2026 at 03:02:01PM +0800, Miaohe Lin wrote:
[...snip...]
> > --- a/mm/memory-failure.c
> > +++ b/mm/memory-failure.c
> > @@ -941,6 +941,8 @@ static int truncate_error_folio(struct folio *folio, unsigned long pfn,
> > if (mapping->a_ops->error_remove_folio) {
> > int err = mapping->a_ops->error_remove_folio(mapping, folio);
> >
> > + if (err == MF_DELAYED)
> > + return err;
>
> Will it be better to add a pr_info here to provide some information for users?
>
> Thanks.
> .
I think we don't need to add pr_info here; truncate_error_folio() always
leads to action_result, which already logs the recovery status.

Lisa