From patchwork Mon Dec 5 05:10:14 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yuezhang.Mo@sony.com" X-Patchwork-Id: 29528 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2073012wrr; Sun, 4 Dec 2022 21:12:41 -0800 (PST) X-Google-Smtp-Source: AA0mqf7yr5ml2hwqYhKZOxoTi8dzSG3Za3JHvc7oegQirBSwghKHsMZmKNRAZzGOnKUuHelpexhO X-Received: by 2002:aa7:c750:0:b0:46c:3b3a:a75b with SMTP id c16-20020aa7c750000000b0046c3b3aa75bmr9908516eds.328.1670217161261; Sun, 04 Dec 2022 21:12:41 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1670217161; cv=pass; d=google.com; s=arc-20160816; b=JDeAaXVeJRIGh0WCcU2x3d3UibZ9T6r/HvUogA7CyiCbWH7+QbmK0Zimp/EmOtG3Me W+FfN+Gz7iGZhvVL9xgqdpy9sb3I7dLt/G8vL4p3Q5o8ZEMoAGECWV8EgJWUPhpmagEe dpzu7S+TTKYbFF4WJQ4A2h3xwSOUXDi59q23dZCqQPn6sdcO0ay8WrvAYzdjBuLvbp76 tE4uxDih9w8ODELFuUY+JHljV/rG67pWfgUdHqpHsXAbxmZI7VikWgcCygKpABLltiu3 RbkeVaZlZgod+Tjcmpn2sGf8iPTvUBsJGTooeBmSGIo45chVeMM78qA2cGTqydW/TK/T 2Bmw== 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 :content-language:accept-language:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature; bh=/4nCqGhymcqBsWRZN90JpJHo+c7h/d3+KXFuEzngCRM=; b=bqqZTvDMbgtpZGuOvEnX4kIoTHc7tLYRGuOitil82ZrIBhks9/pLLVgJS/FFDQqQaF W59NC4HYHPJ6GByVF44ldLYoYW0Tug/lP8QR4ED8KCPl+kpPuB9KuW4+iMIzSOGh8Uw7 Bxg+fTIUB7lXQo4czSu7jtZ0QyYIczhUbjNT7kNvwPmvJUjVMwFYY7dynmAc/XDTbliJ uEuWVDGmHV8XK2uPj7qSi7sTTB4HoTrgWQboK80pBGOdfnzKCV4Ezkunjigc9sz21Bgu xRnEmwrbHwkxgYuhyk9Lh7cXQ/RMlki8KykCGMaoRro2luI5ynNDSlpTFDtBXiUHEnXK EUcw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sony.com header.s=S1 header.b="i/wxrna6"; arc=pass (i=1 spf=pass spfdomain=sony.com dkim=pass dkdomain=sony.com dmarc=pass fromdomain=sony.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=NONE sp=NONE dis=NONE) header.from=sony.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sh39-20020a1709076ea700b0078ae5192906si11383333ejc.193.2022.12.04.21.12.17; Sun, 04 Dec 2022 21:12:41 -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=@sony.com header.s=S1 header.b="i/wxrna6"; arc=pass (i=1 spf=pass spfdomain=sony.com dkim=pass dkdomain=sony.com dmarc=pass fromdomain=sony.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=NONE sp=NONE dis=NONE) header.from=sony.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231483AbiLEFKe (ORCPT + 99 others); Mon, 5 Dec 2022 00:10:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36608 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231175AbiLEFKc (ORCPT ); Mon, 5 Dec 2022 00:10:32 -0500 Received: from mx07-001d1705.pphosted.com (mx07-001d1705.pphosted.com [185.132.183.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 06D6110077; Sun, 4 Dec 2022 21:10:30 -0800 (PST) Received: from pps.filterd (m0209327.ppops.net [127.0.0.1]) by mx08-001d1705.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2B50r8Zi001701; Mon, 5 Dec 2022 05:10:20 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sony.com; h=from : to : cc : subject : date : message-id : content-type : content-transfer-encoding : mime-version; s=S1; bh=/4nCqGhymcqBsWRZN90JpJHo+c7h/d3+KXFuEzngCRM=; b=i/wxrna6RwxHKOZOTZm9KZrJAxeAZlKNwG632xtnKPcF+uFgaGrwAkpaJprEA2/WJfUZ j2VNnY47TTMwm868Uc3HF/afGAr0PoShn3P4ThZmxlRouiJrdONXyLOjSU2l2p4Apw3n Rf5B1oLAzE5TBTccFplu4qG/Z7PacaPIxAlvziay7tHcBJwF1rYN8hqBguL7eQA7Zgn9 +DPe7EYjm6koBVJGlaAubMfZ4ejknQDPWh68ClaLX+ZQj72TYmrqpqpJ0kp6Vu8/WmJF UQfUra+ti/vhdosC+1ytWOLhYdLFJ8wiwRnEIPDdaPnqqH8gUF+M8Z5g6vt1UlV7YwMZ qQ== Received: from apc01-tyz-obe.outbound.protection.outlook.com (mail-tyzapc01lp2046.outbound.protection.outlook.com [104.47.110.46]) by mx08-001d1705.pphosted.com (PPS) with ESMTPS id 3m7ygd19pu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 05 Dec 2022 05:10:19 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=L36XPPP78C7qdU6WXHwRTT9Z3k7kBg8BNq8j8gdC58vJbHNqeAC7WiWOrCzHsLfMphX13Rq3NW5lO+awmzMC7e0v1OYLKq8nEntzIgqylM8gKyJbAc90uIAyDSyeGPkAfkKF7oPrWNQ3NjGtbFQnqtVQPt8RHc7gyMIKifiUbUXNdkhFnyS6ViRpHwO4MXu7WUuT/1ZwvAc8e6fLNteJ0hBN/kxB5WZMsdzmkLGjUq7W+1oYqbFhmoHpWe/mW3Uc3ryGSGG/YYKjztk3KSaiESIQeKVmVupB1uCq4ukKBv1b3amk9bzrCESkS5K31XGQ+XCHZAUbTgJ7awpB2raVHg== 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=/4nCqGhymcqBsWRZN90JpJHo+c7h/d3+KXFuEzngCRM=; b=eghAcuBFIHJxnEoi6yOj1OYY+f38iSNqOeciL6QxCaZUYbfo/god+wBZEiKDIKxe6QmomZp78apT8SexRna6No/Ue/zQuUsMZq6THsppDVDKLHw+N3vaGo2/q3uMybYl3EijRUnqt8Ui9TG151XhHN7WKC44UbVYL0yKeodCtDZRqj4P7hymJXLwdvJqKB7YqKOuG/gbMMfn3fEzECMaI5tW4E6B42CSvN5ApJr8JKim78uqWupJF8FP3x5eOOuUVqCSIqwopgDidL77FT97BwMBTgd+ELWYzU4xekkXPAvNrUuyV2bjmntiF21GxSoXi0AOBose/j5cQ/+Fm3YSaA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=sony.com; dmarc=pass action=none header.from=sony.com; dkim=pass header.d=sony.com; arc=none Received: from PUZPR04MB6316.apcprd04.prod.outlook.com (2603:1096:301:fc::7) by PSBPR04MB3909.apcprd04.prod.outlook.com (2603:1096:301:2::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5880.14; Mon, 5 Dec 2022 05:10:14 +0000 Received: from PUZPR04MB6316.apcprd04.prod.outlook.com ([fe80::c689:d665:b3a2:d4de]) by PUZPR04MB6316.apcprd04.prod.outlook.com ([fe80::c689:d665:b3a2:d4de%6]) with mapi id 15.20.5880.008; Mon, 5 Dec 2022 05:10:14 +0000 From: "Yuezhang.Mo@sony.com" To: "linkinjeon@kernel.org" , "sj1557.seo@samsung.com" CC: "linux-fsdevel@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "Andy.Wu@sony.com" , "Wataru.Aoyama@sony.com" Subject: [PATCH v1 4/6] exfat: remove argument 'size' from exfat_truncate() Thread-Topic: [PATCH v1 4/6] exfat: remove argument 'size' from exfat_truncate() Thread-Index: AdkIZnhxe+TqMJXuT+WIfdRVSGaD1Q== Date: Mon, 5 Dec 2022 05:10:14 +0000 Message-ID: Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PUZPR04MB6316:EE_|PSBPR04MB3909:EE_ x-ms-office365-filtering-correlation-id: 785c21d4-ddb0-420f-2996-08dad67efe1f x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Auq8BRJf28TbcTMvhw2SL+svj3hgSLNtnu3VvxNC6v7JQSCWe1qkZ3amKnPvWASTlH2nq4y/AudomOBanbi/xllye/Gkiu/Cxhku/tZ9BCmc1djTilGIcHOErMvozg5c3XQq8W3dnwkZUx1WgQOw+M9sIfiFxcKjrS3+HuE9n7gHO+CEydT/XIPdfnbXGfVY/zxuRF9Yl2BC2JkLofJl0O6BEZLhyjRSjSnCxzC0Mr8cOR4jsfpw+PnXDtNuyvJ12rTkIJi5wgE5swx0WoDsSV2JtZsY02MZeKwkS7VsnlcJIsB2lZzUJJJlNdnRhXTdEe3UrRI0NaLktb+65xfAOY8a8fl+qMSoHS3FwOQC7n8qVsv1BBEyyr6h7Fl/W5saQrch4+rtbSzSXuKcQbrvYQrOjAkzL1FZVoyP1EQE4ZJrPCGrIDO3dRsWsaxxGXhHy/08INLVlhPGkDcjDgzZ1zvAT/gg1+FNXKFkR59JVpa1hy8VAIkHtvXkJtI03TK1MBoJTaUKzFT9sb1yjr2T/9xR3HguvyQs0qQ5ccKNF55T7NPckYSYP7oY8J6uh5rjJreNf21sZlXiO0CeWJm3lCeF0FDhkVDIdtz3ySo/lymT/2c1z7xT2kRwaniFX2SJUbGDt26u99JjLOCr7TDgOBb7ElZcuWWm51ZaE00svPkjUumDH3I4eVuw6z5NY+APJDNTFobU5BwiIR5aeuhZvw== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PUZPR04MB6316.apcprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(39860400002)(366004)(396003)(136003)(346002)(376002)(451199015)(26005)(316002)(107886003)(478600001)(6506007)(7696005)(54906003)(110136005)(9686003)(71200400001)(76116006)(66556008)(66476007)(8676002)(66946007)(4326008)(64756008)(66446008)(8936002)(52536014)(5660300002)(186003)(83380400001)(41300700001)(2906002)(122000001)(38100700002)(82960400001)(38070700005)(55016003)(86362001)(33656002);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?q?CEe35UDmNMUzOhKP3HtLgBFdP78u?= =?utf-8?q?SFi0q+WwNOvHK2eSywCbPTLEJqouDnyumReHR34xKpKZFrhlMEEJs8sXyEYiuwVGw?= =?utf-8?q?1vN5jb7Kzouzu8GIhZr+HVgrlu53VjV+RXp6rq4+yQEet0VgwxxBWUHks1uKV7EUC?= =?utf-8?q?mXHQKzIVGl08N6kiBUqoevp5lE0l8pU9yBCtQbswaZeCAFLGSMCyvMRVFtAzpS8R8?= =?utf-8?q?rRiPVvUufOxqTjJ6n4tztXa1jU/FnQ8vQloHTpuLhDanZLMoPOFo5NCv3OSz93355?= =?utf-8?q?bNTllF9PZSQ35+luHa5fJh4GbxoI6VlUkdJRJHfnI5iTL4MUrzLT2UoE8/8OZn/ef?= =?utf-8?q?hmtXesLX4fd7Kf0TkgBO6NjW3ehZQOtGBOoYC0gLc0C9nVQ6B50/XPyHdUGPffi2b?= =?utf-8?q?dSJyFHi6ZZEdweRwAFgLrRWP6lG3tIKDTRDjlrAJW0ZkTHNd62eBLR8c1WhRJr/s8?= =?utf-8?q?sJT+NlttUmasTC5ufPFgGKvEn1jnl8xyqKn/eVm1sjfB2SWB+WeFAtkkTWpjzUh5e?= =?utf-8?q?XaB1LqDzK+6NUr9nr74pjENl0H9YX4v1dwWeaGXauDC4G6IYSAemZudpEMvNuY/RQ?= =?utf-8?q?V1v94LqESCMKafbin3AP4f1lPjle1RcMcKziu9NZ4zfE91PuqeYZxQy+8Epi3s734?= =?utf-8?q?XL/OkrN+s9r/cGoAxfhpypDy/eOJYvUPJW4KyNwo/Tvjojd1gj1GBT1HwNxz7goAk?= =?utf-8?q?kghyQX3AIcUF7gWBtXPxlgMATCsWeVIKFvYU9CyoHHjv4kBF5V52rX/RedR4g0eH7?= =?utf-8?q?qJBdLZmF+LIz4GRtXeNEizktKmn3XnvihkoLhc9+KBcl57peIDbkHy9WK1qrOl4Xn?= =?utf-8?q?qrQlXR5DhBAXUwhb7ab0dg5vpTwpIeE9VzzlDHIcq0z351ONX29g8cGQ1sD9mLWUQ?= =?utf-8?q?yMrAp7hpOl5g1HEJZ6kKkEN49aYL6nQ6B5K0TUFAqF4hPMbSAWgB5e0eHYDJoLYCo?= =?utf-8?q?oQHS9VmYdYBAhNlMF3mU46rsTDYhG6Xdi8B6s9jEWzvoBo5biTPbeoMG5CgT5UpMu?= =?utf-8?q?sXs0wn/BSy3bx7jL4PcL8lJA/c3H40i0X45vHk9+SZup2RIvh+eDJ9Kk1lATZfcC1?= =?utf-8?q?8G3VCBk6ukZSZX4YHPpyKwRUVDk9Gb2eK76724NYxsopcSxX3C1f7n24IuuoBLSKc?= =?utf-8?q?0Xi0vpinJmPhLpXB05g6NMUiQHEx4CSPqoE/txN1BRh9sVc/om4ORDXyYGnGoVBR4?= =?utf-8?q?LK3rtP9akvnVJ9xLgaGc/RbqVAGVzCyfRffKFv6Xi+eNTniVt9qotnYESAygmdDo2?= =?utf-8?q?Vqpw0XEDgW/Qe4BDgGMJuleMfytqgZlaO3PjS1OSeiijpgMsZdyzIxyCsaVg6/cTG?= =?utf-8?q?A3ttU/WyHMfxHYSl/XguGa/RfAURpNcYB+O8zZypp6AaPo3md/yo4an+NTru72Wv+?= =?utf-8?q?oGrluW381wOp2gYsKoc8Mz6a8TY86cvR1Ap29LN78rpUz1nLmH9LVwl2Bf/sxF4ya?= =?utf-8?q?UdhbdA421m/6Gv4BH+qFwu6xxBWZW6ht/CcYeiY29hrHCewfJge6Pt8w3Y8rU68mr?= =?utf-8?q?3QdFnr45ZQtw?= MIME-Version: 1.0 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: vJGpsztWbBscb4dr++D0fKjAs88J+m69Ls/Ua2vfRQgk3TP23LGx3f2Qop/Mu9Jt4kg+65TDNQgwagOrGjlA2H9txmv+jdXEhtdv2ALdZs4/RtkMamZiUBwop08NLCJv1K+5fHjLp0MFsZ2Od7E6SX1JpQ+3a0GuRxCc5WvF0qb+hip621R0gKDAQya9DYCf5PrnfHqsSIknh55gOK5PsFbTDlEj9R8aco16QjlMWDMQbK17RbCw1QmS/MSsLidOV8OpwbiOSxSW5uaATeUYjclH3kbfVBhsJ5sjvbOVE/qYvhgpUai//MU2ai1EArkifPfaGWVxmoyUSWNiFkk4ZfaeSDwbpfld0xKHO3h3ceU+qKsxx60yatyLcRQZNGIOnR98VNU3L5kWz0siKvYeoX6MKCwopphRRpeRnrtTQe0b7Bu4cBwD4fklqPGuT3EtdrhnUZPWrZe/L9RC5w3KTP5WA5pYz2BNU437IUP6rJmBxM31aLfgTV+eNvHerO2V/yJQqDvMdAP68DBPOVjIHUkHfZZsNoWxxSipNiNa17IM1RLE0S4KfACvCSji285wBV7LkP+zv0hrcu06xuPGF4jHgciidgDwkeKbScMMFRCotL8NPg9wKKGborTabm8J34fZSMgM0tS+Jovb4C9T6rR4Si+NwdvIFbK/cXbWw4pvg/oEqEIMLzvS938bW/ZCSaNOq5TuNnMSyP0Tj48NNIKsJtI2LhXXrpTFHR7tNSoviPlY6BBcKp1wjEL7vKyRR24A6YIDETHBdfztx4XJ4RyOUvJ3gPCxtjX+PF0e3aKVIHfgPro4nUckRVd1cn/Hvzr+U/7B3cWUGxlgIDq7ScXmFarzgI2fN+gWttNvKgv7pJl9qIenWZGpAWp6tXdr X-OriginatorOrg: sony.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PUZPR04MB6316.apcprd04.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 785c21d4-ddb0-420f-2996-08dad67efe1f X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Dec 2022 05:10:14.3868 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 66c65d8a-9158-4521-a2d8-664963db48e4 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: DVQhdKk9VX9xvxkKtF8UyYWOvkKav1cYq5bwoV0uBQVjjKxHdDgoEvWK40EU6902H83gO264GBm1DzUMevpBkg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PSBPR04MB3909 X-Proofpoint-GUID: _BX3BBEK1vPaugjArhJwD-SpISUmOwD- X-Proofpoint-ORIG-GUID: _BX3BBEK1vPaugjArhJwD-SpISUmOwD- X-Sony-Outbound-GUID: _BX3BBEK1vPaugjArhJwD-SpISUmOwD- X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.923,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-12-05_01,2022-12-01_01,2022-06-22_01 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE 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?1751349630094725087?= X-GMAIL-MSGID: =?utf-8?q?1751349630094725087?= argument 'size' is not used in exfat_truncate(), remove it. Code refinement, no functional changes. Signed-off-by: Yuezhang Mo Reviewed-by: Andy Wu Reviewed-by: Aoyama Wataru --- fs/exfat/exfat_fs.h | 2 +- fs/exfat/file.c | 4 ++-- fs/exfat/inode.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) -- 2.25.1 diff --git a/fs/exfat/exfat_fs.h b/fs/exfat/exfat_fs.h index 21fec01d68ff..ae048802f9db 100644 --- a/fs/exfat/exfat_fs.h +++ b/fs/exfat/exfat_fs.h @@ -449,7 +449,7 @@ int exfat_trim_fs(struct inode *inode, struct fstrim_range *range); /* file.c */ extern const struct file_operations exfat_file_operations; int __exfat_truncate(struct inode *inode, loff_t new_size); -void exfat_truncate(struct inode *inode, loff_t size); +void exfat_truncate(struct inode *inode); int exfat_setattr(struct user_namespace *mnt_userns, struct dentry *dentry, struct iattr *attr); int exfat_getattr(struct user_namespace *mnt_userns, const struct path *path, diff --git a/fs/exfat/file.c b/fs/exfat/file.c index 4e0793f35e8f..7c97c1df1305 100644 --- a/fs/exfat/file.c +++ b/fs/exfat/file.c @@ -189,7 +189,7 @@ int __exfat_truncate(struct inode *inode, loff_t new_size) return 0; } -void exfat_truncate(struct inode *inode, loff_t size) +void exfat_truncate(struct inode *inode) { struct super_block *sb = inode->i_sb; struct exfat_sb_info *sbi = EXFAT_SB(sb); @@ -310,7 +310,7 @@ int exfat_setattr(struct user_namespace *mnt_userns, struct dentry *dentry, * __exfat_write_inode() is called from exfat_truncate(), inode * is already written by it, so mark_inode_dirty() is unneeded. */ - exfat_truncate(inode, attr->ia_size); + exfat_truncate(inode); up_write(&EXFAT_I(inode)->truncate_lock); } else mark_inode_dirty(inode); diff --git a/fs/exfat/inode.c b/fs/exfat/inode.c index dac5001bae9e..0d147f8a1f7c 100644 --- a/fs/exfat/inode.c +++ b/fs/exfat/inode.c @@ -362,7 +362,7 @@ static void exfat_write_failed(struct address_space *mapping, loff_t to) if (to > i_size_read(inode)) { truncate_pagecache(inode, i_size_read(inode)); inode->i_mtime = inode->i_ctime = current_time(inode); - exfat_truncate(inode, EXFAT_I(inode)->i_size_aligned); + exfat_truncate(inode); } }