From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8C9C0C10F0E for ; Sun, 7 Apr 2019 07:38:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5F32F21738 for ; Sun, 7 Apr 2019 07:38:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726202AbfDGHiZ (ORCPT ); Sun, 7 Apr 2019 03:38:25 -0400 Received: from verein.lst.de ([213.95.11.211]:35920 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725905AbfDGHiZ (ORCPT ); Sun, 7 Apr 2019 03:38:25 -0400 Received: by newverein.lst.de (Postfix, from userid 2407) id 89EDD68B02; Sun, 7 Apr 2019 09:38:13 +0200 (CEST) Date: Sun, 7 Apr 2019 09:38:13 +0200 From: Christoph Hellwig To: Ming Lei Cc: Christoph Hellwig , Ming Lei , Jens Axboe , linux-block , Qu Wenruo , Btrfs BTRFS , Linux FS Devel , Omar Sandoval Subject: Re: [PATCH] block: don't use for-inside-for in bio_for_each_segment_all Message-ID: <20190407073813.GA9704@lst.de> References: <20190406215428.3131-1-ming.lei@redhat.com> <20190407065205.GA8799@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org On Sun, Apr 07, 2019 at 03:37:00PM +0800, Ming Lei wrote: > > > @@ -48,7 +48,7 @@ struct bvec_iter { > > > struct bvec_iter_all { > > > struct bio_vec bv; > > > int idx; > > > - unsigned done; > > > + unsigned bv_done; > > > > Why the rename here? > > 'done' may be a bit misleading given we know this field is for recording how > many bytes we have done on the current bvec. Or .bvec_done? I doubt add a comment..