From patchwork Thu Sep 22 15:42:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sidhartha Kumar X-Patchwork-Id: 12985457 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6F229C54EE9 for ; Thu, 22 Sep 2022 15:43:03 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 12334940007; Thu, 22 Sep 2022 11:43:00 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 0AB2E80009; Thu, 22 Sep 2022 11:43:00 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E4035940009; Thu, 22 Sep 2022 11:42:59 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id D3834940007 for ; Thu, 22 Sep 2022 11:42:59 -0400 (EDT) Received: from smtpin27.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id ABD3B1206DD for ; Thu, 22 Sep 2022 15:42:59 +0000 (UTC) X-FDA: 79940139678.27.DE6E73D Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by imf13.hostedemail.com (Postfix) with ESMTP id E7D5520005 for ; Thu, 22 Sep 2022 15:42:58 +0000 (UTC) Received: from pps.filterd (m0246630.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 28MDnSF7019832; Thu, 22 Sep 2022 15:42:51 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : content-transfer-encoding : content-type : mime-version; s=corp-2022-7-12; bh=bt9CtrWG1S5Son+fucIKpV6bB2mdF26ziAG6aIl1FPs=; b=qcWw37R7Vhy6jshL7V1eQH++I3VDvENRgZQArm0tnkVmYqCT0JVbmFwrlwwv3HOGnqqb z6pp9h8QMKSgjEMTDmovnGd9VGoTr6a8XeZxoMKvf7kIs5636qfEl06JpvrEbLXv5wrC NEYbDJOJl6XE9EJeJRzAVNzZnLTwvB61dYtfZMfQQHikrjwfTqefaRwGT+xHQa7i1DNB 5RZOOya0wERUnTGcr+Mr7OfHFY4f69I4egON8CaBd9sy59lPd300F1L/oLC6m8c/bsBK mtJQusmocLqypH0KxIQ7EWTfGsPnlp3/zOILdRgJfTGpG7rXSdpSOYQVAJ6j48lUgRaB sw== Received: from phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta01.appoci.oracle.com [138.1.114.2]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3jn688nby8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 22 Sep 2022 15:42:50 +0000 Received: from pps.filterd (phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 28ME0D7m010184; Thu, 22 Sep 2022 15:42:49 GMT Received: from nam12-mw2-obe.outbound.protection.outlook.com (mail-mw2nam12lp2043.outbound.protection.outlook.com [104.47.66.43]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3jp3cbdwgk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 22 Sep 2022 15:42:49 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dJ25lqQA455H5DAGRnguP13W4ZN2oLIl+voh+8uvgOfhO7EzQlWBaWuW4mxj+nmk/M2T5o0vUnyTfOZ/29z1akByGEr+UM9uKiykphtlRJvNsLqGSoXYpKNlyjDsGE2D1l1Ch0UYlQxQymSAiZ72FLxlxwdrczoqMXkMhoDkJDk/Kq6/tSP3WcFl42J7X6/u4uJ4t0JhEBAcByjs+4TSlOOsL0LNLdRwPBMGJTDqDMor6q/1oFXSWCPjZOekrS1Q3F+IyfuTeVJIvzbt9L17b2rIPkjtSfLSgLVm/G1fT5D2w7+6z5+ztnEoH6U/RGUp5VnEa7Xnn7Jg1J1sLAdWXg== 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=bt9CtrWG1S5Son+fucIKpV6bB2mdF26ziAG6aIl1FPs=; b=LzapEor+VP49iAIxHAQQFk4Zv8REFf61Y4VJA68WhIIRU/h5w567hABagsFpoiQOliPzK/kulC8jy0TeyFvSbZM3GDeUpbyvaBc5p8Urr3/vMF3eU8M4PEgt+sf4DVj12MJNzbue6Agv/d8N5fq/u5l/lKcLExN6n6yp67Zh2Q4T5O7EMt6GCP4I5Z9Pcb0XH5hcaDXj77pioeXonnCfur4RhKPDRoXO5mgmuUwL/BYs8ejkmVU2J6XLXx/mPnivmIUn3phD/8nTBTOKUYTTp4CjX5wQHfqWbqMzgpT5RFQIw/XGtfVEU2OfSIwRLZGj+VF5l3uLGoSb0KoMT3sCZw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=bt9CtrWG1S5Son+fucIKpV6bB2mdF26ziAG6aIl1FPs=; b=hVCOYZRRhLEmkJdRYR8MwtyL+xAVu/nzZs7JCTA1BgXyeDAB9caJhgYj3C6wkpfF4MI5kKgO0nvN5jUO3f8dcFG23Pb0AndbWILa44+WomFWTeI9DMPZWX/ICdoo3p7mUIkpaGPAwipplx5tUvIOq44P52JlFuFxWzCdWPP4KHE= Received: from CH0PR10MB5113.namprd10.prod.outlook.com (2603:10b6:610:c9::8) by DM4PR10MB6813.namprd10.prod.outlook.com (2603:10b6:8:10b::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5654.17; Thu, 22 Sep 2022 15:42:46 +0000 Received: from CH0PR10MB5113.namprd10.prod.outlook.com ([fe80::ec55:981e:3693:b37]) by CH0PR10MB5113.namprd10.prod.outlook.com ([fe80::ec55:981e:3693:b37%6]) with mapi id 15.20.5654.019; Thu, 22 Sep 2022 15:42:46 +0000 From: Sidhartha Kumar To: linux-kernel@vger.kernel.org, linux-mm@kvack.org Cc: akpm@linux-foundation.org, songmuchun@bytedance.com, mike.kravetz@oracle.com, willy@infradead.org, vbabka@suse.cz, william.kucharski@oracle.com, dhowells@redhat.com, peterx@redhat.com, arnd@arndb.de, ccross@google.com, hughd@google.com, ebiederm@xmission.com, Sidhartha Kumar Subject: [PATCH v4 4/5] hugetlbfs: convert hugetlb_delete_from_page_cache() to use folios Date: Thu, 22 Sep 2022 10:42:06 -0500 Message-Id: <20220922154207.1575343-5-sidhartha.kumar@oracle.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20220922154207.1575343-1-sidhartha.kumar@oracle.com> References: <20220922154207.1575343-1-sidhartha.kumar@oracle.com> X-ClientProxiedBy: CH2PR18CA0022.namprd18.prod.outlook.com (2603:10b6:610:4f::32) To CH0PR10MB5113.namprd10.prod.outlook.com (2603:10b6:610:c9::8) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH0PR10MB5113:EE_|DM4PR10MB6813:EE_ X-MS-Office365-Filtering-Correlation-Id: baa36f1b-80af-4fcd-e349-08da9cb118da X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: K4QY9knvumZF/wXGxvMHlPUbEPC9BTVG/fASd5y+UP7ZyzJOsibvKpBLfG0Cq0ptoc323s+FAB4kFTH/IQBLIzZ3yc1ubavWNlkKoEgTrJHPruZMnuh2RnHYObenttokqIsCB7BL4dIdQA5XBzRrwrGjDHrBnxBP+Yl1ufe2/OqRNAqDSeOoVz5QyHR1baFh+9zR2L54Ys7bAnIA6s/W5D5esdUP5kOiAkMU9g21bXFEMPwrPUSyvqzAMtpygagVPjhdgCPxxY72+K9htRPXgWLYIIzzZYiasARdnibj350+XduytDc3y/bq80w9oiShAiXbl30ElEjti9U1F5r9g/FNa3lCmvZ1Z12UetUTqJUIFHt9uF7+oQ4WgCnMI0rrty/pFuRi3rmYx5ZNwm05wMTgbrc5yN+Xq8o3ZMAW3K5GRSwbsTml0DxI4/r1fWsEnvrcNSoHJeFuxrTfBhoaTC2XMhAsCivwxqjWsx1Wmdur0C+7ifagPtO6IG1RmbRydPaxyoL4dOTw2HqKdTl25u9qdm+J7Vs+tnZc6MsCwt56o/EDK9yq2p8QIx4gMZo/o+IhUUjG8ygZpn82qeY1hCrN+CID1DD8VgoZQGnh1MvD5fLKhrqlfOcnlPV3Pj3/gm5ONKEg5a4lFcufrFZ1ol7RzNYNONncOIi0769CU5EN7LbGS08Y45XTa6z7XR6R/zwcSf+XGWlue2Pd/l0ItQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CH0PR10MB5113.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(366004)(346002)(376002)(396003)(136003)(39860400002)(451199015)(2616005)(1076003)(6486002)(83380400001)(6666004)(44832011)(7416002)(41300700001)(26005)(6512007)(5660300002)(2906002)(107886003)(86362001)(316002)(36756003)(6506007)(4326008)(186003)(478600001)(66946007)(66556008)(66476007)(38100700002)(8936002)(8676002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 9AJ9fEwx8kPFkvZgY2yzU8nM85t0pBEUoDLNXoSqbwftB37Hw2mejyUDdGAunqKbjhV5k6GlOS4UF7GS0bfM0SUdvWYc+cbU+wXy4Dje11n0dbpQC7DW8+8AkOpZlhY10/6drpx4sPEzgtWp66Naq4MC8fYwgWrkFYel4sJ6MCd3n9jZPQPVwYP68aeHOIriFPJXDqKKNVJ/UjN4m3sc6RAXtPeXqepOniH6aCcw9WLwOgHVWQYMywB2OpymdrCBaN6cby7Kxwp6P+D8fQ1vCRXN49MQIkLv+5zaaTKzc06a+a43mEVwCPg/I99vT2S9THkSO6i+Hhv/whrrWLH3xf2XMIahlJDsDXGjsGRS+wD6Q4nD1YAdXLfYIpGTshLhV0QVDtmPUDRqkDddFy3Y6hFz+7w4wrZcc6d+QIx36uuFhucQOTYEqOrS7GJXMQwewuiBTB4Vz5oLCRE0fVQUGq8SRoQlIcH1hHOziOuax8Zk0riNQgKWFpS82U3CyeEqlvGes0Z7XlGz59bzzU8Zp7rT8n12BP6BAS+3ex28fyE8HJJJA5WbysJm7yZSqwpgTf9s7/m5SQB3Fyhnz1MV3XjVmCibzpBbX1nQlIo4AWhhFS/lmwvUwzjtGZVS4J/+n/Swgm9mXREo11+QLVe3AOd/KqRzmcRY92OK8oxJQz3YvjTS38cHt0tPASm5BxJv6E5WGXep3DnlaCJ7Ti90Dhh4mOihIdUDXx7ARAap81jhK4iL1o8nNOYr8zspM/foooaXMNv/3E8CQ2Dkdi4YoEMpcLluIi40StQPUWwOCQ9fd/nWYxBanGn38t7c85xyqrQvJ52YKISMuK7bltLG/5k1kzTGaGFuH2x8pW96oECljT3P7beYfzWOTs3gZvUKSR6VUHVsk2xYB4HSeSfSzWIdXL0E1hKogslWXRrHH1WFdAeRdP8rRSsateYhF0NiA6sEQGrrsPI9B73N7VPp76lO8w+4u0nnlsSkbbrLCQYWcVxs/oySxjbZWaH4VKMSzqCNnVd7sH7uypYVI+7w5VTlLntuNYVn4uthuSYDpFAJpqvGLp80Nd+bddglm5+Mao0TtcGxfgglivlG1H1JQnHfwNjvbsCxHupIL1aUu1Ku6ZPNIo2JcLN9WVLvddhnY48bxkjbufV2fzjaMi9ew2Gau9InPC6pD62zlldZNhUs4cc0wYfqklzPmWkKwOGmXIVIFQtT0ZXEYyApEFDHGRQXEPviItqoiqvSkFVnu3SEhNHJm9+qz2iQFhzEWmErLfJpu2RXbiKiUVu5DZfCvDRpXSsEz0OgmcjOWgisiTuWJbQGKkr1slE35iXMkXFEKaYafeT35TDIA2SZF6Gl2XVz8a0P4gc0aeIyCXvaP879ESnocjP2AgztN7Nv4qB/i3y/QHT0wx2YOFLbLvIovNOhgiv8Z7SF2AWfXCY2g0qQb5GQxCZvtujjk1VbWgAA/cqt6/gD/WOPZtekqpZDIGE7342Aiilwx3KOmAcaRZyplTyV5fYD4//xb+ehJYVlJYPffmi8DjzAahLsH6bCHx6QoLmgK2NwmaO8Zy/XV3CLsgXkspvFsX5erjO7GTDxvuK8u4duM6m/nxmdm0nOUQ== X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: baa36f1b-80af-4fcd-e349-08da9cb118da X-MS-Exchange-CrossTenant-AuthSource: CH0PR10MB5113.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Sep 2022 15:42:46.8051 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: n6SZ+BsxltLxEIwXbmENJ0CZCokeH4fbZDQ7jEOGY368RDvfn+L+L0cxJHTZ8Frrz/I5K/3QTjMTeIKM2RmTzLDkNkoBY76HiCEO2267bxs= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR10MB6813 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.528,FMLib:17.11.122.1 definitions=2022-09-22_08,2022-09-22_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 phishscore=0 mlxlogscore=999 bulkscore=0 suspectscore=0 adultscore=0 spamscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2209130000 definitions=main-2209220104 X-Proofpoint-GUID: 8ezqDllgYqfP0qGJunrBOFnePlb_e7Av X-Proofpoint-ORIG-GUID: 8ezqDllgYqfP0qGJunrBOFnePlb_e7Av ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1663861379; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=bt9CtrWG1S5Son+fucIKpV6bB2mdF26ziAG6aIl1FPs=; b=bZ7zkhiTnVc94HvUrEj0c1dD/69JKEF8Jjygv7r7TluQzPGwHIXdxKcxnJlA4IHVQ/A19V fknJ56NrCd+OHJh4xhl3q46hMYBo8Vm1gmA3P7DP8ES2Gv6qYkxOn0Sf3HOsgiUg2lgLh3 PllXsemIEO8BByEjgldzRg5DadipHaQ= ARC-Authentication-Results: i=2; imf13.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2022-7-12 header.b=qcWw37R7; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=hVCOYZRR; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (imf13.hostedemail.com: domain of sidhartha.kumar@oracle.com designates 205.220.177.32 as permitted sender) smtp.mailfrom=sidhartha.kumar@oracle.com; dmarc=pass (policy=none) header.from=oracle.com ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1663861379; a=rsa-sha256; cv=pass; b=cqMY2SP0nPMem2hWkSZY/luRCQ7ZqTK/uz8Dwbt6QsnUGqc9IJAH/8+0xF++CY+MRiiOcK YXwwCYA5dwR8ZEJwnkspHj27M171fW2UNAtiRr1DVnBTCbv5+stcrB9Yk1UquK/32aiA86 9N47bLBVb3/zg5+8xFaGsONA4JTpUX8= X-Stat-Signature: gfseb4wbfhr9tqtbgijcc3q7torm4oya X-Rspamd-Queue-Id: E7D5520005 X-Rspam-User: Authentication-Results: imf13.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2022-7-12 header.b=qcWw37R7; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=hVCOYZRR; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (imf13.hostedemail.com: domain of sidhartha.kumar@oracle.com designates 205.220.177.32 as permitted sender) smtp.mailfrom=sidhartha.kumar@oracle.com; dmarc=pass (policy=none) header.from=oracle.com X-Rspamd-Server: rspam03 X-HE-Tag: 1663861378-524421 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Removes the last caller of delete_from_page_cache() by converting the code to its folio equivalent. Signed-off-by: Sidhartha Kumar Reviewed-by: Mike Kravetz --- fs/hugetlbfs/inode.c | 14 +++++++------- include/linux/pagemap.h | 1 - mm/folio-compat.c | 5 ----- 3 files changed, 7 insertions(+), 13 deletions(-) diff --git a/fs/hugetlbfs/inode.c b/fs/hugetlbfs/inode.c index 5a4b136c6c36..4201bad56542 100644 --- a/fs/hugetlbfs/inode.c +++ b/fs/hugetlbfs/inode.c @@ -364,11 +364,11 @@ static int hugetlbfs_write_end(struct file *file, struct address_space *mapping, return -EINVAL; } -static void hugetlb_delete_from_page_cache(struct page *page) +static void hugetlb_delete_from_page_cache(struct folio *folio) { - ClearPageDirty(page); - ClearPageUptodate(page); - delete_from_page_cache(page); + folio_clear_dirty(folio); + folio_clear_uptodate(folio); + filemap_remove_folio(folio); } /* @@ -574,8 +574,8 @@ static bool remove_inode_single_folio(struct hstate *h, struct inode *inode, * map could fail. Correspondingly, the subpool and global * reserve usage count can need to be adjusted. */ - VM_BUG_ON(HPageRestoreReserve(&folio->page)); - hugetlb_delete_from_page_cache(&folio->page); + VM_BUG_ON_FOLIO(folio_test_hugetlb_restore_reserve(folio), folio); + hugetlb_delete_from_page_cache(folio); ret = true; if (!truncate_op) { if (unlikely(hugetlb_unreserve_pages(inode, index, @@ -1122,7 +1122,7 @@ static int hugetlbfs_error_remove_page(struct address_space *mapping, struct inode *inode = mapping->host; pgoff_t index = page->index; - hugetlb_delete_from_page_cache(page); + hugetlb_delete_from_page_cache(page_folio(page)); if (unlikely(hugetlb_unreserve_pages(inode, index, index + 1, 1))) hugetlb_fix_reserve_counts(inode); diff --git a/include/linux/pagemap.h b/include/linux/pagemap.h index 0178b2040ea3..4611156ccfe9 100644 --- a/include/linux/pagemap.h +++ b/include/linux/pagemap.h @@ -1106,7 +1106,6 @@ int add_to_page_cache_lru(struct page *page, struct address_space *mapping, int filemap_add_folio(struct address_space *mapping, struct folio *folio, pgoff_t index, gfp_t gfp); void filemap_remove_folio(struct folio *folio); -void delete_from_page_cache(struct page *page); void __filemap_remove_folio(struct folio *folio, void *shadow); void replace_page_cache_page(struct page *old, struct page *new); void delete_from_page_cache_batch(struct address_space *mapping, diff --git a/mm/folio-compat.c b/mm/folio-compat.c index 458618c7302c..e04a61905d4d 100644 --- a/mm/folio-compat.c +++ b/mm/folio-compat.c @@ -118,11 +118,6 @@ struct page *grab_cache_page_write_begin(struct address_space *mapping, } EXPORT_SYMBOL(grab_cache_page_write_begin); -void delete_from_page_cache(struct page *page) -{ - return filemap_remove_folio(page_folio(page)); -} - int try_to_release_page(struct page *page, gfp_t gfp) { return filemap_release_folio(page_folio(page), gfp);