Re: [PATCHv3 1/2] mm/memory: Do not populate page table entries beyond i_size

From: Kiryl Shutsemau

Date: Wed Oct 29 2025 - 06:23:10 EST


On Wed, Oct 29, 2025 at 02:45:52AM -0700, Hugh Dickins wrote:
> On Tue, 28 Oct 2025, Kiryl Shutsemau wrote:
> >
> > > Also, is [2/2] to be backported? The changelog makes it sound that way,
> > > but no Fixes: was identified?
> >
> > Looking at split-on-truncate history, looks like this is the right
> > commit to point to:
> >
> > Fixes: b9a8a4195c7d ("truncate,shmem: Handle truncates that split large folios")
>
> I agree that's the right Fixee for 2/2: the one which introduced
> splitting a large folio to non-shmem filesystems in 5.17.
>
> But you're giving yourself too hard a time of backporting with your
> 5.10 Fixee 01c70267053d for 1/2: the only filesystem which set the
> flag then was tmpfs, which you're now excepting. The flag got
> renamed later (in 5.16) and then in 5.17 at last there was another
> filesystem to set it. So, this 1/2 would be
>
> Fixes: 6795801366da ("xfs: Support large folios")

Good point.

--
Kiryl Shutsemau / Kirill A. Shutemov