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: 173514 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp2955874vqy; Mon, 4 Dec 2023 10:33:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IFQ4iaRJ3CBKzkXpQ3g+97KJjn6/XiZlXcsU8uzVB6+946ZthuHOHnKu3usJQD3o8QjvWEm X-Received: by 2002:a17:903:248:b0:1d0:9c03:a7dc with SMTP id j8-20020a170903024800b001d09c03a7dcmr1391790plh.100.1701714780244; Mon, 04 Dec 2023 10:33:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1701714780; cv=pass; d=google.com; s=arc-20160816; b=q9f0SMnznT3M91cWXqdK23kdBv6+7vk1vpIuP/+pW7hHQTDVni5Myusb1xIkd2+J3A /SmoU7hXIU19uLtWo9AgAE3u9LKB33GTAYCBP5eZDaqHVoyB1y/iZMLr8xgDTEUb5PBC 3+CJ4SreKomqK79GgWcPQh+RWRcFqbR9LAKQohSZtb5amYkbljabxnBnhsESb5m8iA+B DXum0GAZZ5SYVWzyd+EocVETY0NsoZPpc2xC8OIupTwjERE/V2c6HPQG4VuPEhwb3Qex lzwiv5Vgjc9MOERo8ddcEKMzkl8/iH+vEtMw8SMdG7JMob2BnxuvCzUl3v337iLyZZNm djzA== 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:dkim-signature; bh=Dq1cwoGrdsF8rX2j/190b9/CpmyAijmH2otOIHadQwI=; fh=mo8xTA8B199Df87XTpEwRewbnvY57lU0U1cEfIAxd68=; b=TMWBAw3rnPSTzuH1V+xCqa4CdhxST6W73f/JSkeuWBcFgxrXXoovebybt0M1uXvytc jRmOGNuspS8DyYT+OdAZC4+1Rvu+0E+XNqIfHuI26+fIDeNqckORhvoR3IcuuyOWNnaH uDtp218kvrEEqJ2Uuiu5QGKENm/zZVpl5DQFSXi2t4IwWwP18oSIe8F5C/0H/WxYI/oD MApjMJISYTfQ7TV9rvFtXBEIpCsLSysRQGbuU5vl/GVrF0901LialSaBlo+3HYIYrAk8 b2cNGv74GkEW4GrZYY6vPO0cxE99F9BLfud3Zzj7CyEUHElQdDBm7Qat1gYPS3vdxusU gSeQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-11-20 header.b=gKUTAwtO; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=gJwB3UAC; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id ix14-20020a170902f80e00b001d076ffeecdsi3934314plb.198.2023.12.04.10.32.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 10:33:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-11-20 header.b=gKUTAwtO; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=gJwB3UAC; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id BC6BB809B768; Mon, 4 Dec 2023 10:32:55 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230323AbjLDScq (ORCPT + 99 others); Mon, 4 Dec 2023 13:32:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54672 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229501AbjLDSco (ORCPT ); Mon, 4 Dec 2023 13:32:44 -0500 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1684CAF; Mon, 4 Dec 2023 10:32:51 -0800 (PST) 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: jS3iwdc0A8RUgpXYA9DB6ifm1t7LqKbyGsk7ramnXKPgQtu98ifkNV/clAsaQm81wVAOmblPCFyEkPgAyODo6wVXgVF7N80z2l8wRlO/EaKriRpn9Y/2UGwkSjuWiAC8VrR+mDt12OU7N4CFoot5em2+YoM5KvDPxWpvpAXi6BMukVuTtnElb2Mdo21L1Ab4NnhCexNbSZnO6cOfuqgodW0aRtg6aXfC35Opm8ImGMS1DXEb7lI3Ud0sROmVdJ7KW66G2XDz43EGDKVqTqWvnp0xcdsi8WFyMeU6h7HSrUDDe+44kRzcQaBKDptXlcnwwDn7To0M5SUWBRKu4EUz/WlHqHopJLrGUf2li4L5F03u+iCFhypqnNPMnIg4j/bProuubVnVzPo69BegwXffruJl2CcvlNj+S+L0aJBXymH3RM0sPb+h3kvGd1Cz8Q8FmwIC77E74unbfkgmD7MaFL5h0Z+aEI9hpPv5sZ69qsy+STmsH6bvZfcP1quqW8oCzgU/eFQU1XskS76JccEixdbktUAn2Otq1NJ24WUqzM6TKt5PJw++ztNzrFBSgO+aAEIuPia5ALAhksusmbVFQOLq3sxBKYeeO0Z957wWDF/4fTkumoE6+EgMjJBvL1tFjHFkT8Y3cWoAZUx6qd5MGYcLsUjtIuAGYsunmFT3bEmd2CWd7jmc99Pe+n4vmj2kT3FnmZA4xElFPgX4gGb9DJ0W/1XxglLBe6tCh887XIUGiod+w4Q6JqCkoml49U7Zo3AKD5OIe2qEPMxP+ZMBelDBy0kVccrDN24asC3y2W0ApBPZfx5Jter5eJf/21LU3DpvMlqza3Cn7N0K4djBjGCEe9O/8CK1tFAqFrSCnRsS+qR3mhE5egZ0H/1tJtvCsAHO9pJaKvamEkAwrK3AUmm6Kpemd3uFGqnjjiWpyZvjve5V0KFlQ/7TrzyJYg9UuW39qd3eZLMTC+43Nb8768fChno8E1kadSHVuP/2lRZ/U12mLwtXy10ISo9DH55NzV05q/BmBIzeg8VgcydF0Qz8MxWpBjo5+/bXoVj3Avu57joqMSl76u+cIfllBc8yAocm3sDCPEt0pC+5L55kspN/NwBup7DRwJcxlqNI57dfPE7ZbQWgfQEGYV7A7m+PeCSH4jMxBRETReHNWiY4ijyHAzFNrxsAOJR9SAJyt/fO1SU8B/jM0PhaLd7AAS1Frrga1raI+qSHoqtHxooFbdKRIaS6k2kLnpZCIxXxyykAnV5dpoBBY+VAZgVXdO4O15O/FIkiTKp24akPyQHrvgeC91gFXIhEj9MwyxLngyA7uUT5vKUwFdEhrywQfncHzjPwMF8xdYD1wn/z1OOOFH4nfoOgR4Ay8Ts6KEmB1WCoWjpgqXVmD53c8k5FxsK5vjpSJqxkZ3+xbp7XS4dVWf0xRh7Z60OaUDvIEFKgHGmemNOXtWVPuCgs3KXQn2EvZAipjTa37SqHF6czlj+FhZGzbd0E5mBSJ8zhKMyQOnjWP+oyKtQHXprmis9jCo+m673SwM4tID1Uub240+d4Tc5QV1987bebPoGGVCwgK/UL4vFAX1Bl6pxkssHHIWxkacszFwzeTENn6hObq1lh64KONnE6w33KzzVeaJVz3zo= X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: RJyEy5t7VjXfOj9eJUAmixiBJpsgJvrQQANgUBslgTC3EPvSTuijX458mYIh1UmylqvH4/yDBLqxm98iXjwMC5LmhgnhM5hjtt9pjaeZmnCFlcO0MNUXlUZWEdFKqC/OzCsHKjRys/7ybXg9S2Xsr2suU3QDXu8jceMOi+nJAQJ1fBXDwkG1l+Tythq16HkBhBjpnF6bY9yLd86dWUlcFMxJC1NbxVkQeJ7SNojjophfjTkkmEKWeWVB4JGeeiK3mTXD/y8DVsbuzazyyqq19XinNN1CqlxugFZfqo/ZH52LHUZGY6HPYAJNFnktyxXRz4uOfhn9q+828hFyPHS3Zg3J2JAWkpVWFSWCvBOmDmS36SKRce+0m3xrJN9CvMI5uEEWfAt8fGsKnP+xDCS8kOhfjSZQOupdhwhJQRAelh7rg8DEhsdWo29ChR7YJmnAyI/2sZbU45ScuqF+TaM6KDOEv8Ev9QKGts1Zr8uAy87V9iIN4hKnzGiWcD4Y7f6Hcy6jXLxqAScH4Juf1lNKq/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-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Mon, 04 Dec 2023 10:32:55 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784377277763218814 X-GMAIL-MSGID: 1784377277763218814 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