Re: [RFC PATCH v5 4/4] mm/shmem: split large folios only on -E2BIG
"David Hildenbrand (Arm)" <[email protected]>
| Newsgroups | gmane.linux.kernel.cgroups,gmane.linux.kernel.mm,gmane.linux.kernel |
|---|---|
| Message-ID | <[email protected]> |
On 7/30/26 14:23, Xueyuan Chen wrote: > shmem_writeout() currently splits a large folio on every > folio_alloc_swap() failure. With the refined return-value contract, only > -E2BIG indicates that splitting might allow smaller folios to be swapped > out. > > Enter the split fallback only for -E2BIG. For -ENOSPC and -ENOMEM, > redirty and reactivate the folio as before. > > Suggested-by: Baolin Wang <baolin.wang-KPsoFbNs7GizrGE5bRqYAgC/[email protected]> > Reviewed-by: Baolin Wang <baolin.wang-KPsoFbNs7GizrGE5bRqYAgC/[email protected]> > Signed-off-by: Xueyuan Chen <[email protected]> > --- Acked-by: David Hildenbrand (Arm) <[email protected]> -- Cheers, David