From patchwork Mon Dec 4 18:32:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sidhartha Kumar X-Patchwork-Id: 13478937 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 F386AC10DC1 for ; Mon, 4 Dec 2023 18:32:48 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 728FF6B0187; Mon, 4 Dec 2023 13:32:48 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 6D8D66B0189; Mon, 4 Dec 2023 13:32:48 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 52B9E6B018B; Mon, 4 Dec 2023 13:32:48 -0500 (EST) 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 3EDA96B0187 for ; Mon, 4 Dec 2023 13:32:48 -0500 (EST) Received: from smtpin25.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 170DBA0A31 for ; Mon, 4 Dec 2023 18:32:48 +0000 (UTC) X-FDA: 81529982016.25.CE920B7 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by imf11.hostedemail.com (Postfix) with ESMTP id 5478740007 for ; Mon, 4 Dec 2023 18:32:43 +0000 (UTC) Authentication-Results: imf11.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-11-20 header.b=gKUTAwtO; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=gJwB3UAC; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (imf11.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-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1701714763; 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: references:dkim-signature; bh=Dq1cwoGrdsF8rX2j/190b9/CpmyAijmH2otOIHadQwI=; b=LsOaLWLVCQCpBCYqMJL437/Mh5gQiEQW9YAtYuSqSH2dL4VTnUgwXm/nzKYAcVwHh97+2r w2OxBo+G0oJaQFP9rufxorzJa8imrU8evULEADI7Zmb8cDHBY+8u6BPJr9KtFMMh1n817c ydbCTN3jiRGnodqkAvKWdhHyjGgQp3c= ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1701714763; a=rsa-sha256; cv=pass; b=MWXAhDZrzSDJ1w95WGwMeE/yVvGtsU+L/q5iK19hvgDw7gPDFB2DUUxLFjwpu8QBN3Q8mO 1KSh7eKBwhBIHpFS79nAnvitPokWvG6AcUTzuyCsGJWshv55jIxmMAG49gvLujtGjeoNkx xmrj92U8IHJg5PacEyYCkcM8yJAo04o= ARC-Authentication-Results: i=2; imf11.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-11-20 header.b=gKUTAwtO; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=gJwB3UAC; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (imf11.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 Received: from pps.filterd (m0246631.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3B4IVCPM009339; Mon, 4 Dec 2023 18:32:42 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : content-transfer-encoding : content-type : mime-version; s=corp-2023-11-20; bh=Dq1cwoGrdsF8rX2j/190b9/CpmyAijmH2otOIHadQwI=; b=gKUTAwtO1804stz0bnMRkRIUsFUx/9mozb4g7epOMLZxaUW8P0ax6xGxvXsiSHAa9AMJ wUjjA6TRYVvoHwouanqOEwrZQYJd2gnOBwyowUQdoODCEpraAxV5I2Q4k7+/0gqhgqJZ XOQKJogQpzfF+jzBfA9hJNl6Sh0dETj5EyuZ9XVHfSvu71peMLr6wel7/CY79kIgfm9m 6g+qZK7Y77ztWUhsEpKnt0zGm0+CZMA8XqgKoXUKk2tJLoGUS1cfPXprR1HHtRP4PiLX 2rPHZr8q2QJ2tsVp8fbJb5GQJ/6tXNroD/V0yHQbgDDDnpGklZQgG0VcsTWg7trrFZOl bQ== Received: from iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta03.appoci.oracle.com [130.35.103.27]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3usm488054-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 04 Dec 2023 18:32:42 +0000 Received: from pps.filterd (iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 3B4HldBw014421; Mon, 4 Dec 2023 18:32:41 GMT Received: from nam12-mw2-obe.outbound.protection.outlook.com (mail-mw2nam12lp2040.outbound.protection.outlook.com [104.47.66.40]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3uqu166gup-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 04 Dec 2023 18:32:41 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eaoxzNsLQbEW8q4rYQ0hVTi7p5PJBPSyU/bWYZhNg+kQP29IlmH9H0MpgqwaAR3y4D5X+XzVYfC2iHI8ovrhiMCqMbbumFAScFu2bU/e6atQdMh3hE2g0cRrM4CHCis2fxDTx5utEU29OmGN/rljURMrNKzyqtEaTRvh4XC0vmZBtrm9JzjoOOlskh/8oLJFEsksf/SuPENHHLZW0ucBMXpOlVF22L8Lg2etJssmO672vhM6LQ9ckX0S6TfSVjxcFoP4Qz3/Ovk6XQK7A9e0LusqGiFWc3bnM3WsEr+6ihxN2UyeDhoLRVbmG4MEpei6DYUiKqPM9WOdMOUccJsthw== 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=Dq1cwoGrdsF8rX2j/190b9/CpmyAijmH2otOIHadQwI=; b=BBenIr02/WT6uKVt51d/TVdyNfSrvMlxGQU4+JmyG77RUqPyC9XRM/wPfppq9IXkxad0k1iPjsFluf/DMuDQyIgqsRJybsr4Nqc8VDUdQe9tzz4SYjjgIyOBBV68KVVrfOLFb9HW4XAvZbWDQKt9X7sOHkdnybWo000YVo7MfuLih3MWEQwmSlHv7DudMbumgOYX8RNZQhdJ+9IF5LhH/+abHJXdrmaqAnSR7Ndq5Wy5rsKUdlMBrF9YsmztPjOGQSImAPOoHHmdE88pboI53H8cu7ISu0CZhlA6bWTzCB4D3OFIvHgY/j4AscVBYo1z5+05AOWvHDDDBEhUfbteCw== 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=Dq1cwoGrdsF8rX2j/190b9/CpmyAijmH2otOIHadQwI=; b=gJwB3UACPAQcWwOLfUUsszbN8tRdXRN1iIlPood3LxmEtlPkOCP2EB/4EygsDaTpxCoZvUAf5YKJHNzYYTzISR6wRBpawgyKpPUozUC8wNqpTAgSBtlrOzwAEWFPDXuYVps1sNDirEq3BYAidesJFajQqKg2xmkEPcqhfdXDhM0= Received: from CH0PR10MB5113.namprd10.prod.outlook.com (2603:10b6:610:c9::8) by SA2PR10MB4764.namprd10.prod.outlook.com (2603:10b6:806:115::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7046.33; Mon, 4 Dec 2023 18:32:39 +0000 Received: from CH0PR10MB5113.namprd10.prod.outlook.com ([fe80::7361:23aa:7669:bcce]) by CH0PR10MB5113.namprd10.prod.outlook.com ([fe80::7361:23aa:7669:bcce%7]) with mapi id 15.20.7046.034; Mon, 4 Dec 2023 18:32:39 +0000 From: Sidhartha Kumar To: linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org Cc: akpm@linux-foundation.org, mike.kravetz@oracle.com, muchun.song@linux.dev, Sidhartha Kumar , Al Viro Subject: [PATCH] mm/hugetlb: have CONFIG_HUGETLB_PAGE select CONFIG_XARRAY_MULTI Date: Mon, 4 Dec 2023 10:32:34 -0800 Message-ID: <20231204183234.348697-1-sidhartha.kumar@oracle.com> X-Mailer: git-send-email 2.42.0 X-ClientProxiedBy: SJ0PR13CA0070.namprd13.prod.outlook.com (2603:10b6:a03:2c4::15) To CH0PR10MB5113.namprd10.prod.outlook.com (2603:10b6:610:c9::8) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH0PR10MB5113:EE_|SA2PR10MB4764:EE_ X-MS-Office365-Filtering-Correlation-Id: 8739e990-057d-4112-58d2-08dbf4f764d1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 64/juXkTiISEzjSaLFWt97dZC611Da1ROs+IG31Q0qyjw42vSOSVTHK2aNgKTkjnby+EWBC/pBCQmqtNU0N8//BOPpIcF/TRXEZ15d4SrXbdAAKPhRSf7oCVKjsi3VC9Z2LvMEBRbOfyQfdEACuFMR/+At9JZOjIarKkTzJ+sPmWvuo7v1m1wx3x0OI9iI1XblDr7X7lWhlB/8xBPGEDAlO/kA/Oig4n8k7b5fFE33EyHB4DBDUvos2uJ7KufnmRspNonpIEZtgi5DhKX2PtUZ8ZWiBqxR3RUWn8A5N2gUJVd7fD6+i9huw7biJjcoJUuB/R4Uleu6lWRQ1/qrNmVVGphwOEBxbg46/h5mRFZUdqUCjY93MzG7q/vIMdt3FobSwGWtXB08fEnMcn58cO5CHQGMj0iC4WZMN+C58el/rwu69ErNHUU3LkIAkAQj7XZZlUmmBeAacOKSMbzWtpirFR39pGkachgImK8qsCMvy8ynUgDC3/xCc1RivJ5v7boJyexiF2L8U5OgJPITgjDFB0NhughhWfJOO7m1HaUFjLVMerXp2f+5eiqJ9sH0zo 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:(13230031)(39860400002)(136003)(366004)(396003)(376002)(346002)(230922051799003)(186009)(451199024)(64100799003)(1800799012)(66946007)(316002)(54906003)(66476007)(66556008)(6666004)(6486002)(478600001)(5660300002)(41300700001)(36756003)(2906002)(4744005)(4326008)(8676002)(8936002)(44832011)(86362001)(2616005)(1076003)(38100700002)(6506007)(6512007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: jS3iwdc0A8RUgp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ev9QKGts1Zr8uAy87V9iIN4hKnzGiWcD4Y7f6Hcy6jXLxqAScH4Juf1lNKq/AWsjI+P0VK0aukx16LHaW14X0h5HqSCLtSo+Q8Nz+a/rDxaAmQ7hEjwOekW7RnNlAHuiJpNifbXMtqTROyfKq08lKE3wVccV6+IMNSIeXnmhVdtcLlEDJVKRwFoso1LaeufACeBuYwufe2+e/SUUfLafHOsqIH//xtptLelPbvVa2p1psQjVBVfyeVDbsG+gkuIhT2kTehu9JD/GOCym8EgxoMHFLJo4D13734kjPkIYinmUxPcmPSpqU4/P17AvhxCUtojlTcptnqMxwOKZKYZLE79z6qOx/xAB+VWcKuRCCvnPfpFn5V/E+A0crnpcndOfR5W/IqFUGa6nEWsz+17w9aIOdps/ZFVj9VxQDkLmodrCEDPRzFGZv6TyC+ae27MVBv/gKOHetImxxAhxc= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8739e990-057d-4112-58d2-08dbf4f764d1 X-MS-Exchange-CrossTenant-AuthSource: CH0PR10MB5113.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Dec 2023 18:32:38.9952 (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: QJmhG1Swimcpu598QprU0m/oANm+Ok1sHdE4t3bP4XBWyGnxWMuoIB3BNa2bW016jWrAYsOZROJnPZovNziYUhpUjWVxVEkTFwAc+X116q4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR10MB4764 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-12-04_18,2023-12-04_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 malwarescore=0 mlxlogscore=999 mlxscore=0 suspectscore=0 adultscore=0 spamscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2312040143 X-Proofpoint-ORIG-GUID: 9ME4yC1tXOYa7Ik8CNFF8QUxh74iqCGk X-Proofpoint-GUID: 9ME4yC1tXOYa7Ik8CNFF8QUxh74iqCGk X-Stat-Signature: 87fqdmeneperakdg8bic4gd3dfrebub8 X-Rspamd-Server: rspam10 X-Rspamd-Queue-Id: 5478740007 X-Rspam-User: X-HE-Tag: 1701714763-758852 X-HE-Meta: U2FsdGVkX18llNlRpLB7DAYc2PlE3IbvhMBjMEPM6vbLomy2bgPyI4pXcmnYhW3oYWLk6St0S7wfiV+OnpzVuKM0e/qJO5P7VWoFugV4BlkYcWIo0EnDo2Hj1THZQxBGW7F58ngUBn4fVhpT0kGAX9M3iExJzbvnR8jpsVNpFAT9Y7UuRFCB6n4OTnzUOutVzkwQS58/vobl8doAq+P73AQ6PveIZ7m1Xe8UDo+aI3Lwa1q8Ol8rnkL0b3o29k6DIoBE1PEyC4Nl7T+kqoPVsxLPVZm2Ma+73Fl0aPcC+BiimNYEnzEZj6pMAUkOoi64sC8sIh3jpRAswYOoxFB9HH5kt9/y5n6/tBwWhakPpuV717V8yKIYJpRxsQYUvG+9fAuf3z3Rvx3lvKfchwtzwS0e2XLHrY69JJLfvqY2k0rbeBrTvpRUpt7ECj7eW+Eh7r7iEYEC0dJhDuhdaJ1AhdO2d2J5a3Z0Akv9CsgZbsONCQzVFkKsPVsSwIo1yZQNx3GERymBTsSUMOxur1l2rGIdmCFZ4i72+YsDvOlMLPkJaImRaXCW3ooMZPFE2nT6JtAiXLq+qGpRCZCqC933DVnW+AeI4er6QpNupcDfLDx1i2P0MAf93STjinaYu2UrDKeWIX4H/HsE83i/sgFB6RA+RsJBGPaGbNkA6/pF3RsDbPmUStkFEW/b57nSD648eaePV1+5nJEWS/63b/nnv5U8nEdn1P7tDKhbx8ZSNzF5n5Rn6Qj51f4ysMOBPYCh8Yg56J+UvEmGoIlKG44Ga4t8lfOlu71dXTHMbDJRLOk4MIDyBQ0gsUR0eVoGMERBh2Ou5832nnRl1D23hbqcbQ+gQnrD3tVVCYOYiTk8WNXDbrxAJW4ZC+mctPgabVwRYIGI3rdTxt3tEbkXSA9O/axija7zGieUUYT0j2pz/Y7sjdbXl7vl0L1G1nwcBMASyPGvn84h7WVCct+mo4F x9Bnnujh VNM9BJ3Uz4uqEpMx28e8ePoaWBUvxatVrOev2AD1bn8L6WfLdRXmK4QKGEARsifGzvcl+5d0UY/ANxd782et+0pwaUhKzimYWKkU9JUwPt5CRi3icjjlcASXClBemvSoF9MQYdp8+qebDW6qr34drpS0g0BA9MvPPrwnqhL+Q+WEfPKccF7/BMIXDbVLpgrTJBoEGpNwtzCEMvhhIz8NXVQ7Sw4Vpy+8n8RGKbgA0YtFNTcxH4WJXCZnINsBr6EKkgBVaN/hXpeL2b3g+nkYXEo2KSG1FdKcfX1+HlrfBDc8NPQ6OGsAxdal1zhaJkKnROqBsJH7p6ai6+wE8A0ZdninfV2ma98a8lYzAL5IaI7HvpS9trOAdWZqfefFfhi+NFCbAGweCngju58Y56F5xLjy2TWHBeayZu4tnTWyf/RoCu87dfB76vuGkcr6qK7tnBRGyVdeALC8+dp8WN4RBhhNFO0rYxxebI8EUNiCTds0k+8z4rdl2WTPfhNidvMgKwhKokdeqT3tXB/58YqTuB8pgjHsPf4quM1H1 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: List-Subscribe: List-Unsubscribe: After commit a08c7193e4f1 "mm/filemap: remove hugetlb special casing in filemap.c", hugetlb pages are stored in the page cache in base page sized indexes. This leads to mutli index stores in the xarray which is only supporting through CONFIG_XARRAY_MULTI. The other page cache user of multi index stores ,THP, selects XARRAY_MULTI. Have CONFIG_HUGETLB_PAGE follow this behavior as well to avoid the BUG() with a CONFIG_HUGETLB_PAGE && !CONFIG_XARRAY_MULTI config. Fixes:a08c7193e4f1 ("mm/filemap: remove hugetlb special casing in filemap.c") Reported-by: Al Viro Signed-off-by: Sidhartha Kumar --- fs/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/Kconfig b/fs/Kconfig index 0b404e61c80b..cf62d86b514f 100644 --- a/fs/Kconfig +++ b/fs/Kconfig @@ -279,6 +279,7 @@ endif # HUGETLBFS config HUGETLB_PAGE def_bool HUGETLBFS + select XARRAY_MULTI config HUGETLB_PAGE_OPTIMIZE_VMEMMAP def_bool HUGETLB_PAGE