Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp17447376rwd; Tue, 27 Jun 2023 03:12:29 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7JIo2wedm64i4gUKJqw6vhRdaO+/d86r1CwlVeI62ybi0DHX+OTso4QXVTK7ISk8B/KODF X-Received: by 2002:a17:90a:195d:b0:25b:f37d:a075 with SMTP id 29-20020a17090a195d00b0025bf37da075mr18988663pjh.14.1687860749592; Tue, 27 Jun 2023 03:12:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1687860749; cv=pass; d=google.com; s=arc-20160816; b=XsWAvZCtmIifor62uq3IN0YQpDxeu2CDz8GzkVgB8BenOCSuvHyE9vkkGh8F1oWzJ2 Bb6hHSi2OYDk+247AToUYi2LFmoKiDbDEKX5mlH+q5mXaxdrdSqEbKoxyXyjewzr1xaK yOssq3/wF5RNtsmBZLyy5KavGOLhMeTMnwHk8OharODUfnS4g8ZNUwE0T+Q4jHdySVQu 3xNjoNZFW0PVze0qW8IUv0l7ws156M8N2muAyqtfT9r/IDUyW2wXHC/sSaOnGqe73mL4 SYOMiQXWskaV+t486tba/prP/lWtU6iFVMg0K1aCTusvki5fzo/YGqdoX29xhVgeIzqg nXdA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:dkim-signature; bh=TRviogY77aTWex2r7n6Wwr6YMW8sUve7ln3jrqaszRo=; fh=7pWgNASPigiX/GUlqn5LsW218FrxVGnJ+eev0Iwj9YE=; b=1J9Y81y8NNv6/NZWEtBdLwwaCveAqxBlTT0YkISjJ3Gfqwam7qLeBPoJPJ3LVlyCJq /wTDa2MQw/kSNeI4QT+GU7WOcdP1ZMGU1CRe5iy3xIFI7IUl/vhYNsLyHjVrs0ttY3Vp /I/CL8NJhaQF8/EKq7iFyJz1n1OnCUcbcRPxhfelU6c+5htWfAJXgPQ4RJPNrhGHcQTo C09OoToMEL9tSttvdiIqIT966jS+HOv4BddyttG4T64vwWLeIc+QYJ2CYF3jlZvsTaEv vUdTxUidxqutbx4s8aoYNK6N1CO12bUTNxJgTrqbQd+jy5v370W7p7vLVcFnsmyPfscp zT7A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=dbHBXI2J; arc=pass (i=1 spf=pass spfdomain=vivo.com dkim=pass dkdomain=vivo.com dmarc=pass fromdomain=vivo.com); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=vivo.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h3-20020a17090aa88300b00258ee17486bsi7102264pjq.160.2023.06.27.03.12.11; Tue, 27 Jun 2023 03:12: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=@vivo.com header.s=selector2 header.b=dbHBXI2J; arc=pass (i=1 spf=pass spfdomain=vivo.com dkim=pass dkdomain=vivo.com dmarc=pass fromdomain=vivo.com); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=vivo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232088AbjF0KH3 (ORCPT + 99 others); Tue, 27 Jun 2023 06:07:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231889AbjF0KHA (ORCPT ); Tue, 27 Jun 2023 06:07:00 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2096.outbound.protection.outlook.com [40.107.215.96]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2CCB735A6; Tue, 27 Jun 2023 03:03:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WHXQIrcJHiruGfw0O7RnVjQzjZ4RtZyN20sFRQ75541XBN0Yc+EPYzUapE5GNg+jI5xJ7+vp9QMUTLkBVE/dqZqgLIX9+1dsEW1KUWaaVyy1wijXUhxoqqtLxhbTmCeHdwsddXm6deNYYtxhg59f84JdQlTdeF1YbylKuIfiVhOC2VKYFyJMHyRL1+FNhqeio1h7SagR9bPTz0OGniseGCMRKjMB6ecm+6I6o7hzGdSKotDHb8cw+/fNvc2dZ4NYHvpuqsu7mOotu7BQTqGwe0BFWT3t+hedHiGs+mcNnTQMFnHz3L6fxc3Rx4LaK6rVrhOZ3RUU7S4RZjd+Xj3TUw== 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=TRviogY77aTWex2r7n6Wwr6YMW8sUve7ln3jrqaszRo=; b=lfzZD3zzJmsi/uxYOS1BHPZDTlci7vXP2fijhXY+A7+Je61JUOFR2YO7mvxgHZt2gDVv7a/z5j6ZL+5GAgP0RZ4FjptvPmUvYWFUXmvUkBtu/Xl8D3ySeBTr2aKfR3IvyavU7/Zk9y9maenN4mzhz2BAIW9EUp3cJGku/drt7baw0bL/SIWeIOm2FKSwn0bu5DqHlZse9qo2GnkVo1TvtdGNA/zLTi8n5EV0QojHIUksPMT6S7Ux8Lf97a/Qle3A9SqW+9V2+dh7+cBUUa0uywRaBhSDYaqPfhKQuAdbQRz9YYhB1EmcRHbuAAIxKgd6Djv9cUJpU3NJgjNjYxJrxw== 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=TRviogY77aTWex2r7n6Wwr6YMW8sUve7ln3jrqaszRo=; b=dbHBXI2J/LZtWcikcPdGZ/k4jHJp8eOmVUxKmewqR+c8/vBTki7Ss257nTx5lBQw1HWpZvCAMJTgrrXTQPHVPgJz8/HTIxZ8X2AD3xa4LAboTvoVLQE6wPlmHvs3M7lAOOF1JuXHLgvJQzstNXrzoiccMfZ6Um3mh7s+mlX1a/gMkC6+SOIyZKoTTRApbUP/pvoXkbFFNo2eSjKCBvzfJ4AGKqJDUjAt4OaRtdkr7E9I7PEcYhTqCicDlFaJffhQprpsr1gyk+4S+KErlLxgMXtv1Nka043TcLF6fkvVCNc/XX/O61dZrBYli2Yf1nPyKCjpbPK/Buq8qNQqXavWbw== 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 JH0PR06MB6740.apcprd06.prod.outlook.com (2603:1096:990:37::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6500.36; Tue, 27 Jun 2023 10:03:36 +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; Tue, 27 Jun 2023 10:03:36 +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] fs: iomap: Change the type of blocksize from 'int' to 'unsigned int' in iomap_file_buffered_write_punch_delalloc Date: Tue, 27 Jun 2023 18:03:25 +0800 Message-Id: <20230627100325.51290-1-luhongfei@vivo.com> X-Mailer: git-send-email 2.39.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: TY2PR02CA0068.apcprd02.prod.outlook.com (2603:1096:404:e2::32) To TYZPR06MB6697.apcprd06.prod.outlook.com (2603:1096:400:451::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR06MB6697:EE_|JH0PR06MB6740:EE_ X-MS-Office365-Filtering-Correlation-Id: b14ff433-f9f8-40c0-2e7f-08db76f5c5ee X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: nc3UYEW5ZWioy+TnhNnlDcPp9y6FzgaSdWjU/8wSQkcs8hyJjfI5pCbsSqfoLli9cobyCvOFtBcJxYOQ2g09eZDdyVvlAyWT9z48sDPok3CwJihYCVHyYFMYHHPKY+UFKg4Xi7X77/IXF6Y4ulwoHbDQG8GvZGGKqC/juEfOrbK8k5FF9AZZpDNA2DTPTsqojRIidU8EXY923CBn2oZ0wm1SwDAEvg9kBWGQwwDRY/j6kV95LVd/I5X4uMC01fH4jfFTBtLKf3xVlApQQyCIOScC3G7RznhkDO0utEl9BNg7B3/BhCuyhWOyWMwHAD9dNj8Xywp2gfsz8AkytrzW/YeZfXe5slKca+IoKqKqRv3yVfoBkr12Juxl3RqsALEodNPKakcXK84of9eULbgX3UOLs21yQ7nJyBP5Mh9oLn8/UYCY2PfJodeIN/N0Kae0QMSpPdafSl4JByvf6KoFyo6tfZuMvNKQqcQTrD+xbdoo/iJTebAFbnJSGYZF+u4VM0Wy7GqlDlq92In/DAy92Gap5YCg5glcsXCH76EIDjeJxjNLOpQPKKNS1CsGuOIyTwFR2HNGWwQLbgcHNVfHlY9zYRh5PlIY0gUCsNUux2nzCHH8rX46saofqJZ1FlLn 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)(376002)(396003)(366004)(39860400002)(346002)(136003)(451199021)(110136005)(2906002)(4744005)(6666004)(6486002)(52116002)(38100700002)(2616005)(107886003)(83380400001)(38350700002)(26005)(6506007)(186003)(86362001)(41300700001)(478600001)(66556008)(66946007)(66476007)(316002)(4326008)(36756003)(8936002)(1076003)(6512007)(8676002)(5660300002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?qGeyur1E0OumfRsZyPWCa5X9TmRGzRW0kz7vttCFhooqRCXeVB26mgxzw/A9?= =?us-ascii?Q?63h9G7FoGwvRk2wpwyImVtmdBLPiwYVPmQpWwVBcXjGh6dVeU5yyZ1tk3pZV?= =?us-ascii?Q?LtraOK5Mc8+LyZD+wbku9Buf4Jm8CGdCZdV1sQEGhBdu0dcBXmGIysT1z6xF?= =?us-ascii?Q?Re1KqCW5Wg09fcm711hI0gzIuPYxC1JUb9/VbyF+A4baj9emvZJZulDLH6RT?= =?us-ascii?Q?4Xjqe/oWIrjNCav94Uj0Mw7/Pf9zpaI7XYfH/fQpeVimtCjc8LeCPNpKtqcV?= =?us-ascii?Q?980/NUT+oPkK5ZzEQOn8GORnDEpJNYm3a5nCIIaDrtRis6iomdQYOmDG5nTW?= =?us-ascii?Q?JQyNzyeS1H7s0/5nD8P3OtLwJna4tGjtUHFJfERZRTsBsHyVjvTIBwdZg5/x?= =?us-ascii?Q?MQDN5pqxXAyw9LQ0eCOEyEcR9wdI29VrYO/tcEFfg3ATW9mxne/Vny+DOQZ2?= =?us-ascii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p7FQxkzW2yOnQwUduhLxny2?= =?us-ascii?Q?5TGx6Xip/IZGXxw/WMpjVaKdjRFIUyVIDSsrcG+VsyC79YKpp8MdrsmcFPll?= =?us-ascii?Q?jlNEakIx5IYHqxEb3X27DNkuTL0ff5um2+giJlT7xcN30SLhkQvLksXl9RMi?= =?us-ascii?Q?iV6xbjutkjsvLg/47I5yAe+aGJGjcCN+en6NB3JzShO8ET+XR+T5jdoHiI12?= =?us-ascii?Q?gYgZtzm2c6gJ06TqCM7x3AL2J55GRVCG/DcWJxj/?= X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: b14ff433-f9f8-40c0-2e7f-08db76f5c5ee X-MS-Exchange-CrossTenant-AuthSource: TYZPR06MB6697.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jun 2023 10:03:36.5599 (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: R2nSwHz5qfoUIfZmM4rlvPvJiYV+dlz9Fs+tyZ0Oa3sgLoH86Gj64hcIFVS6qt2msB6glgJVWvhBDkXli/OTRA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: JH0PR06MB6740 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_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,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 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 --- 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..90ea9e09c1ae 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