From patchwork Mon Jul 10 23:04:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sidhartha Kumar X-Patchwork-Id: 13307811 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 A4CC6EB64D9 for ; Mon, 10 Jul 2023 23:05:55 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D3B438E0001; Mon, 10 Jul 2023 19:05:54 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id CEB9A8D0001; Mon, 10 Jul 2023 19:05:54 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B3DEE8E0001; Mon, 10 Jul 2023 19:05:54 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id A2F078D0001 for ; Mon, 10 Jul 2023 19:05:54 -0400 (EDT) Received: from smtpin17.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 5E471AFD8B for ; Mon, 10 Jul 2023 23:05:54 +0000 (UTC) X-FDA: 80997236628.17.47A6954 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by imf09.hostedemail.com (Postfix) with ESMTP id C8378140007 for ; Mon, 10 Jul 2023 23:05:49 +0000 (UTC) Authentication-Results: imf09.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=3l4FU5hl; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=jEQQWXi4; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=oracle.com; spf=pass (imf09.hostedemail.com: domain of sidhartha.kumar@oracle.com designates 205.220.165.32 as permitted sender) smtp.mailfrom=sidhartha.kumar@oracle.com ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1689030350; a=rsa-sha256; cv=pass; b=T48eU1sAubWXcja52kAlGRp9dkInmIDZgfVqlCvLqVL7MezTzlI0xfDeC6bnNrY0ZHeFVU OnUCI0rSYg9OwzASu6M3gtcbXS85E7EHQHlIJks9B6ZOOrVbTdbTVnypZaTjVCZs5kvUCP CSGoOMUDzk067Moq8iSjTPpu1wWvLxo= ARC-Authentication-Results: i=2; imf09.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=3l4FU5hl; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=jEQQWXi4; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=oracle.com; spf=pass (imf09.hostedemail.com: domain of sidhartha.kumar@oracle.com designates 205.220.165.32 as permitted sender) smtp.mailfrom=sidhartha.kumar@oracle.com ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1689030350; 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=ddw8vvxnMaZ5QJEIQHQCGFP32Sl6kqvbyaVBZ71ZMQg=; b=H+OQXALd6NoM7MPj6TnO51zY33N5hN1/bX0EI4K1T8+/Cz/pkxlp+qc6HpybiMPwL6QXrO AgnTj9lqCR2thOJh4GRanlZ255D+AweoIrdJSJvoSy+AszU6qz9Vhbiia0yesc3bIoFYIs NQ3NN/tn4AjIRlELfptUkHlzVyu7wJ0= Received: from pps.filterd (m0246627.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 36AHuVSQ027999; Mon, 10 Jul 2023 23:05:25 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-03-30; bh=ddw8vvxnMaZ5QJEIQHQCGFP32Sl6kqvbyaVBZ71ZMQg=; b=3l4FU5hluSZeWlUc9Cku1UhqFe/gRVc05KBJ94Vw/4tNrrC/FSAt4EiOm8otmy5w7pmC +Oq2E62TLZwhhts6eCGWVoXLWizSV94Lago+fjStHQd9jPwQTac/V7qYbIp0Ce4XtvZn Ui9Mpjp8G//hx0NPCh9TlzNe36bAUch+Ast3RsN+Xu9YVxAtIB/JIorpkKpTweJNRc0q HvsvUB46p5jpMXwpQFDDWBZb/TfOkqdtsf+aDPg+dpcdJNgVBC4FWuyPAySizABJJYfJ /soopXAVh4Y/lFA8vpXZNw1J1sqaMMreRYi71TOKvlkhc6glBGxPmUPxzUYQI3fRCFT/ sQ== Received: from iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta03.appoci.oracle.com [130.35.103.27]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3rrfj61k7b-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 10 Jul 2023 23:05:25 +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 36ALFFqj030798; Mon, 10 Jul 2023 23:05:23 GMT Received: from nam11-bn8-obe.outbound.protection.outlook.com (mail-bn8nam11lp2169.outbound.protection.outlook.com [104.47.58.169]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3rqd28bmp7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 10 Jul 2023 23:05:23 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HZJRY2fvZiffWhns7+uGupsSwueiAopa4wuI9XH2Q8wbWuiDgRLPQJ654ah6VqNA/ip7pMdGeNqa1M9TJO7qg/ORQ2RmUHp4r9k8rh6CgfjMzSAHghySHzGiizxZZL9bBNGdwmAweGEw4eWoKyih1sKiDY2jgafS7G8W7tVBDKqgvbftZtQKPn9X0cRFk19A0HIhshVan/T1/0NLqBBuSHA0CCyKMBMH0+sUKxQwCcigDeByJn4zWa+NqgxB/ad7IZLAkOGF2L5JKfmtXLLPT19caqBY1IF9cu/TLLfEqudVpFdEoKgbSu71ERJUVZoWSlq+ShY/IzINjHKq1fa+TA== 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=ddw8vvxnMaZ5QJEIQHQCGFP32Sl6kqvbyaVBZ71ZMQg=; b=jSbGMou3UgGHUUm+ro6yOI+gnLIx0ylEiaIKvgC6VfcqHEliCiWETz3esBl0xq9Iw3FGXQBEjwjzhjClB9IgR/zmNU2EMHbrp17OAceX8P4AFcvLfilelh2WANawWXemN4jLsrenVeXv37T7rX6b9UCUqBjKh6p5BgoZYXOX3j4KnVzMxo1XdjvWO3Z9TiDsqWZ5Eb+SdjsM3cY66DgLoBjTyGm8M0mlHwt7ONuMB1AS46Sk2yyScANomozpAqD37LLaIP7itllOwikFHVfM6Qt6eOnxKJZGGqxNjMeaGV17cqTj0AboUQ2xQVVflhe/vS2CokI9dSTrOx2s8rbV6w== 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=ddw8vvxnMaZ5QJEIQHQCGFP32Sl6kqvbyaVBZ71ZMQg=; b=jEQQWXi4IipwWM/Kr2RTwN/505Z3FnrZaeTnX9GLvbLt+MWhfGGa/4LM2LIQDs+HOcdvDkCbKU0Wn8eWHR2RS9LAf+GAX6V3Jhq0vzsNPVLdOmoFdNChjsKTTvHSkwscLbOXm08TJSJqIpReoYgDrldTltCDkJs+NDg9H1hFNLU= Received: from CH0PR10MB5113.namprd10.prod.outlook.com (2603:10b6:610:c9::8) by PH7PR10MB5856.namprd10.prod.outlook.com (2603:10b6:510:131::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.30; Mon, 10 Jul 2023 23:05:21 +0000 Received: from CH0PR10MB5113.namprd10.prod.outlook.com ([fe80::d9c0:689a:147b:ced5]) by CH0PR10MB5113.namprd10.prod.outlook.com ([fe80::d9c0:689a:147b:ced5%5]) with mapi id 15.20.6565.028; Mon, 10 Jul 2023 23:05:21 +0000 From: Sidhartha Kumar To: linux-kernel@vger.kernel.org, linux-mm@kvack.org Cc: akpm@linux-foundation.org, willy@infradead.org, songmuchun@bytedance.com, mike.kravetz@oracle.com, david@redhat.com, Sidhartha Kumar Subject: [PATCH v2 0/1] change ->index to PAGE_SIZE for hugetlb pages Date: Mon, 10 Jul 2023 16:04:49 -0700 Message-ID: <20230710230450.110064-1-sidhartha.kumar@oracle.com> X-Mailer: git-send-email 2.41.0 X-ClientProxiedBy: SJ0PR13CA0048.namprd13.prod.outlook.com (2603:10b6:a03:2c2::23) To CH0PR10MB5113.namprd10.prod.outlook.com (2603:10b6:610:c9::8) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH0PR10MB5113:EE_|PH7PR10MB5856:EE_ X-MS-Office365-Filtering-Correlation-Id: aa18c889-70b8-4809-46a5-08db819a22c7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Hl1J/PkyO3mFF3ww8XAicOIU7VYfTLtmgLxWejpwzOwE+TBclW2V8/QYi+C0F3PT4V04fwUjvtenXoPOXKC15biy2rUpEliQ+J6VOBwt+tawXX8+cY8GECIc0pTmNXsZ9ZkfQTPUevoSjz/VI4AlCGbuyQD0StYZaNVIeQjsi61FsIPvw9SDnOP0Snaig4nB9yfoawKJuqVPSmRiCuCaolOsBNoK9NY0oDnM0+NWplWGY7vcsWtIno6c9eQUe8JxdqAleQspW2rG1mfhejBqUMcIa9kLifrfJLJiWEXsiiuvzTYRdm2QEkPQorlMbAWnY0PGIaJmQqZr8oxv5gx7FwCOxmvTvt/0c4cm+b90eHdLUWAYsDNiG9IaEz9QYB2/KxEAKJOxxxm8ySAEWFEuM8gyVnWSkn3t1BwUSaHlA9rBBRa3VyqtlTeYeeeAcmkmKOCNwhMg9edq1xN889Zv3Amd07bp5fFWOMH3YNkBf8/W2IcDddH3vkkuYGz+Gj78fnwMG/9oLr97yqwKNLWNemws+sNN4GEkfEIyZigtlCFjWcH2Sl6WnjzXATlLMl/O 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:(13230028)(39860400002)(346002)(366004)(396003)(376002)(136003)(451199021)(186003)(1076003)(2616005)(6512007)(6506007)(107886003)(478600001)(83380400001)(41300700001)(4326008)(66556008)(316002)(2906002)(5660300002)(66476007)(8676002)(66946007)(44832011)(8936002)(6486002)(6666004)(36756003)(38100700002)(86362001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 0+nvvbWQ1t0dME5dH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ZJfJTctoMf51XBU6qttr0CwPargvsDTVFH4gJTEVCGUqeYsNE7ttyiOmbSQ5FjFnNy2QGzvR4WuTosR55S6dbd2NYm+1CVlkrHfv04Ot3ZGxMS9p6lh2k5L4mSkT/KmVe5LlSl7gwFHb2f/1WVnP3G3TYtpjJiwCasIV9uhDn9CUi2lUX9uxTzbzQcb8iTNlQyTyvbGT7rlrcdY0MwG6boaSVaQJHWv027MzpdG7l0YD3hgoFsa69ysZZ+2ll4zp2dfgIjfT3lK75xnjS3e7nKHYzJANDrnaRJAoQ9LbW46N5M/mxVyC88oQ/Lqw4IEGN2vMlMiufK8JcR2hqs2IXTESUHnHsYpi6unZ7Dh28xHL7eco/xgcfGfLw2UV2eK3cRjrz1KBH6oIhmvA1Wji6wH3R1AV8XqprA1QupeipQswcREvQ9Y4bHg3IMH0x0pjUP3aaDjMZzL6CnjfOOjl7cbnboD2shzVJ+IoMV2x2NVhW1qiHNlW7J9EfQ X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: aa18c889-70b8-4809-46a5-08db819a22c7 X-MS-Exchange-CrossTenant-AuthSource: CH0PR10MB5113.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jul 2023 23:05:21.3624 (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: w3oqtZf97H6qjiH27mQTv1pG0eb65tA+XQSLxt8un46sXuKeGATmbaewkzCodoBJ4p+fnlluHQHYU1u+7f9xKTyjQYtvQVbRp13j0jjGYDw= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR10MB5856 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-07-10_16,2023-07-06_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 mlxlogscore=999 adultscore=0 mlxscore=0 suspectscore=0 phishscore=0 bulkscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2307100209 X-Proofpoint-GUID: m0ytpZvstgMBRkoW-mfvYlV0bY-G9_RJ X-Proofpoint-ORIG-GUID: m0ytpZvstgMBRkoW-mfvYlV0bY-G9_RJ X-Rspam-User: X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: C8378140007 X-Stat-Signature: 8sy1qpzrci7mgegoretiz1gzdxxem1gy X-HE-Tag: 1689030349-542534 X-HE-Meta: U2FsdGVkX1+GTfd50JyNKLYEAFhEYa/kktBUzlestoIbSIwlwVs7XUzn8CJCGIJaYkggvXb+HLog2ckpf5MkQDQ8gOdI00jhmIMWqSzfpc4CPuFuOXiZoggyMwvO9cqmqOxQXeIKLP51aliAhOM0DVHCpqO1g5qVElkTzQrNcucw2x1iaTzSCgF1OkIqqkTZ6C7mGLaCtGKmJBbbSKEjviCRBQ7WgVPMwVo9vv8b28ze/QAiyCxtLAfOuRgOt9D1s6xXzF8COn6UDknw+E/1hitoGYgntlr0k0+qvAvNQl/eDCgsEOhYxfSUOODlwd9R+7WlNAVaxVRyHkzY7xgO7sZd4GSZGQlR9R9Oip8/a+qDfak7jJzgY+NfGi0mBRXylAtYg5GigJa1UYVAkXmGxM0zaIJZfTBTj/Goe3qcr0lPQjv3NCX8jlPrl6SlV/opM0SBM0xa9IQViMSzTCznus8nfj4AXGeOVzmHyt5T7odXCJDRrcTu+4kPyM7AfDyjOfSD3qvbNaSUibvkOoNvB8dVq1wWDuZY+fcBfvHu5ZTb8g3ZLvNe/2O587MTFt5XS4IBCxGKd6VzXGZ+oTM5KNoM6aHUJq0KgmxeXF57HmwcTF/XVikoMyfc2s6BtVN+hRBjgVDOp6CUaCy4mKZ2phlbexzTjL+PrKO6/dDe2HLVUZ+txQ9ozgktQd50snsPTD4BHqbbPMtE49Hvf83CdvCriABFLzxhjA4V1081p0C1Wb0FTD9TwVoxfVcyTJk+teAWitZy2EHh53m1/23yVADNTn5i4W/1esRTM+4Ik9uTD7osir5/2BvPDEUI7JK9jlR9i2S83ghEd9vUfgll+nx70IU8St0x5RlC6PaYArr7at++FSvDbE48nDZp70U7vqwjzs4EHk5oJMNWM9+m8tDWU4+RuEGxiTdlYyf3YIJpmYqdT8R/yNQ/ot4mJoNEgQD0hfxw0YIYn7MQGDZ eDfeTh3M J+eF77IkVo+PY1tB8O0qvNrL/2cDkNheh28+56UZdqnrFqyQYXNl76qaE10F34E0sdWZNKtpsRFQeFQquvlS++dNGjwz7bN+V8bs6QauyPjBvEhRO7ZFURUx0d0InZMms2bISbv48Irhg0PpyX2bbFPgYzSAyreIsJPYNtlkYd7mquDqu2etmJdmC0VT8CwM85A+ciML7rl59tV+uiJcZw9dwhlN1fPqbMiVbhOWEbPQ37YzjcxA5pyxLPaH+RWhDhlPsqSziyNy4+mRkuPjJ8xHUucM2Cj1gb4E+l22YdY/rJzPKnqmgA8E8GVQWReXF+qRhGzbat2iEPBK0tjrXcMZKwRd4cfxpp6G8ORhwtQUMblIv5uLItfxhDoIs4ogVTP0upiZ4FTiZ7v3h02LxwV6HvA== 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: ========================== OVERVIEW ======================================== This patchset attempts to implement a listed filemap TODO which is changing hugetlb folios to have ->index in PAGE_SIZE. This simplifies many functions within filemap.c as they have to special case hugetlb pages. From the RFC v1[1], Mike pointed out that hugetlb will still have to maintain a huge page sized index as it is used for the reservation map and the hash function for the hugetlb mutex table. This patchset adds new wrappers for hugetlb code to to interact with the page cache. These wrappers calculate a linear page index as this is now what the page cache expects for hugetlb pages. From the discussion on HGM for hugetlb[3], there is a want to remove hugetlb special casing throughout the core mm code. This series accomplishes a part of this by shifting complexity from filemap.c to hugetlb.c. There are still checks for hugetlb within the filemap code as cgroup accounting and hugetlb accounting are special cased as well. =========================== PERFORMANCE ===================================== 6.4.0-rc5 @hugetlb_add_to_page_cache: [512, 1K) 7518 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@| [1K, 2K) 158 |@ | [2K, 4K) 30 | | [4K, 8K) 6 | | [8K, 16K) 9 | 6.5.0-rc1 + this patch series @hugetlb_add_to_page_cache: [512, 1K) 6345 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@| [1K, 2K) 1308 |@@@@@@@@@@ | [2K, 4K) 39 | | [4K, 8K) 20 | | [8K, 16K) 8 | | [16K, 32K) 1 | | 6.4.0-rc5 @__filemap_get_folio: [256, 512) 11292 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@| [512, 1K) 4615 |@@@@@@@@@@@@@@@@@@@@@ | [1K, 2K) 960 |@@@@ | [2K, 4K) 188 | | [4K, 8K) 68 | | [8K, 16K) 14 | | [16K, 32K) 4 | | [2G, 4G) 4 | | 6.5.0-rc1 + this patch series @__filemap_get_folio: @get_folio_ns: [128, 256) 13 | | [256, 512) 11131 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@| [512, 1K) 5544 |@@@@@@@@@@@@@@@@@@@@@@@@@ | [1K, 2K) 996 |@@@@ | [2K, 4K) 317 |@ | [4K, 8K) 76 | | [8K, 16K) 23 | | [16K, 32K) 6 | | [32K, 64K) 1 | | [64K, 128K) 0 | | [128K, 256K) 0 | | [256K, 512K) 0 | | [512K, 1M) 0 | | [1M, 2M) 0 | | [2M, 4M) 0 | | [4M, 8M) 0 | | [8M, 16M) 0 | | [16M, 32M) 0 | | [32M, 64M) 0 | | [64M, 128M) 0 | | [128M, 256M) 0 | | [256M, 512M) 0 | | [512M, 1G) 0 | | [1G, 2G) 0 | | [2G, 4G) 3 | =========================== TESTING ========================================== This series passes the LTP hugetlb test cases as well as the libhugetlbfs tests. ********** TEST SUMMARY * 2M * 32-bit 64-bit * Total testcases: 110 113 * Skipped: 0 0 * PASS: 107 113 * FAIL: 0 0 * Killed by signal: 3 0 * Bad configuration: 0 0 * Expected FAIL: 0 0 * Unexpected PASS: 0 0 * Test not present: 0 0 * Strange test result: 0 0 ********** RFC v2[2]-> v1: -cleanup code style RFC v1 -> v2 -change direction of series to maintain both huge and base page size index rather than try to get rid of all references to a huge page sized index. v1 -> v2 - squash seperate filemap and hugetlb patches into one to allow for bisection per Matthew - get rid of page_to_index() - fix errors in hugetlb_fallocate() and remove_inode_hugepages() rebased on 07/10/2023 mm-unstable Sidhartha Kumar (1): mm/filemap: remove hugetlb special casing in filemap.c fs/hugetlbfs/inode.c | 10 +++++----- include/linux/hugetlb.h | 12 ++++++++++++ include/linux/pagemap.h | 26 ++------------------------ mm/filemap.c | 36 +++++++++++------------------------- mm/hugetlb.c | 11 ++++++----- 5 files changed, 36 insertions(+), 59 deletions(-)