From patchwork Wed Feb 15 06:17:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 57375 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp30868wrn; Tue, 14 Feb 2023 22:27:35 -0800 (PST) X-Google-Smtp-Source: AK7set+aizLW0IVLQbw9tgzjD2e0l/6H5yFxpXph93vB0uSdnpPA+aYwo25r4/Eca4x1l2ma7d0c X-Received: by 2002:a17:90b:3b4c:b0:233:f7a5:9941 with SMTP id ot12-20020a17090b3b4c00b00233f7a59941mr1575269pjb.27.1676442454792; Tue, 14 Feb 2023 22:27:34 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1676442454; cv=pass; d=google.com; s=arc-20160816; b=L/mysYtV1h8cdMzFm4C5WG3U/TzHOI0K5vsgdrmqM7j+dI8WOuud7rau1+hccnQJ4B Fut/twX0wVUMi+4zqcgH1fGGOKKRcRNFs7sredhydLKtLbHnmYxEkDea/T0FxGj0Tsmw mqX94/j/+e73yCYRj/WOKAlDMkjDuLwoYIu2YTnQEqqaSZXJ5Fo6DHmyy9Hc7rlU/68X A2GDxNpThnE+3HgJ5EHHNc8SWKYSPdoMwX4N/6EQN+XJDC1ORsXtNETrSUxCTnYds4y5 wfaDpAof6D3rFuik/1z9meFOdZArI5p/D1+6wvc3UAVzCBJ8AJVLRimKkMnu9BUMFw3q EElg== 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=sn0I/NrXBD4hUhrYrUSv41cu1BtQRt3p3t1+aHNNi3w=; b=0kcyaolge/qaYYULLerF02FHjUvgbAThpY2pYzSUYzzEr+SB9QqHX+14xXfQTs+xt9 OhpeJojrwgU6nnVl2ZwlHEOD0kdEMiIS3TKNy9F2vMbOEG16zu1wEAH+v7IJtFcty439 ob1tLHE4F8046iPO9M3JhQw/hdDU6J6vO+syLnSBD4F4IrW7pWCbvSP3dzHdXmX+PMNv QUIuO9XxW/mbWejTwVi4K7sI7kHMI1T4lq+QxWkjZTcobR68LT1MQ4G+WE+YuK8NLhkI iGFVBM20uBSvr1S0sInn5IEGQJi4waT2V3o6EVjArd7UXEg2X9e0J46+pj8OndXArjQH RT0w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=H8TxzFGw; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f17-20020a639c11000000b004e1fa6350a5si16105241pge.822.2023.02.14.22.27.22; Tue, 14 Feb 2023 22:27:34 -0800 (PST) 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=H8TxzFGw; 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 S229721AbjBOGRY (ORCPT + 99 others); Wed, 15 Feb 2023 01:17:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229461AbjBOGRW (ORCPT ); Wed, 15 Feb 2023 01:17:22 -0500 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2095.outbound.protection.outlook.com [40.107.255.95]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D5E122A14F for ; Tue, 14 Feb 2023 22:17:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CSZzyBsX2uPeDj8QRuw2Hiq2iiuWq0/uUKAlrkqfGBn7mWtAU0KfbHttxVCnYtolcaUb/ggHoKgsRRdMbHLjlikF9aXe4MJa8qGfJR/rvEvID0Zgbx10IsbpfoK3K40IaHxVKui/Wnsj5X+8iUJCCgLeyEbTrrlmQ7AnTleZ10wCGdoba41T9dsslh7XFDvjqyzYNgumtLCzcodrcssx/Cl3K7KIbx9arRjQArrJXtI+gERydTD5vdBeRX7LO0m0vtY0NhNxcj4WJhltW/FPQmAUD2yFiKcNj51jEL0QgW7WiRc1IrAYZN6bJm0dHi53HIUHUNyo8KjbuoKjKM2Z4Q== 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=sn0I/NrXBD4hUhrYrUSv41cu1BtQRt3p3t1+aHNNi3w=; b=C317Qykprew7HgTg4HBxt6Iso+X7tCfKQRBfUtYNTHEm/zstXI/qNMZQEvuo7mmdqZzoQ8CPhscXerH0KWf4gS6h6jvFuE7fjFOHOnKTqTvWQuztJeJ2pBI7zV/UQ1LT9jQDpi9Ux13Ww3H28295Xwja099T33AURpMv1r4sD1yi/9EWfozT7kT0y2sFi1TlT0TuNBGu/eVUdDnKLavFr9qX3yP08+il7EzhDjyoNsJfIAm1u0rYIOSFgZ7NA6oUMqOWOBReOzIk2EfQWEaBrPUb5kg3fSnV1a04VQDiQo+ITy5Us5L3T8HfkcZMlaJUDgNV9hxS3dQYvUnl4AG4yQ== 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=sn0I/NrXBD4hUhrYrUSv41cu1BtQRt3p3t1+aHNNi3w=; b=H8TxzFGwNvD0/+NdCLU55nlzloNoZ+irBKRD4zI/k0rCTKf83wG6xFDfKZzP3D1w88O0lFp8E/D3cYGF071I0SwYUV1710nlcDCoF/YoFrxq8vfADNlbpBLg84wparQMeHLuQyQEdwwx8+yIbcR8obHNgcwSH9Iy1CJwJkyKDd3S6D/X1anQv9QELseSjf8FahaYD9yqA9Qqwqe7evkfEQd41rLgpB9GLDjfIHOmVoj7uceWKnC+qmxU3EHjVgvkjVZ6YARHxiSic08KfLIduCbqqErAFMVOyTPjd2ZvHmMgcndeeh5iSWVMgT5l4zWm4DbocfD2P3e/a/iuBR683w== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vivo.com; Received: from SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) by SEZPR06MB5390.apcprd06.prod.outlook.com (2603:1096:101:65::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6111.12; Wed, 15 Feb 2023 06:17:17 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::daf6:5ebb:a93f:1869]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::daf6:5ebb:a93f:1869%9]) with mapi id 15.20.6111.010; Wed, 15 Feb 2023 06:17:17 +0000 From: Yangtao Li To: jaegeuk@kernel.org, chao@kernel.org Cc: linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, Yangtao Li Subject: [PATCH] f2fs: drop unnecessary arg for f2fs_ioc_*() Date: Wed, 15 Feb 2023 14:17:01 +0800 Message-Id: <20230215061701.1433-1-frank.li@vivo.com> X-Mailer: git-send-email 2.35.1 X-ClientProxiedBy: SI1PR02CA0022.apcprd02.prod.outlook.com (2603:1096:4:1f4::16) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|SEZPR06MB5390:EE_ X-MS-Office365-Filtering-Correlation-Id: eade175d-890d-4d57-c496-08db0f1c4998 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 0ajp0kDhizQmecyjLd6NLa95kiTPPz0vWgwNelXWSvEQoy3zYqO5BemxqcN0sUeL1riSm8Qr/H7BqO2Oo2GCuEk+CVIbu/iTifB3DU5dNOHKhm0Tf47hd1dPchm1wpljnNupnsEHvT+hHEUdLFwSUKM1AZgTTgGtD+o6FiXRZyh4fSchAJtr8npeNn/tIi33BSQ4Q9cHvqzcRV0ZB0KzEgkiZScG/l6Mfz2KFQ1fJ3BjEUzx+yNgXGybbDvMnpeOJ3/bB56m/OvtyUWU/yDSq6/ukun0B3kSanZ15cILJjeNCMHBfRXcmC7R4++mC+wX716E+7whRwx69RvOk1Fa07fWUPRJMO5BX4dAmYY7DsppFOPIxMK/8HJYfIgGoIp3vK0u8idNYiK7ItLvlhsQJUyBseXY+PSKgn0h8Jadhb07UQEPLRo2p01lihdo1/uzMDcOesnW51kYPATUkybiqGue5MqPSzIn4k1/wtbqE6CwPO7sM4IrmW/uOlUm74qVeb0ACU7zU6rSL33+Dz45SLxz5fGrUYgNvNSXTN/oL1rIykIV1M4Bfk5KccInj7/BDko7uUqRUUAWI3lXrlt1TxocObmSvIEFLR3jovQSLQ0zwk7ifBoYEXKV+NgZeUq6Dozu/R//ToaX9+18/1vvztExxUAQuDJvb+Hn056clvuGVWgEw/fSQU6jM4y183wB X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SEZPR06MB5269.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230025)(4636009)(396003)(346002)(39860400002)(366004)(376002)(136003)(451199018)(83380400001)(316002)(66556008)(38350700002)(38100700002)(2906002)(36756003)(86362001)(4326008)(8676002)(66476007)(66946007)(5660300002)(41300700001)(8936002)(6666004)(107886003)(52116002)(2616005)(478600001)(6486002)(26005)(186003)(6512007)(6506007)(1076003);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 4oFZO2fJQ8Cp/DjKh38ItxwF31kCO2HzJl2bD/h6sPSTqpM5lsH4FO2uNEZYViAHGtChDYTM5bFDPG0UQ+EiUWVotZBYFcUwj80YdZZIQCoMZICSiF7hW4UyN9KLeDSiq92eHCg2PcpkavQU4xWztrU+5/A9c6pHAkagI/1M6AiCk/3SXSoCEXHftBa+w54AiBW6gcCn4pcN5T1089ghwLXzkLDBQ76JBiw0lj5WCI6zHE94K2JfPzGCRZ3RAHnDEwroV7jQHSCT1Z01ABpHz4Zb58EQeSW6tGM8WmJJrVI7AXSl5jUfy4Hnp7eIoiTkTxhR9n4phDt0uo1B6leQNET1DdC6m8HzZXutBd/F5y6fQhZSdWjn7Q29zCY/ZHT1y1/ZL+JpHb/apeLM4j0/72tr52cK3g2hg/nkyUPLHV9uFXO5gnqOdC04KnN0bhADeu262+iCX5qJE/EOL/nE3Lh6YNqHuWlsFizagE/w7NP1QU9cxoegjJckWswASryS0kL9jk8I7eGWd2Pdy8jiOaOeP64T+tzXL+uF7mkstN6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ossTenant-Network-Message-Id: eade175d-890d-4d57-c496-08db0f1c4998 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Feb 2023 06:17:17.2868 (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: sH8anegzInmt0Orcq2IdLHPXWGI0URNe01k2aTmPx0xZIrJhxCGUF3gCX/+BetBEaTc2QlVqm3W19PXbbkEqqw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEZPR06MB5390 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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757877323525515006?= X-GMAIL-MSGID: =?utf-8?q?1757877323525515006?= They are not used, let's remove them. Signed-off-by: Yangtao Li Reviewed-by: Chao Yu --- fs/f2fs/file.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index 6436c52e7913..ca1720fc1187 100644 --- a/fs/f2fs/file.c +++ b/fs/f2fs/file.c @@ -2539,7 +2539,7 @@ static int f2fs_ioc_gc_range(struct file *filp, unsigned long arg) return __f2fs_ioc_gc_range(filp, &range); } -static int f2fs_ioc_write_checkpoint(struct file *filp, unsigned long arg) +static int f2fs_ioc_write_checkpoint(struct file *filp) { struct inode *inode = file_inode(filp); struct f2fs_sb_info *sbi = F2FS_I_SB(inode); @@ -3253,7 +3253,7 @@ int f2fs_precache_extents(struct inode *inode) return 0; } -static int f2fs_ioc_precache_extents(struct file *filp, unsigned long arg) +static int f2fs_ioc_precache_extents(struct file *filp) { return f2fs_precache_extents(file_inode(filp)); } @@ -4010,7 +4010,7 @@ static int redirty_blocks(struct inode *inode, pgoff_t page_idx, int len) return ret; } -static int f2fs_ioc_decompress_file(struct file *filp, unsigned long arg) +static int f2fs_ioc_decompress_file(struct file *filp) { struct inode *inode = file_inode(filp); struct f2fs_sb_info *sbi = F2FS_I_SB(inode); @@ -4083,7 +4083,7 @@ static int f2fs_ioc_decompress_file(struct file *filp, unsigned long arg) return ret; } -static int f2fs_ioc_compress_file(struct file *filp, unsigned long arg) +static int f2fs_ioc_compress_file(struct file *filp) { struct inode *inode = file_inode(filp); struct f2fs_sb_info *sbi = F2FS_I_SB(inode); @@ -4199,7 +4199,7 @@ static long __f2fs_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) case F2FS_IOC_GARBAGE_COLLECT_RANGE: return f2fs_ioc_gc_range(filp, arg); case F2FS_IOC_WRITE_CHECKPOINT: - return f2fs_ioc_write_checkpoint(filp, arg); + return f2fs_ioc_write_checkpoint(filp); case F2FS_IOC_DEFRAGMENT: return f2fs_ioc_defragment(filp, arg); case F2FS_IOC_MOVE_RANGE: @@ -4213,7 +4213,7 @@ static long __f2fs_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) case F2FS_IOC_SET_PIN_FILE: return f2fs_ioc_set_pin_file(filp, arg); case F2FS_IOC_PRECACHE_EXTENTS: - return f2fs_ioc_precache_extents(filp, arg); + return f2fs_ioc_precache_extents(filp); case F2FS_IOC_RESIZE_FS: return f2fs_ioc_resize_fs(filp, arg); case FS_IOC_ENABLE_VERITY: @@ -4239,9 +4239,9 @@ static long __f2fs_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) case F2FS_IOC_SET_COMPRESS_OPTION: return f2fs_ioc_set_compress_option(filp, arg); case F2FS_IOC_DECOMPRESS_FILE: - return f2fs_ioc_decompress_file(filp, arg); + return f2fs_ioc_decompress_file(filp); case F2FS_IOC_COMPRESS_FILE: - return f2fs_ioc_compress_file(filp, arg); + return f2fs_ioc_compress_file(filp); default: return -ENOTTY; }