On 12/7/23 11:06 AM, Kent Overstreet wrote: > On Thu, Dec 07, 2023 at 10:57:25AM -0700, Jens Axboe wrote: >> On 12/6/23 4:27 PM, Kent Overstreet wrote: >>> On Wed, Dec 06, 2023 at 03:40:38PM -0700, Jens Axboe wrote: >>>> On 12/6/23 2:34 PM, Kent Overstreet wrote: >>>>> On Wed, Nov 22, 2023 at 06:28:13PM -0500, Kent Overstreet wrote: >>>>>> This patch reworks bio_for_each_segment_all() to be more inline with how >>>>>> the other bio iterators work: >>>>>> >>>>>> - bio_iter_all_peek() now returns a synthesized bio_vec; we don't stash >>>>>> one in the iterator and pass a pointer to it - bad. This way makes it >>>>>> clearer what's a constructed value vs. a reference to something >>>>>> pre-existing, and it also will help with cleaning up and >>>>>> consolidating code with bio_for_each_folio_all(). >>>>>> >>>>>> - We now provide bio_for_each_segment_all_continue(), for squashfs: >>>>>> this makes their code clearer. >>>>> >>>>> Jens, can we _please_ get this series merged so bcachefs isn't reaching >>>>> into bio/bvec internals? >>>> >>>> Haven't gotten around to review it fully yet, and nobody else has either >>>> fwiw. Would be nice with some reviews. >>> >>> Well, there was quite a bit of back and forth before, mainly over code >>> size - which was addressed; and the only tricky parts were to squashfs >>> which Phillip looked at and tested. >> >> Would be nice to have that reflected in the commit, and would also be >> really nice to have the ext4 and iomap folks at least take a gander at >> patch 2 as well and ack it. > > I've tested it thoroughly and those changes were purely mechanical. That's great, but it would still be prudent to ensure they've seen it. And adding the review/whatever from Phillip. -- Jens Axboe