Message ID | 1480487431-26181-1-git-send-email-shijie.huang@arm.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7863360585 for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 30 Nov 2016 06:33:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6AF542705B for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 30 Nov 2016 06:33:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5E000281A7; Wed, 30 Nov 2016 06:33:01 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id A259D2705B for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 30 Nov 2016 06:33:00 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1cByQF-0002JM-Lk; Wed, 30 Nov 2016 06:31:15 +0000 Received: from mail-db5eur01on0047.outbound.protection.outlook.com ([104.47.2.47] helo=EUR01-DB5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1cByQA-0002Cr-Mz for linux-arm-kernel@lists.infradead.org; Wed, 30 Nov 2016 06:31:12 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector1-arm-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=HQJCoI9dW+n0NNuGlVWe+AQgGIc7QSnlXyGd/JH8iS0=; b=btux3jdRt9IXBOScK8Y8nw1JbcYg8PNiJzJEbq2fs7jrMa4Xnc7ZEIE/g4KFQO04UV5XkjFM200BMavSo6kZAeKYqfEXtWorw7kXmrtZNxCR78T6DUQaWgxc2QFpJqVzcAYBPhQyLZfNt3dUdibI7RWB/+VxyCL8db6A42U/Xj0= Received: from DB6PR0802CA0001.eurprd08.prod.outlook.com (10.172.224.11) by DB5PR08MB0438.eurprd08.prod.outlook.com (10.161.245.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.747.13; Wed, 30 Nov 2016 06:30:47 +0000 Received: from DB3FFO11FD027.protection.gbl (2a01:111:f400:7e04::154) by DB6PR0802CA0001.outlook.office365.com (2603:10a6:4:7e::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.747.10 via Frontend Transport; Wed, 30 Nov 2016 06:30:46 +0000 Authentication-Results: spf=pass (sender IP is 217.140.96.140) smtp.mailfrom=arm.com; kvack.org; dkim=none (message not signed) header.d=none; kvack.org; dmarc=bestguesspass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 217.140.96.140 as permitted sender) receiver=protection.outlook.com; client-ip=217.140.96.140; helo=nebula.arm.com; Received: from nebula.arm.com (217.140.96.140) by DB3FFO11FD027.mail.protection.outlook.com (10.47.217.58) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.734.4 via Frontend Transport; Wed, 30 Nov 2016 06:30:46 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:; UpperCasedChecksum:; SizeAsReceived:1097; Count:13 Received: from sha-win-210.shanghai.arm.com (10.1.2.79) by mail.arm.com (10.1.106.66) with Microsoft SMTP Server id 14.3.294.0; Wed, 30 Nov 2016 06:30:44 +0000 From: Huang Shijie <shijie.huang@arm.com> To: <akpm@linux-foundation.org>, <catalin.marinas@arm.com> Subject: [PATCH extra ] mm: hugetlb: add description for alloc_gigantic_page() Date: Wed, 30 Nov 2016 14:30:31 +0800 Message-ID: <1480487431-26181-1-git-send-email-shijie.huang@arm.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1479107259-2011-1-git-send-email-shijie.huang@arm.com> References: <1479107259-2011-1-git-send-email-shijie.huang@arm.com> MIME-Version: 1.0 X-IncomingHeaderCount: 13 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:217.140.96.140; IPV:CAL; SCL:-1; CTRY:GB; EFV:NLI; SFV:NSPM; SFS:(10009020)(979002)(6009001)(7916002)(2980300002)(438002)(199003)(189002)(39410400001)(2950100002)(48376002)(50466002)(77096006)(38730400001)(39450400002)(26826002)(7416002)(76176999)(50986999)(246002)(6666003)(6636002)(106466001)(33646002)(305945005)(5660300001)(356003)(5003940100001)(7846002)(92566002)(47776003)(5001770100001)(189998001)(36756003)(50226002)(4326007)(104016004)(2906002)(8676002)(86362001)(8936002)(626004)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:DB5PR08MB0438; H:nebula.arm.com; FPR:; SPF:Pass; PTR:fw-tnat.cambridge.arm.com; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; DB3FFO11FD027; 1:TuPcD4e9ov/P6SCmF75Ewa+6k8ecxd4Jfwo1pzQUFS8vDT4YRCLA59vvMQWKL2IV4x6KzZTOsxpTbzMEqVko0HTfhPrLd8eScbMtQcKRD9hKE3wtSH8m1SEliVpQuCKrQ9RNlOjiFwWedkXQC6k+PZxzmrydNlhxFNHubN3Qt+ZRS29FF0AlZm1ZXEJtyB9XvkBoNyH69QNfEt0VHK7tg5qqlf4Bop1gy9fIJJbN3FYtIDEC3qe8TFc388S8WccLlmE0y9fRI3lzXCXKHEbED2rRf0vXpOOuJVH29Keyl5fyWGX1ozj0iyE6cLVcamHGHstA4ZjARpN3r4eBSMv9qe44KEm1NyT7fdQ0C88lGR3KWU2ieOxTleMvpQAkq0CYBKVbxmOZolVwv+ggR23Cm4Uaa+AfPe3AHh5BYHO9kbCMtDwO2Vh/mxgxHoFovziCXex4P4sGyGt3ZBsVKHqlmL0ZzwwaqnoM8flhpZmi5T5xteAiks49LLYC1ffhJscdGnKG6nOL9uzLoQ7cGiTmKTRey04xT+ze9UxAQ6QhmRYERU55JJ6JR0rJJP5Fu0PymE3peyKYOZjkylXaQcI49BNKlp4KVysOFC+4ZMfnd+C+BPB/BSrGSthNOgyWY/htE5nQHG89qtp4g/VZGGdCcQ== X-MS-Office365-Filtering-Correlation-Id: 5fbfdcef-66bd-4783-bdb3-08d418ea6b36 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002); SRVR:DB5PR08MB0438; X-Microsoft-Exchange-Diagnostics: 1; DB5PR08MB0438; 3:YajB7lMcU/0oVSsKl1e5xK4Yk8Aj+F0Bg8MD9dmNirt2XDouOMUbT+h8rZ9q5i5uj7UiXuLzWpEjgxlKHlzHH002Tz81V0Uyavwbvtf0dPD4zlomk4zTB5WCNBbHaTmgZtyYLoxnId+rurUBfrLVqpTYGLOrbysATsGL9XO5gPbPgAFQPl3UkSxeWi1kzKqoRlLj/y3sCZaM1U8KgiHNn4+VzsdL1uF4lADD7/Zgtlmh5g+HN2DgtYPJd2KfHms0e80q6FywBi6faCOYhskdL7ZIOrouc1T0blimbq1yfs80W3TTAvtRsmziYdNwBIxigfT7bvqPap3OThEnOcDx1hV3w11ih3CaoudQOPEGZENOV0n79b+XInieVr4F4jyalIl8M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aimer: True X-Microsoft-Antispam-PRVS: <DB5PR08MB04383B7C190E86ED8D1627BC848C0@DB5PR08MB0438.eurprd08.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(180628864354917); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(13023025)(13013025)(13024025)(13020025)(5005006)(8121501046)(3002001)(10201501046)(6055026)(6041248)(20161123564025)(20161123562025)(20161123555025)(20161123560025)(6072148); SRVR:DB5PR08MB0438; BCL:0; PCL:0; RULEID:; SRVR:DB5PR08MB0438; X-Microsoft-Exchange-Diagnostics: 1; DB5PR08MB0438; 4:6HHSkydU1ZuXyRa8L0mGXq6U7WMETR6/kpCu7c1Hk1IqK90pgltPH1aT/FH+V7GFMveLNu97mT2MYJj7pHXMF+uqsYQ2bOtyd7zcJnAD50Pu1FvH/gHmEfXcidZbH9qaLpCFwmLh2n1gtnPe9b/8NqG1twIhohMpLceBYvscd+XE4lP9w+lxeXV9cxpcs7ep/53E78aO0K+XpYp83Ek4UrCfMlN1WwRP6/YgwLkbrFlOQLTxblpSs3bY20vZcVvr7nekglidWoLW/JZluGQCrQpAS53P3tOiUsizrzG2EjLWV1s+bDeJYpO6TFfMLtZFNsq2q51a6fZvaQIBgDkLWLvrwmyZHf4tuaQIyY22fMmuaazYbs7voSLsY5GGEqpGNFo1MqAQTCuIj+snUFo4NWfQK86YgukBqj/J2+etEvOuQu1qY+b8xymU9igfqovLIjKS+Y8hr3GiSthyTDZdvf4GuF9NMHwkhHFCfxMGUmOX13EuG43EMbr6AFKagHDC4CwDXctfnYghHQqnhoUEU7sR9rEpxsutPwIsXIq6fbzSdkBVNjYXr7kjf25hwdBsjJEa7alQAvtZDsKzfNbhtcf16uulk6qU+Gt2Saon0cbBW5NVTw5BgH8EdOl6yFXVftzCueoaMAkY1iOwrVWqIA0u75djZuwsTauG4iMta3XjxtNXJQLEKz/G4ODbUSs40kMPj3w4qnjonwI3CSVBEg== X-Forefront-PRVS: 0142F22657 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DB5PR08MB0438; 23:m5FpSHXPihDKLtXPwiimHxLsuwZBz0/gKyIz6qThA?= =?us-ascii?Q?9r6sAt6p9Ty3IgvuaG/1GRa7vRxwifa7iCKIbqWzxBqp2MqA9rL+1eyVRSWC?= =?us-ascii?Q?Zl7N7NndvifwTi18SYsccsd4r5LYbh8rMKrQSy3oiwYdJaBWPdm+yi4T8PQC?= =?us-ascii?Q?OfTdiVmtjy4kwVmS+1oVEJtyDE3WcWVq4OuQoRGwN5MAWeN+DKe4rPuvqWpd?= =?us-ascii?Q?LTtcpqx7qcWnMbVc+YoeqOPJCzWVd7Ug7JotPWX1JZF4AiSgz9v910SeDsVi?= =?us-ascii?Q?V1XeNy8Q7xbfh8Kd2pdpp76tYY6o7HobNhoDHnTSfX0sPyIv+bqnJw7okayq?= =?us-ascii?Q?s5pnxFcty5XZAQFMNqT9fzuLrnoqhO7ZBxgFhEX6IT1qxFKm2QJqLUsEl+xf?= =?us-ascii?Q?IqtJf1dp/c2akdl3O3rOVbYRAPOgLWw651y+R5Cup24H8G65x4BUk5H9KDl9?= =?us-ascii?Q?WU1kdC+AEHtQWgrABBBf58qR/+xMLYDVjr3xvNSVkbWi5PII9y4oSnLHKz/x?= =?us-ascii?Q?PbFL2i8J/66O+CI/B62MU1PBezQBApnGaHUOtrrP5zyW75TJY1mKTSbp+Q6e?= =?us-ascii?Q?jcaVjT3F8/+2/Fr0yyePny01vWnxaweXhTvTvEzRqCDoleflNQuWas8rE6GE?= =?us-ascii?Q?RFsN1KhTvtw3MCVQv22GM26iITcXO9JV0NwSM5SWAtskZxrYf0JLl9oPWotA?= =?us-ascii?Q?nZDUr4TX5qsFEyi3DwNadGfnOEQ7akbI1aqhXBRR2J8uj7D+p/Bs4DHDhTji?= =?us-ascii?Q?F5X1Q2IcT2yv0vWuh2+t6wpflQsNhpGLslAahRtQzZqTWNEyIEozedolte0T?= =?us-ascii?Q?0Lod/8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/PzLW8U5lBIcw1OtaUpq+bBZ0f+b5+SwFiNCrf8EPVRzTCNykh4srp/lFYWlW/s4w5y2BBlTAECALm5xUt6Urwz5ZcI= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DB5PR08MB0438; 7:i3dXnnVW3Y/ABxp0rkrcQEMaNhS04ZMtQ2xGokhnVN+O5ajkztGxmwxT5Vg/qIkjpgP5Ni3ppSELuw4nusjURic7w7bd/PN9rh9brqYd6XxzK+TwnpNo7aQxS4vd/RHrNVIldskmD4fjs/l77mkFrkOCMumI+Bpwahr6TctafxrqdxEAMFUTXzzhe3SqEzQ10yDsrRnHDG5rwyd7OxFzYy7/UAVpmWD41oVSQrRvev0i+nMrOVextq0yS6wSqRrTCAicoaevshzcrO/xvZ6rxQotCdw16GGSloTOhZTvEL8T6Oq/QSdki4daZkIG9BEEBRQyxe9Zp7Y82+l7pu9gQhKkOMb3vhrE6bee9X3cpRRYb1jkvvlTDp4VpNaKbS/JAqjwJGNwJ1VsA/Gg/KXh1MvM3Iab3iJlKCvy656NSCfOpxDEuO9hF4l0XvvUePBHUINux7BshejZDEVGeYAfTw== X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Nov 2016 06:30:46.3906 (UTC) X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[217.140.96.140]; Helo=[nebula.arm.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5PR08MB0438 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161129_223111_112886_7A69F53A X-CRM114-Status: UNSURE ( 6.40 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: linux-arm-kernel@lists.infradead.org, kaly.xin@arm.com, mhocko@suse.com, kirill.shutemov@linux.intel.com, steve.capper@arm.com, will.deacon@arm.com, linux-mm@kvack.org, vbabka@suze.cz, aneesh.kumar@linux.vnet.ibm.com, Huang Shijie <shijie.huang@arm.com>, n-horiguchi@ah.jp.nec.com, nd@arm.com, gerald.schaefer@de.ibm.com, mike.kravetz@oracle.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/mm/hugetlb.c b/mm/hugetlb.c index 3faec05..0d4bb8a 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c @@ -1089,6 +1089,12 @@ static bool zone_spans_last_pfn(const struct zone *zone, return zone_spans_pfn(zone, last_pfn); } +/* + * Allocate a gigantic page from @nid node. + * + * Scan the zones of @nid node, and try to allocate a number of contiguous + * pages (1 << order). + */ static struct page *alloc_gigantic_page(int nid, unsigned int order) { unsigned long nr_pages = 1 << order;
This patch adds the description for function alloc_gigantic_page(). Signed-off-by: Huang Shijie <shijie.huang@arm.com> --- mm/hugetlb.c | 6 ++++++ 1 file changed, 6 insertions(+)