From patchwork Fri May 19 22:01:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sidhartha Kumar X-Patchwork-Id: 13248920 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 174A9C77B75 for ; Fri, 19 May 2023 22:02:27 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 0CBDC900005; Fri, 19 May 2023 18:02:27 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 053CD900003; Fri, 19 May 2023 18:02:26 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id DE810900005; Fri, 19 May 2023 18:02:26 -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 D007F900003 for ; Fri, 19 May 2023 18:02:26 -0400 (EDT) Received: from smtpin29.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id A5C3B1A0B55 for ; Fri, 19 May 2023 22:02:26 +0000 (UTC) X-FDA: 80808379092.29.39A51E9 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by imf17.hostedemail.com (Postfix) with ESMTP id 523B140015 for ; Fri, 19 May 2023 22:02:23 +0000 (UTC) Authentication-Results: imf17.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=TDVt5Isk; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=KvKEVrwK; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=oracle.com; spf=pass (imf17.hostedemail.com: domain of sidhartha.kumar@oracle.com designates 205.220.177.32 as permitted sender) smtp.mailfrom=sidhartha.kumar@oracle.com ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1684533743; a=rsa-sha256; cv=pass; b=FMUB+h+tN1TRHSNgzSEI0bTx4E0JtWnsamAsD8Hu4aBCHUKWwm/4QiSXbscMRj/oOCNpOZ 5CmGRViM20cSZJNBIwWivbc822sEZUlUCube/CSQskdlE4m2kBS1LqNoN/Ngf9eAIC1vH+ t5uxCh+5XMrLolT+y8pid9Jw6R2XeVU= ARC-Authentication-Results: i=2; imf17.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=TDVt5Isk; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=KvKEVrwK; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=oracle.com; spf=pass (imf17.hostedemail.com: domain of sidhartha.kumar@oracle.com designates 205.220.177.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=1684533743; 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=cI8XDeykOtIhoSBVPDCTYwMHK/12a2A2FkU9PreC4R4=; b=IBmoUDe387LSuM8COoVuSoMzQtcAe7FGHD5CJRjLiKpmc5KqV4eAMIHmYb2Xjo8Y6KfLMd eq3R53dI7fILDbvCN3Gktj9zerP/SZS8ptOoO8TLEEps6MNr6RZVAO/G3ygKEGJVTSEepv CcsZuA/dSKSleC8zTCbTKVXeG9ShtAw= Received: from pps.filterd (m0246630.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 34JJEHwh019014; Fri, 19 May 2023 22:01:51 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=cI8XDeykOtIhoSBVPDCTYwMHK/12a2A2FkU9PreC4R4=; b=TDVt5Isk8Ojlaa/g8NXnAxLz9DD5SmG8MC3QkWGKDwZEu+IC22lKpBr2ozsAShpVp9VA y/AsgdQ8PPnTmqdQDLQu94BvDuJvqZXpwclGBTFsFWeBhAtrO9YtVdKcB8lHNFYps0Yr I56DMb7NQW8hIxip3+GOImLMowyn9OSt+yxeIq4LOsQzbmNbt5Fqeco9Cv5ScHuBDXzc BIICnfcDR7AB3GHcvE43BZlVsvqQ8aShaXSLDhd0RA1bjOT5ILXnUuVhPBUJHAebVHZL YC2lKdoMncVWqNZdY7U2sL8hvPXUhGPDgvwJBrcTHK7YHNPgLQ6NVlmpRIcUb6NwNOmy 9Q== Received: from iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta01.appoci.oracle.com [130.35.100.223]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3qj0yeb336-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 19 May 2023 22:01:51 +0000 Received: from pps.filterd (iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 34JKSMC2032139; Fri, 19 May 2023 22:01:50 GMT Received: from nam10-dm6-obe.outbound.protection.outlook.com (mail-dm6nam10lp2102.outbound.protection.outlook.com [104.47.58.102]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3qj10enqdr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 19 May 2023 22:01:50 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TwDV3VRloLuAjmTg5vZdcjZJQ8Gd8bKwXL0k55rJZI5dFFIKVMqwy1jtalJJ6rcNcs+JZr/m+dZJ7dBfk6oER4AG+S5b7ty4ox5Er0+7SGZR47N2MDBPPqcX6mnFG2uoTCH+8tWsX88a8nQgGyeuHVyZbSYKQYIMhnNdUoFbG3IhQ+zbEsLIh9qM1u4GlediCsQUyl3j1jxAOYKvDUNJ8stDURmQ+qa8VkHdwIBwvMAShCk1bNG3ud/+tFJ0iBGIbZceOLE3tOP0sh4uNpH57R6YLwVEjZ3DxLvEmT8mZnCpQ3eJIFpI6zJo2/66wtOcuB5Am9AHMcDjwQ8nQEJ0uw== 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=cI8XDeykOtIhoSBVPDCTYwMHK/12a2A2FkU9PreC4R4=; b=bHfYn2NzdIqC+mf5IZ8706NOmzBRwThlDmADDJWpeZrCiYGMr9NIVs3oKg4fKOGm714aH7DrSvaw8tgY2V124s58YUyrbV9SAaznhrVFOcimIHQHd5lGZxJxpazw1MB69+Ntttw3vcErVbZeerFIcdEGpP3gMhadaX85CrngwVlMcov0cq3ABRmE2YTzwdk08exosV+jA5r46O39dXij4zCmt/MD3Y9yrZhxYKIrAi2lx5gorr6byzcbl7iWdDTYvMQTlDZBUPTLXfGmK18BuoMvsmxGtQ260Xm1/LUSGwY3UR0PdqS2n7j+YfgwEhIF6PLjijwx3N7H+VBiGh1urw== 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=cI8XDeykOtIhoSBVPDCTYwMHK/12a2A2FkU9PreC4R4=; b=KvKEVrwKCAOXd4qIVk7C0MpZkqq2kzYLf55ZJeIElHXbBu/eoIPU/W7EsSjD+z7TYBvdBondUrLySiCwxR2G5bdAUZaKBCHQoQe5mhcC8765syxbZzWbRTWjjtc0lpSOWf88x3JzCSt5+y0x6xRnkIOMGz7Wz+b3Q+m+MVCgwNg= Received: from CH0PR10MB5113.namprd10.prod.outlook.com (2603:10b6:610:c9::8) by CH3PR10MB7862.namprd10.prod.outlook.com (2603:10b6:610:1ae::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6411.21; Fri, 19 May 2023 22:01:48 +0000 Received: from CH0PR10MB5113.namprd10.prod.outlook.com ([fe80::12d3:3f71:5b55:c342]) by CH0PR10MB5113.namprd10.prod.outlook.com ([fe80::12d3:3f71:5b55:c342%3]) with mapi id 15.20.6411.021; Fri, 19 May 2023 22:01:48 +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, david@redhat.com, nphamcs@gmail.com, Sidhartha Kumar Subject: [RFC v2 0/2] change ->index to PAGE_SIZE for hugetlb pages Date: Fri, 19 May 2023 15:01:40 -0700 Message-Id: <20230519220142.212051-1-sidhartha.kumar@oracle.com> X-Mailer: git-send-email 2.40.1 X-ClientProxiedBy: BYAPR07CA0002.namprd07.prod.outlook.com (2603:10b6:a02:bc::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_|CH3PR10MB7862:EE_ X-MS-Office365-Filtering-Correlation-Id: 5c44ff5c-71fc-4cd3-ca9a-08db58b4a47b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: RrtsDBkIx7BuU2puP4W4A6bpfw9RVt6ulz8VoL/CxV3882t2gDXzLrCKi3IDbiYRkCFvoERyqExx7lnwNPqYPiFJ//VPVaNkC6yZisUNLGlL7bAlf+sU/BlVctBunny70puXKbW1ZXGtknBHYksP8UkUq+MswCtQ2uh94l3OjTLvA4UQH9ZG1B1hqMfTWvXgz34xh0UXVhB3OYbQFLBEAFqH0VaEzfrP7XucuXs0Kmi26n23mmhIhVzK8a8ss39pAYLwU7QQi4+z7D3mL1Fq0w4DmHp0WT2iKMUu8YQkSAAVY3QawjaSVTJgBETR6b70R8E+Q2t6jx/cFqqYKISRPQJSn2fI/04lVYUMnmnZUQ24knf/AMNt9xgurbypcQpBkC+EIIK3hK/cDf9eqWQtuvE1vQm1IPDNTEZSiiPmZqO51Trm9fw3u1ouwlPE58G+10gSBi+hgCt5lnefT/yCvsKjrrlQXBrwNeWgypmpQn+LxDxlLgEPIjTXiqHj/tps8fm6N4x30QuZ0IvY5jBLbNrm5YIEE+ueUm+sXmh3kPE= 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)(136003)(39860400002)(346002)(376002)(366004)(396003)(451199021)(86362001)(36756003)(2906002)(2616005)(6486002)(83380400001)(6506007)(6666004)(107886003)(6512007)(1076003)(4326008)(66476007)(186003)(66946007)(66556008)(316002)(41300700001)(38100700002)(8676002)(478600001)(5660300002)(44832011)(8936002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: JOFBXQ5qfk3xs+JERKSKpLlMmeeejxzlfQ5QIZKesVZYsMDyGRZLQTzEW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O07Lxb8HQ9gKJscDeA6RxemJFykQoi05odMRs3BpyQJOIa44wrTiu5cqjqwewoSow6Gp1bfc0WFEn7N4oA48HEacU+IIgG7mEGgRMsjl/KmKLnS7204834EIIB6uxcYOx4mQGK/eveAb26FXUskoCFX7MHGbfT74ztNbnEqZaqjWaLCIaAIyPBxAgoRWMFfGIfXVD+fnPlGiQdiFZ0v0tICrJhWUXrQcoTRRhIXl463eZmysTfrDhNX71rf4kmlOdjiMaDq0usZ4DO76lTvndxlNpKAH30Zc63P7ajpDHce1JG7biIH0pn+5V+8EPuUSfVtQx2b2Gy115Ldyj0oQfRQGq6eFKWLrsdh3bXcuJjff8oyWtLmwck0u7TiRYgcgPp7AePeqJ+2lwfE3+c5QeYoIaPKpE7YWSgBMi/u9b4LoUsq17uSIvUZJIt9fMr2yj+K+WF7FvWaefbHKxEsDw8kbqpSJCKkENAxsnqqlR514GgBwU0zjmtnTA= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5c44ff5c-71fc-4cd3-ca9a-08db58b4a47b X-MS-Exchange-CrossTenant-AuthSource: CH0PR10MB5113.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 May 2023 22:01:48.1538 (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: QBph0Lg9cdTE0hGOmtyq7o09yN3lsFeyM6mVsHm1BNokNviVM+Zfi+nHUmJ/BGmGkTmEQ2g+8Vfz/TQJWT9DLBDur/Jit6UZopsyq/MZWPY= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR10MB7862 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-05-19_16,2023-05-17_02,2023-02-09_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 adultscore=0 malwarescore=0 mlxscore=0 spamscore=0 bulkscore=0 phishscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2305190190 X-Proofpoint-ORIG-GUID: 03hDKDYjeXY2T7Y6Tr8zZaKOVY7ed-dh X-Proofpoint-GUID: 03hDKDYjeXY2T7Y6Tr8zZaKOVY7ed-dh X-Rspam-User: X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: 523B140015 X-Stat-Signature: 39dphkbjzpzxtgx4538brcqssjcsn586 X-HE-Tag: 1684533743-183484 X-HE-Meta: U2FsdGVkX18fCKM4oLrV2j7vU3KOGs67NeUE7Z2xKumiCex9tRf3Bxpb76F8wrje+n6tIiFaZjAm/wVTElKJJxfKswOMFB0FRoCC/UhcK4gGot7gW9+FRZFf1S7Y0f1Lvb72c8fpZCwoDqzsDXndP5GChtha3gjwzZxQpwd5wsmos5zyUC/ECut22HUBlrn63QMrBqpgnLKeiyxtidgPryHsfq0XsJWqxevQN+4C/G4e4wq54zF/WQOB/wc/9Ylzm/8xwz/PofWcIoPo1rh9Gdy6XByqonLDvPlMkpGyI3qHuO32fAJOjbu5O+VWZ/KvY45UkeuTJFCtsftO5GA7Azr/FWywCOD5bF/vfHR/vhB0E6PiG+RrCbcGqp6peyjfvz21C3w9b6drP9eOEueYKcdShzeNbPyAnXxjhvNERSDRyoutEl2g3ktJsDKu/xyNfxcnu1apievsGAoNTTnFhtg9E+Pxdny6bl/a7gTNrU7MpPDckij9t6/+CIVH3DrErIKBOB0N/v0IkfG0ilkbG87HByuH5G60mwv36AXKMT50zcz1erOmTeQkyDP3+egMuo3tYRqjBXgluEQ3woPgy9VGQWmWDpuGukhuSUDKSvVNQcjIMe9jIy9FpYWpY+wn7z1Q3SbcVYo9NES+pYGAqYFLqhnuJw72QEegnHfcOELeScoC8zAyRlVxkneMM0AttFEGD4mPTo35qTCibF8ikGVi9AfUsOZgaQvMepzW9JIvjXO8vU8ycSkjoiD1CTwNsb3H7v/SR6t6JPxtBC09V4EhaftqTVDh0g1sL5BsoiQPnXCKPcXZmVmjpddmhsyTwDIPUqKIKbaTDegqirsQVUYVdzQdYpUbYIY9Ty1q+59AuprdGfpYItg6CHCl+C/SrSUM4jbvPrPXmTdiUn7FFje+8G80Q/kZC0u2whCooyH7o31tbZsn5Zubk1kCGU4fuc9Aq31oqkKhcsKF3FS xKCiE/Kw 7hOwegMvyetKmUaMXN1+p5OAn031IX799WeTmbA1Q8hmDlFnnCvqK7fPbAhTXWm6GZkR79TIQw1fFcybl7PyZa0ZiPmp/z8smtjyweFT5cPlcA7fgfkZTkRI0aAB25cNDk5cdUcMxl9hXk6xAzlKflpNlM9dd3x8tJByM6Lp7iU1nDySfzSuciAMC8adtzgxgO8t89xKoB1vIBDVay5syIGr62ah7qx9F3/yEK6mKDflXA1UBIE1zaxsV5jiu7LZ/wCswFZPKr5dPovm0LmvaEW9oX3J+TTPzCc2EX/BSQzaL7UgnUYFLKXYrA/k1BA4sMaM8uiWzwUThJzS6FL/XGGgMPNFxd9q6mFXxACDEVnv1PmPF8PVtkrXiSQ+ZF+WwPVLtAamtjk+0f6FbUSjee4NWEuSAvzhAU/1nQRAaRO21+bbgqMDWE9EHZQhMoTI6b/g+og5cThI8Uco= 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: This RFC 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 last RFC[1], Mike pointed out that hugetlb will have to maintain a huge page sized index as well because it is used for the reservation map as well as 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 as well. This series passes the LTP hugetlb test cases. I will do more testing and performance analysis but wanted to get some early feedback if this approach is acceptable. [1]:https://lore.kernel.org/lkml/20230425012721.GA6696@monkey/T/ Sidhartha Kumar (2): mm/filemap: remove hugetlb special casing in filemap.c mm/hugetlb: add wrapper functions for interactions with page cache fs/hugetlbfs/inode.c | 14 +++++++------- include/linux/hugetlb.h | 21 +++++++++++++++++++-- include/linux/pagemap.h | 8 -------- mm/filemap.c | 36 +++++++++++------------------------- mm/hugetlb.c | 22 +++++++++++++--------- 5 files changed, 50 insertions(+), 51 deletions(-)