Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5779165imu; Mon, 26 Nov 2018 05:12:54 -0800 (PST) X-Google-Smtp-Source: AFSGD/XyozNmUtFOT2R9NMpZaGkacSJcDgKnWTZNwwrKdU14OHhbRGH94GzkddvNMsdNy+gDgR00 X-Received: by 2002:a17:902:8541:: with SMTP id d1mr3444507plo.205.1543237973958; Mon, 26 Nov 2018 05:12:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543237973; cv=none; d=google.com; s=arc-20160816; b=g2iAdfgI3UyBo+CDdGo41FvsNws20S+GyvIT7P4aenATK04BcWIb4CXIVUmJ0MFE1z ncRUTRB3xrEQ7Qn3p8r/V89bO4xTdiiMbmL2EaeI9yXPaC1+9Zsw/x6FSBaspuGO9mo5 zR2ifoMWHEAmOgfqA2OsneFdOmuG0e+7GQjX4yIVHU46Bn4iUE7c4Xd/rHc5FSeYF018 90C2kfMo5CPcjvd4AH5c3CaAw40mLZbFDi+Mdu/9r7hPyjb6keyyuf/bp/R5tARd1e9n RBCdDtgUYxfGuWIEzMnonBA4ztaDXlkbdOCBMKI9QJzUypE62fhgaG6I2ZcpqyGcdt1Z 00ZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=WOael7O7Nsqs2XT2IuvKUqfDSnguxarVs5frX8+7qbw=; b=A+wBptNj0g7gcgVF0lFoL6NSWM+4wopUZaRBF7nVUSvr00/B48VkO2bdWOnZbzJMKD 7G32iZ1CzA72KsAc47yX/6dE6F27D2wPY0TR+Rei96NyfiW25eXq/PKrivIblniRPZh/ /fGr11AxoDEThr4LU6Up+NootKaVQD5rcjQW0UhdHkn9ZuOrUhOzNOi6plg0oIFyC7Ny 645zneJC4eW1gmtKlLgZjTq7DNJCLIHt8XyVOsYmo1jTrNzgSohHMPhlqXG+oS2RBYNS yqGtRCNsWomCKZ+7AnZZHgajeGHHCF/0Clxt3UCBJnCuTYXHN0cfYmw0iSvyzMr/Rb4W 80Rg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t10si249010plh.307.2018.11.26.05.12.15; Mon, 26 Nov 2018 05:12:53 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726814AbeK0AF2 (ORCPT + 99 others); Mon, 26 Nov 2018 19:05:28 -0500 Received: from verein.lst.de ([213.95.11.211]:51987 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726227AbeK0AF2 (ORCPT ); Mon, 26 Nov 2018 19:05:28 -0500 Received: by newverein.lst.de (Postfix, from userid 2407) id 33F8468BF4; Mon, 26 Nov 2018 14:11:20 +0100 (CET) Date: Mon, 26 Nov 2018 14:11:20 +0100 From: Christoph Hellwig To: Ming Lei Cc: Jens Axboe , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Theodore Ts'o , Omar Sandoval , Sagi Grimberg , Dave Chinner , Kent Overstreet , Mike Snitzer , dm-devel@redhat.com, Alexander Viro , linux-fsdevel@vger.kernel.org, Shaohua Li , linux-raid@vger.kernel.org, David Sterba , linux-btrfs@vger.kernel.org, "Darrick J . Wong" , linux-xfs@vger.kernel.org, Gao Xiang , Christoph Hellwig , linux-ext4@vger.kernel.org, Coly Li , linux-bcache@vger.kernel.org, Boaz Harrosh , Bob Peterson , cluster-devel@redhat.com Subject: Re: [PATCH V12 09/20] block: use bio_for_each_bvec() to compute multi-page bvec count Message-ID: <20181126131120.GA6757@lst.de> References: <20181126021720.19471-1-ming.lei@redhat.com> <20181126021720.19471-10-ming.lei@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181126021720.19471-10-ming.lei@redhat.com> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Looks fine: Reviewed-by: Christoph Hellwig Nitpick below: > +{ > + unsigned len = bv->bv_len; > + unsigned total_len = 0; > + unsigned new_nsegs = 0, seg_size = 0; > + > + /* > + * Multipage bvec may be too big to hold in one segment, > + * so the current bvec has to be splitted as multiple > + * segments. > + */ Please use up all 80 chars in a line.