From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 254763309C; Thu, 7 Dec 2023 20:45:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="X99USWiJ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 38C09C433C8; Thu, 7 Dec 2023 20:45:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701981947; bh=sYQGssTPlpa20lbjLRapkdCgDOIj7sRJzFW5CjUHMbI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=X99USWiJWBAwJ+VC4spP2yULMtaNtSkqbt1K+gmlozAjNkUj10SDqOuy/hezUjcZv rqymWPito8296Ff41S+g+f9OY0XJkNNSRxj8v/ujY8qlmViZroXundj5ZgPLKMgi1o jMGwEGBe38sUY3ThKl/guF72+tE9NzkOoPGl1gHjTSl1Vfp82Ofx0ieCYyEJIhhJcy vISs1DK/3+FnyymvYyy87x44BF0CsavXDI02bUHpQubCN1JcmIHY/z9jUfGWGyqg78 3MjBEzFGlztw6BNeL/vrDUNj/KbdSWPD7LrjQFNjltfcsXNlFzeHZRoPxpnRSORprc EHhsCCOFYIeJg== Date: Thu, 7 Dec 2023 13:45:45 -0700 From: Keith Busch To: Kent Overstreet Cc: axboe@kernel.dk, linux-fsdevel@vger.kernel.org, linux-block@vger.kernel.org, Matthew Wilcox Subject: Re: [PATCH 2/3] block: Rework bio_for_each_folio_all(), add bio_for_each_folio() Message-ID: References: <20231122232818.178256-1-kent.overstreet@linux.dev> <20231122232818.178256-2-kent.overstreet@linux.dev> Precedence: bulk X-Mailing-List: linux-block@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231122232818.178256-2-kent.overstreet@linux.dev> On Wed, Nov 22, 2023 at 06:28:14PM -0500, Kent Overstreet wrote: > +#define __bio_for_each_folio(bvl, bio, iter, start) \ > + for (iter = (start); \ > + (iter).bi_size && \ > + ((bvl = bio_iter_iovec_folio((bio), (iter))), 1); \ > + bio_advance_iter_single((bio), &(iter), (bvl).fv_len)) I know your just moving this macro, but perhaps now would be a good opportunity to rename 'bvl' to 'fv' to match the callers and have a different naming convention from the bio_vec macros.