Received: by 2002:a05:6a10:144:0:0:0:0 with SMTP id 4csp30672pxw; Thu, 7 Apr 2022 23:35:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxdmqqgUXozNgCquQ44r7A0M1d+gl3iTqTRr+6OMw0w8kUc4rA2sU2nyNBMbweP37WesTzI X-Received: by 2002:a17:902:e549:b0:154:b1f8:cc82 with SMTP id n9-20020a170902e54900b00154b1f8cc82mr17613630plf.82.1649399712098; Thu, 07 Apr 2022 23:35:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649399712; cv=none; d=google.com; s=arc-20160816; b=hJlwI+6L4egpMLIVhK74HjZvGwAOmDTTltP4/WAiDuHrKTgHRaCaXGm+ybB0bmhUkD 6BzMsfarH44/hShsnPSp44vnP3oSbb39ZTg7up69UrK7lnHrffBEGrV9pdZ2DKKvGXSG fIc6yWe/2w1AQ0hXKtIbuQJjUjXiQFZD9KmR0w06mgN8fijdF85xbtgi0vgqVQFhhNBn oX/p6kOdfrHwqmqQ45s3Y3e/KdCqGKFKRpN9C3ONxzcMVMCpgpWnnNgtG1c7m5trw39H YOSAlDg+Kx+vmPhdOyE3wCppITxo6bAK8urtEO2eX6wSrI1Cp4WfJQllPL+695KpBtSp CB2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=WSu7ihnrt2riifE0fS98ZAhqbUCB2kG4wJsBXdegcg8=; b=vS5zTG9yvkBMnrma2iBbQT7/cBdkNW7Pnvd6gR920DPNX5pSk1d2wexZraTmN7O5LN 0cB3qwSnlnDW3oFFeQBw6tc+QnTIZOw7FnsK3STtIeSRqH8s1sOCek4LMIF3mrJvJbfi oDUPZjJj8YU2e2A0Dqp50Jhf1umFRjUupI9FpKpUrSReF+/QzeBA0MR6ZmndSO0d3ZXI CcMNxNUmodvXvc404H1DFXWEXeyBY8jDnJzYBPPt59MIT/JjFkjfI18c4oqI2RXZj2Ks oP2DmA5iNWdEjQmEZIBxE3o3FJ/lx8mcIpJl03J8am2LdczgOJSSruMaknTOqtd6qzpS uVlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="UY/ReC24"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id x26-20020a656aba000000b00398b4d801d7si468725pgu.448.2022.04.07.23.35.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Apr 2022 23:35:12 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="UY/ReC24"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A617E64739; Thu, 7 Apr 2022 23:05:44 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235105AbiDHGHj (ORCPT + 99 others); Fri, 8 Apr 2022 02:07:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41238 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235073AbiDHGH1 (ORCPT ); Fri, 8 Apr 2022 02:07:27 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4EEBF5E159; Thu, 7 Apr 2022 23:05:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=WSu7ihnrt2riifE0fS98ZAhqbUCB2kG4wJsBXdegcg8=; b=UY/ReC248H1H5Y7Y4dabjotvcr jtJitwjv6/z4GMP9cFDT0Szmlvry5TAjzFf9IVij6n8TQSSzkNWjGJiIRNeOdrBmrq345rgiODoZ2 5haivZWAY+k0wlgcHG2lK7R/eBNButJYXwKQx3j7Mahe026ZpwDyJRCZwlhQH3XWlCN0LiL39G3c9 fA57xLV735hKev4rIsT6+mAcY8O15WU18V6aZBT4TNXy2mVStLvdV/BS01/pG5xuhELnvxXB5mm9/ HQzn/6+E051HlSo3VerLHt/ZYDepaF3NUs+KqmQNm1ftgdFBxKDEc0yTi79CzCMrppClG48M2M+rr vBVTrnKA==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nchkK-00FE9Z-Pf; Fri, 08 Apr 2022 06:05:24 +0000 Date: Thu, 7 Apr 2022 23:05:24 -0700 From: Christoph Hellwig To: Logan Gunthorpe Cc: linux-kernel@vger.kernel.org, linux-raid@vger.kernel.org, Song Liu , Shaohua Li , Guoqing Jiang , Stephen Bates , Martin Oliveira , David Sloan Subject: Re: [PATCH v1 6/8] md/raid5: Refactor add_stripe_bio() Message-ID: References: <20220407164511.8472-1-logang@deltatee.com> <20220407164511.8472-7-logang@deltatee.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220407164511.8472-7-logang@deltatee.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 07, 2022 at 10:45:09AM -0600, Logan Gunthorpe wrote: > +static int stripe_bio_overlaps(struct stripe_head *sh, struct bio *bi, > + int dd_idx, int forwrite) This might be a good time to switch the int used as boolean return value to an actual bool. > + pr_debug("checking bi b#%llu to stripe s#%llu\n", > + (unsigned long long)bi->bi_iter.bi_sector, > + (unsigned long long)sh->sector); sector_t has always been a u64 for years, so these casts are not needed.