Return-Path: Received: from mail-pg1-f196.google.com ([209.85.215.196]:39863 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389008AbeLUOVy (ORCPT ); Fri, 21 Dec 2018 09:21:54 -0500 Received: by mail-pg1-f196.google.com with SMTP id w6so2589284pgl.6 for ; Fri, 21 Dec 2018 06:21:53 -0800 (PST) Subject: Re: [PATCH 17/22] block: implement bio helper to add iter bvec pages to bio To: Christoph Hellwig Cc: linux-fsdevel@vger.kernel.org, linux-aio@kvack.org, viro@zeniv.linux.org.uk References: <20181218154230.3120-1-axboe@kernel.dk> <20181218154230.3120-18-axboe@kernel.dk> <20181221113239.GF7319@lst.de> From: Jens Axboe Message-ID: <9dcffc35-3193-2cde-ab79-70313c27be11@kernel.dk> Date: Fri, 21 Dec 2018 07:21:50 -0700 MIME-Version: 1.0 In-Reply-To: <20181221113239.GF7319@lst.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On 12/21/18 4:32 AM, Christoph Hellwig wrote: > I don't think we need the loop for the ITER_BVEC case as bio_Add_page > will only fail when the bio is full. Something like this would simplify > the implementation: Then how would multi bvec iters work? With this change, we'd do one page at the time. The bvec iter can be much bigger than that. -- Jens Axboe