Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp5495613rwb; Tue, 1 Aug 2023 03:41:21 -0700 (PDT) X-Google-Smtp-Source: APBJJlG51wbv5gnyGmdmfpqV0JkgOCZLhD+9eZFfT6bLZ33xKG7/cMq8PPr5PW0/wlKlyo2jALZr X-Received: by 2002:a17:903:283:b0:1bb:8f37:dd0b with SMTP id j3-20020a170903028300b001bb8f37dd0bmr13001466plr.52.1690886481431; Tue, 01 Aug 2023 03:41:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690886481; cv=none; d=google.com; s=arc-20160816; b=vMylBeceGCNiG01mQWAZvpfOMjtUV9VUk25j3STfdW+VE5Drbhb9Q3v+iurUe8Hgux t1LpMDVNV/kUAyk8rXdeO4wmM7Tv2cWQRSBI9emXbaF81I7+q8jG0GQllMW5wPgEq/8n Q0NXxnBe3MlkxM3/OzZe4Il6BWfwqsw5p3wjXIQ0UfPFeKuxiq3gaPFMzsojb3/6DbBs Fk/jOPdMdM0QEKhBQ4CVmXTdUDEhc+aghNYoR7/Htx/IdoSMn4u+PMNYonomgBdOl4KA gMFhIHz70A64hoqFOkFHrNJDASJG7AHtB2RTatdaszeiTyNqrJzSgnOGgtpAPfe1ShOs ar9A== 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=F9BXdlbwpUYCCGV+1bYwP+JXHESL2UKwaIWerHheSxQ=; fh=SdT/4To45vw6v0KWnnIPK3cwqc6x3lk0/P3OJx8Rnmo=; b=onNlVf3V9t/ILfpwUaLt0y6vBqzYc3VjPaW8hH5+pj6KlEMv/QiqbaS/TB9Bjzfong n4tF/NEQP8DOzeJfO9eTlelLDtzTVrFolgHbPRkRsBm9nOQIM7LcZhhHOUwljqAZkKm8 4FSDLBgZMXUzsrFhdCW/jzLTxQIlrV/I4VY+X4fote8zW9ggJEww+Vohc6GrctO7GtSO RUEneeFRtXw10qhJHfrHNXjWuC+kpPOgGwb/eAVUIUo1GI9lCOXCCG7s0pLlwYcugVKR EksqPKDwXUIPIiRht8Ne8Bq3AmDfv7IgN7sQWNx5zeViyyzN18oPPCEOz5CZJksWIN2v 3bAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=G9ArVPnF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i2-20020a170902c94200b001b9ffda162csi8164066pla.441.2023.08.01.03.41.09; Tue, 01 Aug 2023 03:41:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=G9ArVPnF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233788AbjHAKDj (ORCPT + 99 others); Tue, 1 Aug 2023 06:03:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233980AbjHAKDT (ORCPT ); Tue, 1 Aug 2023 06:03:19 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49951DF; Tue, 1 Aug 2023 03:03:19 -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=F9BXdlbwpUYCCGV+1bYwP+JXHESL2UKwaIWerHheSxQ=; b=G9ArVPnFgYc6sVVMFAzUvlJZdO JAULzD2YiCX17SOQRLguWqfX8uV9Kq0ouUJy2WjPFEwfLFVmsvBkbxi/eQ4kUMnna0STEhui1QbUl UbXT4FplP8OhkICf7bQU+z0SRo0hhQFGk/O0H/2PF7CbOE1Kd6+VwpkUPaRstWkjNglkqZkLpK7+F o8wqNCCIvQ2Q5XHSoiJBsaTgCfYHrF6oy9thx9/tpg0HW9adNHIGXlivPDMbuh0HV3I5ZRoAzrBdK ucrhbHY3vP7MMyjVEXW9DGGQk31OugHf4wXhY1NWAeG0uPTW+SiQPGN5L5uTKeO8D4kVzZaI4fljI o/idd8Uw==; Received: from hch by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1qQmDi-001ibl-1I; Tue, 01 Aug 2023 10:03:14 +0000 Date: Tue, 1 Aug 2023 03:03:14 -0700 From: Christoph Hellwig To: Jinyoung Choi Cc: "axboe@kernel.dk" , "kbusch@kernel.org" , "chaitanya.kulkarni@wdc.com" , "sagi@grimberg.me" , "linux-block@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "martin.petersen@oracle.com" Subject: Re: [PATCH v2 3/4] bio-integrity: cleanup adding integrity pages to bip's bvec Message-ID: References: <20230731124710epcms2p55b4d1a163b5ee6f15d96bf07817e12a5@epcms2p5> <20230731125459epcms2p177a5cc5caa7ef0a9de35689e96558f43@epcms2p1> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230731125459epcms2p177a5cc5caa7ef0a9de35689e96558f43@epcms2p1> 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.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham 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 Mon, Jul 31, 2023 at 09:54:59PM +0900, Jinyoung Choi wrote: > The bio_integrity_add_page() returns the set length if the execution > result is successful. Otherwise, return 0. > > Unnecessary if statement was removed. And when the result value was less > than the set value, it was changed to failed. Maybe word this as bio_integrity_add_page() returns the add length if successful, else 0, just as bio_add_page. Simply check return value checking in bio_integrity_prep to not deal with a > 0 but < len case that can't happen. Otherwise looks good: Reviewed-by: Christoph Hellwig