From patchwork Wed Jun 28 01:58:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lu Hongfei X-Patchwork-Id: 13295155 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 33DB1EB64D9 for ; Wed, 28 Jun 2023 01:58:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231219AbjF1B60 (ORCPT ); Tue, 27 Jun 2023 21:58:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231217AbjF1B6Z (ORCPT ); Tue, 27 Jun 2023 21:58:25 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2108.outbound.protection.outlook.com [40.107.117.108]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D9C8DA; Tue, 27 Jun 2023 18:58:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Y8Nj1OIsropm4MECdLXeBaIsDaMXxOlZAxIqgbqk9lS9t5xrct4mhHodoTKVVjQiZG0XHnyLjlxlqgIbMZuXQn7UWhzGAvWXgV4CRCHXJA6PlVE2ZkaRkmxzoziQ3XNqreMQwksrwuCQUayETyfnhFVXKDaBS2XSv7I8hVbOa3KNURsQ6Nz1QDncuZql9iuV2/3A0TnTrwQZSH0Bx0HIcuvfmk7j40vlqYVFEa5wXz4XcP2P/yMe97kmSEJ4BAo0dAlGGMEiPQGsYRzsr0FHZUmr1ajSyYuUeI4vEaIQc9C59e6wnetK99hgi6BniT0aGKprLk2hdlpiCtRpBvSwbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=zzsK2C7yTU8Ti6IoXo8eyCzEtGIyWD0f4lV7mru94wI=; b=nXkXAEcPGKO3p6qJJF1u3AewadcisaFBg/NlANI08zFbTa4Yu2MsA6IU876WDbPp4Cnt1ThdqdIcF6IRBgPjCkohMOVah0WOp8qLCh7+wMuUJP9YfXZm7a9XBvZkE8nl6j99+8NoAmXcndD+9E44cGlabIt9rcrCzfO2vqWMVHMR+eJ16v6RmPbUMcUmB7j99z8OpJebMXfj0xW4gKRS8gW7dbk6u12agW/n4KrTFneVfoXeikOYbKrEDmIvNX31gvGw7QEu7SfutHaK6+tY+QiHl3CQwHTyB+4nwWEeok716/Qf44QCgvwM1TetTv9kiCLq5XQkSHALy2yZPxN0Iw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vivo.com; dmarc=pass action=none header.from=vivo.com; dkim=pass header.d=vivo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vivo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=zzsK2C7yTU8Ti6IoXo8eyCzEtGIyWD0f4lV7mru94wI=; b=UAIc4xuhLSLOkHpiVnH9JlWkrb917kfDRLDqtHrUdioJ62PSycQj0qG+fM1tfz+nS+7DUwcE6kZZlxKpWt/i9SgViylogBiTfdb7gSAp4nb4TLyuXYVWuEnfWIsj2PPYdfXRim5tiIbJdpMdlqfJOBlbnwSeFc05gMtJdJBxizM+bXE0506KpGEH8dy4vOOKnDEtsXjClu8Gh1GGx27Cxb+8REw58Ckcz9wKAcwmGPi3JdjT38yAgRD9bnAhcZkakRYQMCv42qDUt6aFW4Tx9TPj43TPmox53mwEbBdPBavnDRCeEj1GnOQ86DEe64lHox/n5r943pBWOybpwkHNfw== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vivo.com; Received: from TYZPR06MB6697.apcprd06.prod.outlook.com (2603:1096:400:451::6) by PSAPR06MB4518.apcprd06.prod.outlook.com (2603:1096:301:89::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6521.26; Wed, 28 Jun 2023 01:58:15 +0000 Received: from TYZPR06MB6697.apcprd06.prod.outlook.com ([fe80::f652:a96b:482:409e]) by TYZPR06MB6697.apcprd06.prod.outlook.com ([fe80::f652:a96b:482:409e%6]) with mapi id 15.20.6521.023; Wed, 28 Jun 2023 01:58:15 +0000 From: Lu Hongfei To: Christoph Hellwig , "Darrick J. Wong" , linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Cc: opensource.kernel@vivo.com, luhongfei@vivo.com Subject: [PATCH v2] fs: iomap: Change the type of blocksize from 'int' to 'unsigned int' in iomap_file_buffered_write_punch_delalloc Date: Wed, 28 Jun 2023 09:58:03 +0800 Message-Id: <20230628015803.58517-1-luhongfei@vivo.com> X-Mailer: git-send-email 2.39.0 X-ClientProxiedBy: SG2PR01CA0149.apcprd01.prod.exchangelabs.com (2603:1096:4:8f::29) To TYZPR06MB6697.apcprd06.prod.outlook.com (2603:1096:400:451::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR06MB6697:EE_|PSAPR06MB4518:EE_ X-MS-Office365-Filtering-Correlation-Id: 7fb26ad7-479a-4cb8-b42f-08db777b230b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: /AuG6m1OuATbWRyF2Vr2qqFTLbN4BOvz+r9yoY7l9PE39NQcOS3xAuIsPkIFwKRAc6XhITjjkaQZi4sgXbejTUC6JiWZ2YaJV5mY93vZQfxoM4URGLmPkO1EDpN8TBeLY/plOBaRFH8gIbqRHca+ci54ehhnpm3C3eHzXKmcFVUvAKiaZw9c0FRSk6w7fmJevtwJTyk/YfM1zAlpwha15Cu3MEQvnh4ZA38khoSJAJHL2Erxw1htp6Nf7cni17XB8ZKc/ueA5EA9j4LDss3jWRH82u6sqnTduyGJZdgKk4JVeP/8x+F9/aGmyUPtpcfxnnVlUPbcy3AI2dLzjLJahWaRtlUdhh0rgIyOyxF1C0RWONqDDKOrY1BcmIbSPHSWf27w2GTCEcc/JAq781f65G+5or43TKXBmbD3UimJ9sWvFnks+7y+S/Z5iXLjckRQK1vvhDVr1olysM/WtDDQMOu5kdpem25sTBgSRRQHMT3AK10/tsgOa5tlU+c8AuWuCBe6c0mrFsP04KwOjFc1Wp3+j0PQkM4VVfUCqnHXAQq4FqGWyKLszQkRAsuxPh5Cw6N5bVvF4+AGaCDdHZJ0WmhdyaPeHlcxmuHkHKceVt9AFRYbOxFl5R6pcpGsf1XX X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:TYZPR06MB6697.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(39850400004)(346002)(396003)(376002)(366004)(136003)(451199021)(107886003)(6486002)(2616005)(83380400001)(110136005)(6666004)(52116002)(1076003)(4744005)(6512007)(186003)(6506007)(26005)(2906002)(478600001)(36756003)(5660300002)(38350700002)(316002)(4326008)(66946007)(38100700002)(8936002)(41300700001)(8676002)(66476007)(86362001)(66556008);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: WzgtLJhMJQZ5OiPiSpI5O+TH6t7XQuovep9axev6NtLRWVfv8mX9E+jBNK5PBXD2rnJoqPdGQJRYqkz0w0NY9izpiSIK+C0pY+QGXEUAeeW/Ej1UOvxyeTZAVil5TQDXd3rhMiD6MSH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/YcpiPudRQM/Tt6zskSr7lEu7Xv6lko5dOv7t2zAE1B/RuxsE64PXemMJg6bebzLNiMUG3LTZj7FcYxvFzxzH9W+4NuoxrrStQgepPR0CenyTByTrbHa9/JlieR3G/Mk9DaJyBFEI0f5b4WHPccbtZrvJxwPb+3fF4Wn8njCPjk9wgWUH104Uta6XIQBobmuhBnlEHpOrdps86fPmORE5xo68cnI05cTwwJnz+VbBFn1aF4cXsn8/x8XKb0fycYy3Q1fky29SMBHHN+De4bisf+qCatO/6mxaxQrWOHXDxZSK/0TDBtPimgTCHO3//s7JAd+RBejTjcobg27hQdZ0fYAPrUYKcYdNhj5qVb3VmJ X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7fb26ad7-479a-4cb8-b42f-08db777b230b X-MS-Exchange-CrossTenant-AuthSource: TYZPR06MB6697.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Jun 2023 01:58:15.7628 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 923e42dc-48d5-4cbe-b582-1a797a6412ed X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: ASBtTFLuKElU7klo+17UVzOEEIGeycB91udGxujPajTFzfqPBB3vjz6xM12Ozd61ZqRDHt1ZFvXFebMRNp0iEw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PSAPR06MB4518 Precedence: bulk List-ID: X-Mailing-List: linux-xfs@vger.kernel.org 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 Reviewed-by: Chaitanya Kulkarni Reviewed-by: Christoph Hellwig Reviewed-by: Darrick J. Wong --- 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;