From mboxrd@z Thu Jan 1 00:00:00 1970 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 40600C433EF for ; Wed, 15 Dec 2021 05:18:40 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 84B8C6B0071; Wed, 15 Dec 2021 00:18:29 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 7FB346B0073; Wed, 15 Dec 2021 00:18:29 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 6E99A6B0074; Wed, 15 Dec 2021 00:18:29 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0182.hostedemail.com [216.40.44.182]) by kanga.kvack.org (Postfix) with ESMTP id 5F9D66B0071 for ; Wed, 15 Dec 2021 00:18:29 -0500 (EST) Received: from smtpin13.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 2796C82499B9 for ; Wed, 15 Dec 2021 05:18:19 +0000 (UTC) X-FDA: 78918872718.13.25E3B62 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by imf04.hostedemail.com (Postfix) with ESMTP id 7CD7F40014 for ; Wed, 15 Dec 2021 05:18:18 +0000 (UTC) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 9B585D6E; Tue, 14 Dec 2021 21:18:17 -0800 (PST) Received: from p8cg001049571a15.arm.com (unknown [10.163.68.72]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 1CD603F774; Tue, 14 Dec 2021 21:18:15 -0800 (PST) From: Anshuman Khandual To: linux-mm@kvack.org Cc: Anshuman Khandual , Andrew Morton , linux-kernel@vger.kernel.org Subject: [PATCH] mm/page_alloc: Modify the comment section for alloc_contig_pages() Date: Wed, 15 Dec 2021 10:47:58 +0530 Message-Id: <1639545478-12160-1-git-send-email-anshuman.khandual@arm.com> X-Mailer: git-send-email 2.7.4 X-Rspamd-Server: rspam03 X-Rspamd-Queue-Id: 7CD7F40014 X-Stat-Signature: s4qkdzc14ioiyz8yiwdjou5eiobyq4dy Authentication-Results: imf04.hostedemail.com; dkim=none; dmarc=pass (policy=none) header.from=arm.com; spf=pass (imf04.hostedemail.com: domain of anshuman.khandual@arm.com designates 217.140.110.172 as permitted sender) smtp.mailfrom=anshuman.khandual@arm.com X-HE-Tag: 1639545498-652805 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: Just clarify, that the alloc_contig_pages() allocated range will always be aligned to the requested nr_pages. Cc: Andrew Morton Cc: linux-mm@kvack.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Anshuman Khandual --- mm/page_alloc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index c5952749ad40..0d74ea524dd4 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -9214,8 +9214,8 @@ static bool zone_spans_last_pfn(const struct zone *zone, * for allocation requests which can not be fulfilled with the buddy allocator. * * The allocated memory is always aligned to a page boundary. If nr_pages is a - * power of two then the alignment is guaranteed to be to the given nr_pages - * (e.g. 1GB request would be aligned to 1GB). + * power of two, then allocated range is also guaranteed to be aligned to same + * nr_pages (e.g. 1GB request would be aligned to 1GB). * * Allocated pages can be freed with free_contig_range() or by manually calling * __free_page() on each allocated page. -- 2.20.1