Re: [PATCH] lib/scatterlist: fix sg_page_count and sg_dma_page_count
From: Jason Gunthorpe
Date: Wed Mar 11 2026 - 08:07:05 EST
On Wed, Mar 11, 2026 at 06:53:51AM +0000, Kasireddy, Vivek wrote:
> So, given the current situation, what is the right thing to do?
> Should we take your patch that brings back the pages array and treat it as
> a temporary fix until equivalent folio based APIs are available?
IMHO, yes. It saves memory, increases performance, fixes the bug and
uses the APIs properly.
Jason