Message ID | 20230830184958.2333078-2-ankur.a.arora@oracle.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 0AF6EC83F01 for <linux-mm@archiver.kernel.org>; Wed, 30 Aug 2023 18:50:42 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 52677440171; Wed, 30 Aug 2023 14:50:37 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 300A8440174; Wed, 30 Aug 2023 14:50:37 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id F0DE9440170; Wed, 30 Aug 2023 14:50:36 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id CD892440171 for <linux-mm@kvack.org>; Wed, 30 Aug 2023 14:50:36 -0400 (EDT) Received: from smtpin02.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 904B240388 for <linux-mm@kvack.org>; Wed, 30 Aug 2023 18:50:36 +0000 (UTC) X-FDA: 81181662072.02.81EDD2E Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by imf17.hostedemail.com (Postfix) with ESMTP id 3920A4000C for <linux-mm@kvack.org>; Wed, 30 Aug 2023 18:50:33 +0000 (UTC) Authentication-Results: imf17.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=bU3ORyE+; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b="XWE/Ilpx"; spf=pass (imf17.hostedemail.com: domain of ankur.a.arora@oracle.com designates 205.220.165.32 as permitted sender) smtp.mailfrom=ankur.a.arora@oracle.com; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=oracle.com ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1693421433; a=rsa-sha256; cv=pass; b=lWHq2kcrs0aCjPiPwQQxtPA6Y/sYalbdaY/guoJ4HFK6r7VB6tGaBjNMk0/GB8cgzn3Hmg Lrks4UmH0dCj6yYONsGuasDUCaO8BaK4KAw64na5Jf5HHaInj/nUAiMc0T61yZdQdjOlCc Cp1xJE3Okdyjgh3REF5kRrLLX5vHsxw= ARC-Authentication-Results: i=2; imf17.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=bU3ORyE+; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b="XWE/Ilpx"; spf=pass (imf17.hostedemail.com: domain of ankur.a.arora@oracle.com designates 205.220.165.32 as permitted sender) smtp.mailfrom=ankur.a.arora@oracle.com; arc=pass ("microsoft.com:s=arcselector9901:i=1"); 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=1693421433; 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=V2qBt25bpg2D3yMTQCWte8BlIlS/6RXGVrigjE6CaKg=; b=cMCjGMwP+E58IFqdxk3TSsMjgwTfrN019H7+CMp1U9f8Pdfs0akb4tzTTy+lyKYfJ3oLom ouzUgbES1bpw7BI3DZT4i44emdBZaMrBR1HoC6mWjZyD9nFYFa/6KPdy38vJ5DQzKUyJSI Xd1i1AX4HRACcW1XR+sIV/AysOGOl+c= 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 37UInfdj032402; Wed, 30 Aug 2023 18:50:07 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=V2qBt25bpg2D3yMTQCWte8BlIlS/6RXGVrigjE6CaKg=; b=bU3ORyE+KcJVO19uIH+FQhex8iHbNXXa5L5qX6DsfGpOb0a98DzGaoPsxfWz8hyBa5TT ZRxIFdX+oT4AkZetf5YhruZEuz53uRR0kJpr+1HEArV4zl1C5GOOSw0h3P1T9PwUIvPS ILuM3PmuPOk5+qffLuzhKQDy21VJDAyPiCUPj4QjBYalMZQBHcauY8QF3HZghSe6HrTn dNDwA/AC9kKib3K+8gi3DmWjCR/9OVQCPCAtFpv072+jTTWbUgkPj6vywlq0smh++D43 eJkZjNBzzpnD1cNi3ERUQh90Vxo3rXeHpyw8vy7tCgMSNnei0Em36DO/YxTjeax3OE/q /Q== Received: from phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta03.appoci.oracle.com [138.1.37.129]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3sq9k686b2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 30 Aug 2023 18:50:07 +0000 Received: from pps.filterd (phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 37UIDu8g032772; Wed, 30 Aug 2023 18:50:06 GMT Received: from nam12-mw2-obe.outbound.protection.outlook.com (mail-mw2nam12lp2049.outbound.protection.outlook.com [104.47.66.49]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3sr6dqehd0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 30 Aug 2023 18:50:06 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Y7VkF1CkHtnnlqNDVASGby2tY35cKWDuAMphkRQ8rasG7WQhoZz6iGTwXihZlSk6vW09fWKtmC5f484TMkz07ebQ3QMkL9hOjIr/8XrQiy5UiK+EZNMoilVKK4B2fp8nHfo/6AK2yDeIs+H+WUzkJg4ahk9e7DpRo5aHcXu0cQyIu/oDwMh3BX2FvwfmVllDJzDlHufRGH9NeTLuFgXg7kuLxJnjmvy6MIMBwC01NCPR8B1LUtbfNX1IYRzJ5DNjd5IRyjAyzQVwo+u+3bxvgh80jKUSCWEBxrN5j8ns5aqBBDvra2jcfWiEmToMeDqUzopVxDrchrU8MPYfTrneMQ== 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=V2qBt25bpg2D3yMTQCWte8BlIlS/6RXGVrigjE6CaKg=; b=R+5JCffPlraidlcQKJnxugIBlmnyMJTSiDpDdKuA21vJE3ECHxGdM88dy9q5Kr6YRZ3wt/ve8pgb9fGQhjE+Q+t9MdvPr3WIDfn+hvuYacoU1Ulu3zn0ccKLyzobDkV9+14qGVmfL5Exb1oP/uXpwPUmf6vTa3Pu5RVMrAqeRIyNzOJTvqWlRbCzpkDtkZBTZDIyfgFtWW6effvN+HuoPPymXtXu92GtEPP3e0d+XO8PGr7XKqEzJ7b1RrvJsZWgzkkcna86vuq4FmGLkVRvGvfiFV1qc0EnyG5cbyfmkP8PZYv2VdAkZPJCyhm+wOh4MyK0lnsdomdDp5CtS3v1rg== 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=V2qBt25bpg2D3yMTQCWte8BlIlS/6RXGVrigjE6CaKg=; b=XWE/IlpxOPoXMb3XV3UMEJUFNdck1zWvzDCS61Z5VksJOf49MOx6dgFpl2wSY+17KQQsJZBo5CH48ZanX0F3CdLFfOdP97E9fhqKfIDTw7aL6d1BbJr1ZgJMHt3qVBcg2gvKSt6GdSUedE/ZC+ih0JKeg909SKnyWMT4+ncOwkM= Received: from CO6PR10MB5409.namprd10.prod.outlook.com (2603:10b6:5:357::14) by CYXPR10MB7897.namprd10.prod.outlook.com (2603:10b6:930:da::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6745.20; Wed, 30 Aug 2023 18:50:04 +0000 Received: from CO6PR10MB5409.namprd10.prod.outlook.com ([fe80::238e:5e86:cbd0:7415]) by CO6PR10MB5409.namprd10.prod.outlook.com ([fe80::238e:5e86:cbd0:7415%4]) with mapi id 15.20.6699.035; Wed, 30 Aug 2023 18:50:04 +0000 From: Ankur Arora <ankur.a.arora@oracle.com> To: linux-kernel@vger.kernel.org, linux-mm@kvack.org, x86@kernel.org Cc: akpm@linux-foundation.org, luto@kernel.org, bp@alien8.de, dave.hansen@linux.intel.com, hpa@zytor.com, mingo@redhat.com, juri.lelli@redhat.com, vincent.guittot@linaro.org, willy@infradead.org, mgorman@suse.de, peterz@infradead.org, rostedt@goodmis.org, tglx@linutronix.de, jon.grimm@amd.com, bharata@amd.com, raghavendra.kt@amd.com, boris.ostrovsky@oracle.com, konrad.wilk@oracle.com, Ankur Arora <ankur.a.arora@oracle.com>, Linus Torvalds <torvalds@linux-foundation.org> Subject: [PATCH v2 1/9] mm/clear_huge_page: allow arch override for clear_huge_page() Date: Wed, 30 Aug 2023 11:49:50 -0700 Message-Id: <20230830184958.2333078-2-ankur.a.arora@oracle.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20230830184958.2333078-1-ankur.a.arora@oracle.com> References: <20230830184958.2333078-1-ankur.a.arora@oracle.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SJ2PR07CA0015.namprd07.prod.outlook.com (2603:10b6:a03:505::28) To CO6PR10MB5409.namprd10.prod.outlook.com (2603:10b6:5:357::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO6PR10MB5409:EE_|CYXPR10MB7897:EE_ X-MS-Office365-Filtering-Correlation-Id: 88e90712-dc34-4d15-c881-08dba989ec30 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: /cOrjgqvaWjaaJy8zApf+RRQ7Z1B61halLQvLIIyugbtv1qHf7lo5xY6yweRF+i6TVqZlnGyKY6mAweZgiaF5Nkdn9VZKK/TRFByyHuXgU2NsFwzFp4bnLWt5AzHBF5Hgg5NdE6iS+7/3RTbbgyzwrkemmm/2utCYZyK0b4+zVpFkhFNeqG8qc7nAxg+SyZ913n3HRhRduwdcEpxpCQbpa2tPT2iw8xFC0NN+AL4/AYf72ZDkctpFxH3/DbFSXbI2Zy83rvZQWIU9g8I0X1DrvhZk/151dqugQWrimSJrh3HDNb3lGIqlyBHRVdrHdDj1XYXcSkDHioRM5PkT/ITsTDTepxRpUieWU1qnVPWJBiLTNZz8lYjWjTthN31EX+/fKzWq/burIvoiaaI1ZTOUIx9awSiLDmZIh2/OmAk+BeNY3bVq55PA03alBGtWiFfylAt6hJ5i/IcMZ+JSMPUn6nfQ/BlHgJajm1UjckvcHvBF+CFMu/Bnh73LCtAqbiVJSJ8fQ/gcxQv7YvGqlE8IKoyyUiEyy1pbrszCQHAXNtBM5MQpXe2+piGCuwGNYOpb9lgwt3Meqrk2kIaKfxSAz5bDWk0BenXmAQSgT81M8U= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CO6PR10MB5409.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(346002)(39860400002)(376002)(396003)(136003)(366004)(451199024)(186009)(1800799009)(478600001)(38100700002)(26005)(1076003)(36756003)(66946007)(41300700001)(6512007)(83380400001)(2616005)(54906003)(66476007)(66556008)(6486002)(6506007)(316002)(6666004)(7416002)(5660300002)(4744005)(4326008)(8676002)(103116003)(8936002)(86362001)(2906002)(14583001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: X1wyC/J05XQmV7EsgVIks1cK2v0bSV5lOJWMxfKEPc+z3SiS/df7ICAbDSjxCeTLtEjEfbjUhUb/r3md25xeu1iq5zIT+fLmpQrk8hiAxLASmGCi0ndRhWPYajxmmR0pekPI/cu+WNHMR2DuSZX/BbQ/lcimEI24Zy4XAmvLRQLbxrLK8q8T4tnAOyv1sJNW2qzVsos+5G62qLJTjj+uRlKeHPipo6BjooZ/h0bYkFQCgNGzngMMiZ40wT/MNx3cCFtyn7L8GJLQ8id7lNmmrIrReL38DX+WR2PcQKEhVbXpilP+46fbg/MIiHktJoP2JVsp4PWEfow4XuJwfSkFJzmmxJSuzzgmL8txhYsKqitGbRLLfLsxgEXbvJNBU2LeksfL083CI/5/FkLP58EJNp+AR71Uxgvzg0vJm8Cx8xpUTV7XF/JqFQaBJnGzChQpfj+ZVsToFWmasiva59dUns6xcYzf6V7B4LgI+bn7wjpiaDnTZ7pizxP1SOUnJzICLNcI7SqLzCp/fkdiCZLtYVfefGNujq+OUkG7uuO1f7Gp4ERHWWE/iRgX+p64E1wqwIJm0iR7Z1y+3up+NFcmoMdPb/C9L2s+F8aHmy1Wozg1EHR1ZZ6Bje9BiKN8ZX1C9ccLAnCiTpv4VSe2ZIG+zcd0MpC//4NSKmZL/RIzumgEZGBMz1Vm9j2aUQ2xa9hCTikhD6fhofK4wfku/Nl1lEu+hwU9EwHwWpUi+cX98HRvSIyimET7Lf2ABQoaT/NJEat7ZpU8bpzjGg1mNId8odfuoWLbDblimm36zzPViINDW0omKLjenqqwsgC35DmOzbimFclxOhSAouAy/G7tdfhH5qkqZuCyd7m+c+lxq4cYQN9gjpnpKlSCTsRnFZkZL37gxUDc3XQ02MzapJphR7YEUGYOMpr9YnECXS4zLTiys+nXN47pgSM8BFNi5FeudU7baHlBirrmrtKNSTrtwT2IGGXQ6IGTLiOYXlZK8AI+OupqbFsxvLTxyOvzQk1XHWuy8wxOm8HHKDi/Z8XQN74b/75eyBgHHQxSV78q59rLlkrDqP1t/shF5Q9Gg7FKyUMkkN8pi7tsjPsedT3BTMwwg8u8HG1tvlBIg66p7Q6udK8lt55ycLOIU5CIT8/ieC0oah2acgLituTmq/zLLEOG8U4U/sdSbya5mjXwrJGhTGw8qipBtwYaeN9/yaYo0XAPA2Kfnj1X55m0hAcPSXZUU/ypq8cFp1DUMupoj1QEEgSehNv5tYUrmUAqiZBug3Xa5vQ21GShOIxna/pSzHuaBSz+17pP5skIaExBzddq1biCAs+nu5USZn7sb+9ksGM60jGobnQ7HLf0s1lpeDTr/pu26rQJZQ5BpDuEGv3prlTpeQP1XYCB/OIZKaouxcaKCIarG2BGCIk/LYT5X6M+FUJyXQ+Kn4Xl/TncRnioR9fpKr0AR2EyOE0QjO/vSrouC3jSYoN+H+4mTrDthuiSqK23lus86PRSd0zf4yHFTRHOl8TDNxOEAXPLWzR8FsBsgvAbVpYoM5LSfcV5C52n8Jr3q12lxIAWf9QniIvh3YCw6/zr2lITe2MdpqfRiEPoUG6AnD0PuKR3d95kmA== X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: ixRomdRqZk7RzwTLspYovQbngCVoB77Yk4o4nI8zGN6a8ctr0a7qVXOreSdQHBWX9+4+f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1L5PWLrLvp5fsezgPd1afTU6e9buSSUwnzRe1gv/LrGXn6KVQPqJxMuNP8= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 88e90712-dc34-4d15-c881-08dba989ec30 X-MS-Exchange-CrossTenant-AuthSource: CO6PR10MB5409.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Aug 2023 18:50:04.4151 (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: 0aIn4blNgYhZpYoip8ut2asFexK4l+AbHq7Wxv4B3GndIo9D0jIoiaFUdGL7M/IHkHecZhKkre6ONocfCEyTjfKFSHmK3MCT6XvcS2Q+O34= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CYXPR10MB7897 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-30_15,2023-08-29_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 suspectscore=0 adultscore=0 phishscore=0 spamscore=0 mlxlogscore=999 bulkscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2308100000 definitions=main-2308300170 X-Proofpoint-GUID: Gy16ycZ5fuBeDdzttyBSLeWGicyGRc8u X-Proofpoint-ORIG-GUID: Gy16ycZ5fuBeDdzttyBSLeWGicyGRc8u X-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: 3920A4000C X-Stat-Signature: 4a7x9szxad88e3h3o7f9qp8u5st5q6p5 X-Rspam-User: X-HE-Tag: 1693421433-566763 X-HE-Meta: U2FsdGVkX1/uw3tXCK+oLe+C3iorlfVTEYZaf3hXIbj+bXDfU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+0Pd5ukXJrJSn50+IeqB5cVeYcV7QMqy6pXDa0kIzJBRk2fpTBWYr5rztT0JU7IhjikRo/F4kQ0t5Zki+7Q+7zt6GLT5QJszbigaq91d9Zu9GBf/LB96mZHeuWETmjti6DzGjndWM9e9WiWvKGUqM9OUXUg3o1edd4E8oqHS5Dw62wRL9cVFNpHX6jZbDK8xJXykawM5TUQU4h5MLT4VwXQZgmk7gevx341dKWXIwndwrafA7/+3Hs16nbzABAahuuM4m+zsp6Zya+5OdMYE/PumcaHagHgm0A5JUtORTgmwPARndBVyE9aPy6RrKpHkblvxHp2vOAdv54hVpgqpP/durMDsKhtqWl/VNf4V9wVzgRuhFAs3umQm7Ez0+FkVmXyICD0I1tJnWf/47FM15XVx4IQWdwkzrm4EfWsHu5YMHZrHhKB+v60JWL1yhiBtms7G7qvmdr1s4AD5SCyZ8MYlYqJo= 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: <linux-mm.kvack.org> |
Series |
x86/clear_huge_page: multi-page clearing
|
expand
|
diff --git a/mm/memory.c b/mm/memory.c index 405a483d2fd1..3854f0b9b3a9 100644 --- a/mm/memory.c +++ b/mm/memory.c @@ -5982,8 +5982,9 @@ static int clear_subpage(unsigned long addr, int idx, void *arg) return 0; } -void clear_huge_page(struct page *page, - unsigned long addr_hint, unsigned int pages_per_huge_page) +__weak void clear_huge_page(struct page *page, + unsigned long addr_hint, + unsigned int pages_per_huge_page) { unsigned long addr = addr_hint & ~(((unsigned long)pages_per_huge_page << PAGE_SHIFT) - 1);
clear_huge_page() is constrained to process a page-at-a-time because it also handles the CONFIG_HIGHMEM case. Mark __weak to allow for arch specific optimizations. Suggested-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Ankur Arora <ankur.a.arora@oracle.com> --- mm/memory.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)