Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp19566418rwd; Wed, 28 Jun 2023 10:58:29 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5HhHASz15w63Xqqo9jBv0pHpgkui51uLexIVs+Y/am46uRK6fV0mw13+22Ma4LsRqbRroo X-Received: by 2002:a17:903:443:b0:1b8:36a8:faea with SMTP id iw3-20020a170903044300b001b836a8faeamr2998624plb.13.1687975109080; Wed, 28 Jun 2023 10:58:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687975109; cv=none; d=google.com; s=arc-20160816; b=sgDLXgLb7TvaBNOhXFidQVnmZd8oj+/J+ewf543cGCquj9anSlnMb0ebN3KxLClf6l gZmXFQkA48h4DJWv8Q40aFBfujjXQLozIlO1+/Em3pNroBycgaF33N5rOZZNC7wikEA9 tU5SKXGTDA+vV1MpQnCucvCJrO+PO9BkY3mP8pvWAcXZM3LeG34joasWIZxkSILTTJ32 Klit84MEX6rkUww9EQoSpyo/inpQ4ClQwVZADGrVyHxs1PQFvuRmvgnWZodinzHK+l6E Xix7d6SMwNBOfeo25xU8hnjtKQk4Ge7UDLtA8URGhwJToF/urJkCZF4zvI7C+zbJpww+ Qr/A== 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=W+W68NPcao6XYgsQ1lSAXdnml28dUe50owjFPreKKXc=; fh=3WIyn18xMoah7wQ1axtCTdsfZSOcM59aiOKYLdE9c3I=; b=1Gtv8jcCBW+Ck/4X/IYnm8GqbiVu6I1i8Ad8ldA9IWa/4ueoHgxmMaJsGAh/UCt21R HOUN/6hFnpTDIxzl6NBv4v+UZFejN7+kJPMqu2pV/uUK7+KpLfC/xh/wXGVn3NWzMJSB VB2n5vzqx6SYSf7lfv1afa4NsE5YPFoj0/aLEbJG5oW4MnAGznt2cQkC5g29vR9olUr8 N2ZwsVwQy0RkLybvzODKZfgjxQkerRFe4jpcIo3RHBL4ZV3Z9iJE0mAqTqQ/BC6MrdMG e/yMqYRjdCBsuqyDpl66W59V9bBhCcMaDOhZpgdJAOBDikjQQPpajmqJKezZDJBGloaO X98w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KtFMmuNE; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w24-20020a1709027b9800b001b55934ae61si8857633pll.288.2023.06.28.10.58.16; Wed, 28 Jun 2023 10:58:29 -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=@kernel.org header.s=k20201202 header.b=KtFMmuNE; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232173AbjF1Rzc (ORCPT + 99 others); Wed, 28 Jun 2023 13:55:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232249AbjF1RzJ (ORCPT ); Wed, 28 Jun 2023 13:55:09 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A6DBA26B7; Wed, 28 Jun 2023 10:55:07 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 036B96139D; Wed, 28 Jun 2023 17:55:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 620EDC433C0; Wed, 28 Jun 2023 17:55:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1687974906; bh=GhanquvDO+riqKc8sFuOmdtpeFul1ulOTTxEHmiDq0E=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=KtFMmuNEzDUvGZ66TscohlGW7RVNym3TeWzVPylaCN1xS5rGcaDNB2u40BfPjpri5 9vifUxITwS/dzS4crt+hvgTXnqrGTJQWAb4WMlpI3bjxrwOgQMTYxaEOC6XDyNAzV8 CW7h7seRzAiBbJ5uGQrkchhUM3t1lX1CCIU1K1RXSEUl7PpXFf8wVGdRckl+KLbYfe ACoQ3lhwzcfRGC6UYPQvWv5qBsmkecMgOLFqNKT1paK6xsTKFcTonYnH7W3XGv9TU6 Hr6ln9mSUdcC2UI41nHqEKiqB8o4fxINXu6WavySdnmG1J6ZNCZvScnlcGrZWMyygZ QOIoFqADQCgNQ== Date: Wed, 28 Jun 2023 10:55:05 -0700 From: "Darrick J. Wong" To: Lu Hongfei Cc: Christoph Hellwig , linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, opensource.kernel@vivo.com Subject: Re: [PATCH v2] fs: iomap: Change the type of blocksize from 'int' to 'unsigned int' in iomap_file_buffered_write_punch_delalloc Message-ID: <20230628175505.GA11441@frogsfrogsfrogs> References: <20230628015803.58517-1-luhongfei@vivo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230628015803.58517-1-luhongfei@vivo.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Wed, Jun 28, 2023 at 09:58:03AM +0800, Lu Hongfei wrote: > The return value type of i_blocksize() is 'unsigned int', so the > type of blocksize has been modified from 'int' to 'unsigned int' > to ensure data type consistency. > > Signed-off-by: Lu Hongfei Looks ok, Reviewed-by: Darrick J. Wong --D > --- > The modifications made compared to the previous version are as follows: > 1. Keep the alignment of the variable names. > > fs/iomap/buffered-io.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/fs/iomap/buffered-io.c b/fs/iomap/buffered-io.c > index a4fa81af60d9..37e3daeffc0a 100644 > --- a/fs/iomap/buffered-io.c > +++ b/fs/iomap/buffered-io.c > @@ -1076,7 +1076,7 @@ int iomap_file_buffered_write_punch_delalloc(struct inode *inode, > { > loff_t start_byte; > loff_t end_byte; > - int blocksize = i_blocksize(inode); > + unsigned int blocksize = i_blocksize(inode); > > if (iomap->type != IOMAP_DELALLOC) > return 0; > -- > 2.39.0 >