On Wed, Aug 09, 2017 at 08:06:24PM -0700, Dan Williams wrote: > I like it, but do you think we should switch to sbvec[<constant>] to > preclude pathological cases where nr_pages is large?
Yes, please. Then I'd like to see that the on-stack bio even matters for mpage_readpage / mpage_writepage. Compared to all the buffer head overhead the bio allocation should not actually matter in practice.