From patchwork Fri Aug 25 19:04:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Kravetz X-Patchwork-Id: 13366213 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 4E75AC3DA66 for ; Fri, 25 Aug 2023 19:05:39 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B9175280038; Fri, 25 Aug 2023 15:05:38 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id B4115280002; Fri, 25 Aug 2023 15:05:38 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9BB31280038; Fri, 25 Aug 2023 15:05:38 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 8C21D280002 for ; Fri, 25 Aug 2023 15:05:38 -0400 (EDT) Received: from smtpin01.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 4C8BBC07A2 for ; Fri, 25 Aug 2023 19:05:38 +0000 (UTC) X-FDA: 81163555956.01.FE24493 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by imf09.hostedemail.com (Postfix) with ESMTP id D0CF5140010 for ; Fri, 25 Aug 2023 19:05:34 +0000 (UTC) Authentication-Results: imf09.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=xGHrmpjR; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b="hI4Y/O0q"; dmarc=pass (policy=none) header.from=oracle.com; spf=pass (imf09.hostedemail.com: domain of mike.kravetz@oracle.com designates 205.220.165.32 as permitted sender) smtp.mailfrom=mike.kravetz@oracle.com; arc=pass ("microsoft.com:s=arcselector9901:i=1") ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1692990335; 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=IaKcsxb0rORIYwEUogPfq5hXZgITbUVS8py0jJm+tS8=; b=QmNHvykeKRxrfXXChdHwV4dPv3ko/6fBO55EqUosBT0ixrSHmWxTiGvnB2VCBJcqLRuWO5 LMia6PUedzYZ9LwuQqq5uVnLAtJYXgCdq+Yz0DnaXs47ifpxeiYLWV8ICckc4L+vr6qmDg odphyL3VyXLRAnHr6a+fNNo91JV3CQw= ARC-Authentication-Results: i=2; imf09.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=xGHrmpjR; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b="hI4Y/O0q"; dmarc=pass (policy=none) header.from=oracle.com; spf=pass (imf09.hostedemail.com: domain of mike.kravetz@oracle.com designates 205.220.165.32 as permitted sender) smtp.mailfrom=mike.kravetz@oracle.com; arc=pass ("microsoft.com:s=arcselector9901:i=1") ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1692990335; a=rsa-sha256; cv=pass; b=AiSL0G5sBZDQU4/i8PjSWHKwo69PUY9qoLzbjcuo/8jevWFo9NHSnmvcbYd8/3D80tnl7a cyfSQTfXJYY1TPRADYksG3i+w8348kTdJAuMfgB30Bx7B6mOxnysIKmxlIsQKebST369nL VnMi5kYWsVPbY/Tsi4AMpkK+injvtqo= Received: from pps.filterd (m0333521.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 37PIEo51009220; Fri, 25 Aug 2023 19:05:02 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-2023-03-30; bh=IaKcsxb0rORIYwEUogPfq5hXZgITbUVS8py0jJm+tS8=; b=xGHrmpjRHuI4SZC9aEhUGA0vOyePfNynrPdGtR5O0oCvqwmF1se1t0bEu/rm77E7cJ0Q Dl2geZMi6P1Hndvel2G7wrecV1P/xxvrzo4gPLFm7d2lCjYP0O9/a5fBwl0qLzFMcnVr 46b5RqXXZvFvmjSVc2SvQcWWimQi5jC6tslA5TMFcsZEjcspRuiUWSQzWp8qhz7Ek803 MdFSacYj2DrrKolaH09A6XX82XG7eEVahUE/z3WPwmReyRy+GZSGPMPdlTWm6h3zhk0F 6HQZ1h0v5G/TVjo9Q+YnBSmRhoUNKJZl2NUox7KkpK+Jc7O6rTFhZ2Afr5cqT2ecLjx0 6Q== Received: from iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta02.appoci.oracle.com [147.154.18.20]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3sn20df0ss-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 25 Aug 2023 19:05:01 +0000 Received: from pps.filterd (iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 37PINZgD002154; Fri, 25 Aug 2023 19:04:49 GMT Received: from nam12-mw2-obe.outbound.protection.outlook.com (mail-mw2nam12lp2045.outbound.protection.outlook.com [104.47.66.45]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3sn1yyg87c-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 25 Aug 2023 19:04:49 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iW5DcikoTA78u9+ccEbN2VYVGLJbVFfbRtNzag6Bn0qxGSX0BImdca8IAyt29D3U30Bzr5QdySfm6auaFFeATCnKcixEskHtCl7WrixtdLbW+PYUo8aHl1rlZmSGQEA5Koud39YBtzRwQdOYvXiHg3m0qhOU3Yuv3QFzG67f6u8EgE4jEuc8nmDFsYVuOtMivwYibViUsPYSRupTgPAuY0VynyLnCDhXoS8de8eHxJB1SuTrLuHHZWRXNcplOStxkx9fm0a2/zECzmPbpIMkMrfABVbG99cUde/XvRz3sUMfpHUpVecvyzj24SXF+MWKj0CvJNS/eWNF6tcV9QIEVQ== 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=IaKcsxb0rORIYwEUogPfq5hXZgITbUVS8py0jJm+tS8=; b=K1CkCPj7lh5kQlLA1ihj4um3wmpx9DY5RwYNs/zuxHCKE2EU4OBdr36QTgcnwghzqI1jESm0v3LE36BZkWZUrQM+h2LjIvavWiF3/iBt61voGUhvaokWvjb/UfVhWeaMESz+Irwu/2WAij4uhYPEjkHj2A9zfm9gJaPu7cyFWIfKDJ84gCPUNBkuuP/NQC66lK9C89jjRE6nxtiFuAJK0iC+hp7z9PU/DlWJVxTb2uuzCrkFdnyAgw3bG+vjwMeCycxAxCmdjxX1rHtc3ees235Dr0C71zapuWgA9UTQjfFzCDdyVQslOobyXYo/X9nQIPlLs0Um04Yi52JCg3dEmg== 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=IaKcsxb0rORIYwEUogPfq5hXZgITbUVS8py0jJm+tS8=; b=hI4Y/O0qALFameayMJqP+ScXqE2PGpVnVUhrxPui+6KD7R+U5NFoSFrBxfluErZ7Wv9si+q6ElZiT5GQU3Revv2c9wMpi6uDWbHaL2+ttIJroKfAKItWVeCysoAQW8T9B7B7Oey132R0QqPrbqPyQl2alYiQwtJl6lMPvAeR05Y= Received: from DM6PR10MB4201.namprd10.prod.outlook.com (2603:10b6:5:216::10) by DS0PR10MB6895.namprd10.prod.outlook.com (2603:10b6:8:131::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6699.27; Fri, 25 Aug 2023 19:04:47 +0000 Received: from DM6PR10MB4201.namprd10.prod.outlook.com ([fe80::8057:a3e9:cbd1:252a]) by DM6PR10MB4201.namprd10.prod.outlook.com ([fe80::8057:a3e9:cbd1:252a%4]) with mapi id 15.20.6699.022; Fri, 25 Aug 2023 19:04:47 +0000 From: Mike Kravetz To: linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: Muchun Song , Joao Martins , Oscar Salvador , David Hildenbrand , Miaohe Lin , David Rientjes , Anshuman Khandual , Naoya Horiguchi , Barry Song , Michal Hocko , Matthew Wilcox , Xiongchun Duan , Andrew Morton , Mike Kravetz Subject: [PATCH 01/12] hugetlb: clear flags in tail pages that will be freed individually Date: Fri, 25 Aug 2023 12:04:21 -0700 Message-ID: <20230825190436.55045-2-mike.kravetz@oracle.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230825190436.55045-1-mike.kravetz@oracle.com> References: <20230825190436.55045-1-mike.kravetz@oracle.com> X-ClientProxiedBy: MW4P221CA0008.NAMP221.PROD.OUTLOOK.COM (2603:10b6:303:8b::13) To DM6PR10MB4201.namprd10.prod.outlook.com (2603:10b6:5:216::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6PR10MB4201:EE_|DS0PR10MB6895:EE_ X-MS-Office365-Filtering-Correlation-Id: 95a40a7c-5363-4624-817b-08dba59e2671 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: yP3DnUyfzMA4oTljGSq/AmrA+/3u0aNjm14qs89BR7Mz6d3/040LqmaqMne8G1kl8fqgFqFXFGbiKTEBU2QmnQigbydAc6orUkFlIpGP9EAj7l+4Iuwem3lOc4xAxxorrdQQzqJ6T5gcSdHQxSTRO7xHaK344ZN1AALSCXXz1Pw+Ei8P/uCH3sDbNX92ODvGNgFq0cp7sez75JHfB38TFvIAJIypBO3GAvbmgZFnCIyX0Hh32Ih56pJCltPKbBVACituLkmPpIU0z+DTe4rRohWVMaGXN3yvkiwhbrEoUFk4cVmbNVdefEIHAlMFm5Ycxs3s9iOUKSRjFhoO3dFTXsv/bGJJHK71UYdq+RyBdid9+mjI0kn3BeTvfjLhVefFnXoJ7j8crNsvO9OOCRb3oDGQzoQVM6aTjZEVd/ZVKyPfYor98jnpfuMqibX/DiU5qtVDfJRVgpfn/jwGYUlPsXebI6hdrxa0Q5eNcWIOfxMfUyiwfrzF+9Oi+sb2M43gV+efRSRBiCkq/wcOctc9Em2Q9xyOtxQjO5kjPh9Ww7zHsRlm5KKL5rchdcPRYNKY X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR10MB4201.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(39860400002)(366004)(136003)(346002)(376002)(396003)(186009)(451199024)(1800799009)(54906003)(66476007)(66556008)(66946007)(316002)(478600001)(26005)(38100700002)(6666004)(41300700001)(6486002)(6506007)(86362001)(6512007)(2906002)(83380400001)(8676002)(8936002)(2616005)(4326008)(107886003)(5660300002)(7416002)(44832011)(1076003)(36756003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: gbYYzec3acpvkvv+xt1dCMgHomCJZpfIZ9VGWdtArL61Yi6jJbneOG3USNorKXbUK9foBJKcCUiL3nsL2AG9tTZuW/TxL/drExCxsnoD+OVtEy4sbz3FRGPdD9fur6M4DgiX1hbtGttf30n2T/LibvzrYHzqrZsz7AfyMGI1eilOpulOFKfHyObV4Hx11+1kJ2at6jpNBkfx2xskhHuY/ogzhGqofQz5/vpSYMrqUqU9NpdozrmBp5O57FvSaSdSenCQP11stXEbGgQnOiLZ7i7cOcKYsDFe4a0jant02TmLdO6Md1Bvih3r+jtuEKPdv9hdtw3ktxut/1HtZBhdfuIEzGDeDaR6BruASUgSz2io8peFRdzN8GL3QCDs+UDI5OP6IG5KTx6nI0h1yoc8dlOgBuBYHuM2iY0diGrmK1UbhbNCEcQNmDa6FkuPRA5PZuuI7BlW7dcaWGQHfJngoLUjQBbCOlzQbPGR5bkTjzkFWC5zb84mvBn1GoT0+CNFCgOBdRAr+LAkgc2PogTSYy7tiPJumPOR3t33wBUXEyDWrSi5sCm4JcIktkRf2HpcBj7r6lJoodgbabIX5wQOQ7pdc+3oThAHCLZOVOwrCzGOMNoRxcjSidfDZNilRzdZyXQ/rkxgO/tJ10HfXQPFbjQl10Otq/aJVWygzw/iKiSJOuAhRlX9nJhK6XpBPHiHs2PZSxAY7PrtqPzMqkmcAb0SkTbAUuXm6XJaDeLoTdnOPtMARBqMTqtxdhIWkIf7Mf3c8xXvsIGtNVjf8Q7ZwMPkiqqYDG9NbdtZkNldVRzgTbnS0nAia/3NWxUOchfyTr+BCWg70I3r0fQzAhShfO9ErJ7eLRn8H9LAaAn0K9SHXKpZHl2109AviA1MEac41D5DmCq2obtPe1yCo+gc7rXsXEFtQSmo3j3+QM+xLUx4QHx2/Gp/x7Ez10Gf1JNlDC2IPf3wDww/pZ537E8p29uEm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aUTNHLMhOobmPh0LmpM3adiGG+WI8p18J4ytuf7rTHxFQ6v71Z+F/j5Yoh6AdZl6eI/3fYNyy2N0h4YTRt3Fc3CG9dqoKO+jtApOXQhXZYNp99zi3T3Vp/mggMn0nU5CnBKmEdT/QdhYnVuSwliTc1G601fvgXQl7UKUpN6viZf+piVxCd5AJOrLaVwGCIS3CIQjay4H+T2pVTVnvmTce69MbU9rO8x1+D4gAQPF3P3UEosKv03VgdrBoPH7tv9Sf+bPJSsNur4HdKj2uvXhzovBSBauEWJC+69Pmf75i0w6unMazqta6ZcrTg4VtvlL4YvOporNsSDpgZonCn33eT4MPvP/LiEjNeXDPTN8RpKCqGlEJVgdUPJMbpX2fmiEaitDFwGbAOdRsSRzPM1A7/EWy9QO+3X9SMlZBU0Ji+deY3IuTcfQSreSB0zC8kEliyRpE7kh5hufT4dyXFXsXaxsYFQ/BdxesP6NxPTtmSEbHHbDr3x6ZLndzISDaDGDYaPf6CcK+RjVCrrBeJIZ/OrYg9wHmroNeLRUhJpqurmdNUjAfCrVQLONAVqnCyp0mbMK/CdduXmCtxL31HuQYrfbRpfzNPeQ5rW8H7VLIQ1hbFS05NtIcWq1T3yTvK5iIUoqdlaKLFyirf96nAzfv8PffFGEQXszv3nDrUmOuDmJlsX/uCRzX2SSd9LemsO2ETPPNoBgxNAaXvdbnsikRxJCmkbBayfNUZ0ADrdgZISFEUS99EqW177+YUPL72RGcUFXeIq2NgS9c6xtgn68LCMGIOZNA X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 95a40a7c-5363-4624-817b-08dba59e2671 X-MS-Exchange-CrossTenant-AuthSource: DM6PR10MB4201.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Aug 2023 19:04:47.3441 (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: tzXB29o68g/CAMe5RmHwZw+C5GlRk8ogcsrK+e4jDYuVSRtyyMgOp/18T1Q9LB12PbH+PndMRTKUD7AHYbqVZw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR10MB6895 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.957,Hydra:6.0.601,FMLib:17.11.176.26 definitions=2023-08-25_17,2023-08-25_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 spamscore=0 mlxscore=0 bulkscore=0 malwarescore=0 phishscore=0 mlxlogscore=999 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2308100000 definitions=main-2308250171 X-Proofpoint-GUID: 3i6DDmuniE7-GNmQInzbcIkT2a_yHKJ7 X-Proofpoint-ORIG-GUID: 3i6DDmuniE7-GNmQInzbcIkT2a_yHKJ7 X-Rspamd-Queue-Id: D0CF5140010 X-Rspam-User: X-Rspamd-Server: rspam02 X-Stat-Signature: 9rf3uyemyuzw9ic9zskf4p38konofarq X-HE-Tag: 1692990334-981006 X-HE-Meta: U2FsdGVkX19bBJSBVU+QyTj/4UIH9KTddoX18sIpF19L9ecTKyInKhlLJMgv32SCVGWlLe/YpYf0Q2LQXhypZ4vHC1p21IFWwqHGZQcepsQMuXkY+yNql3aYjRLp0X4/PciBhLr5ChwpFQxSrdjMIzvMIkj/sMjNYctKecvUyMD3CFYXwJx9in3AfTM9EZgQjisqmFaHSBjRNRChc2/4jZ3Y+4f3/gaeGpcy5//SclLbIvYjcMWcNRkHSunCZ6uT3DEnlK/bVv7zMjte0ZXkMg8jKh3ZyPiouNPWjqqe+El1GoalkdsG7E8kv6y+s4+xOxCjBktRYef3YIekFG3kQHMkZlthUPlqY5pLuoILhHg4g05NZm7csbCE8qkZPJitUZYvoiKfBlZpy1FSHtiMWneVquMIuVkir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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: Signed-off-by: Mike Kravetz --- mm/hugetlb.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/mm/hugetlb.c b/mm/hugetlb.c index 0bf70f27c1ba..ba6d39b71cb1 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c @@ -1489,6 +1489,7 @@ static void __destroy_compound_gigantic_folio(struct folio *folio, for (i = 1; i < nr_pages; i++) { p = folio_page(folio, i); + p->flags &= ~PAGE_FLAGS_CHECK_AT_FREE; p->mapping = NULL; clear_compound_head(p); if (!demote) @@ -1707,8 +1708,6 @@ static void add_hugetlb_folio(struct hstate *h, struct folio *folio, static void __update_and_free_hugetlb_folio(struct hstate *h, struct folio *folio) { - int i; - struct page *subpage; bool clear_dtor = folio_test_hugetlb_vmemmap_optimized(folio); if (hstate_is_gigantic(h) && !gigantic_page_runtime_supported()) @@ -1750,14 +1749,6 @@ static void __update_and_free_hugetlb_folio(struct hstate *h, spin_unlock_irq(&hugetlb_lock); } - for (i = 0; i < pages_per_huge_page(h); i++) { - subpage = folio_page(folio, i); - subpage->flags &= ~(1 << PG_locked | 1 << PG_error | - 1 << PG_referenced | 1 << PG_dirty | - 1 << PG_active | 1 << PG_private | - 1 << PG_writeback); - } - /* * Non-gigantic pages demoted from CMA allocated gigantic pages * need to be given back to CMA in free_gigantic_folio.