Re: [RFC PATCH v5 4/4] mm/shmem: split large folios only on -E2BIG
"David Hildenbrand (Arm)" <[email protected]> Thu, 6 Aug 2026 15:59:46 +0200
| Newsgroups | org.kernel.vger.cgroups,org.kernel.vger.linux-kernel,org.kvack.linux-mm |
|---|---|
| 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 <[email protected]> > Reviewed-by: Baolin Wang <[email protected]> > Signed-off-by: Xueyuan Chen <[email protected]> > --- Acked-by: David Hildenbrand (Arm) <[email protected]> -- Cheers, David