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 X-Spam-Level: X-Spam-Status: No, score=-16.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3F369C433E0 for ; Mon, 15 Feb 2021 21:27:47 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 7F52D64DEB for ; Mon, 15 Feb 2021 21:27:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7F52D64DEB Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 1215C8D0146; Mon, 15 Feb 2021 16:27:46 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 037A48D0140; Mon, 15 Feb 2021 16:27:45 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C67E88D0146; Mon, 15 Feb 2021 16:27:45 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0218.hostedemail.com [216.40.44.218]) by kanga.kvack.org (Postfix) with ESMTP id A42C78D0140 for ; Mon, 15 Feb 2021 16:27:45 -0500 (EST) Received: from smtpin27.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 7004E182C37FB for ; Mon, 15 Feb 2021 21:27:45 +0000 (UTC) X-FDA: 77821789290.27.6F95F65 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf26.hostedemail.com (Postfix) with ESMTP id 9214B407F8EB for ; Mon, 15 Feb 2021 21:27:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=oFOH0RLriHgX7doqy8IQPzbwxwo66Qod+mnch1C9/cw=; b=X/nvdaDmh1lfS6tOBXujNtaugC DeTLKEHHixV4vcrckteSbNQdiBpG13FqYbq+mopkk0Gm9Axyn473hHD0jGkX9Ldde33T1y5XnGwhX fdco7NJixKJJBe/5z8FDzaquWqtoUup1ewPVAHzk47KcqWXrR2deIuf2gw072Pmh+NiePHsRs5gUG NoVTko6ANnBjrxQI8SPoDe6KEsGBpUORFq16hMq0fD8bBKuz9wsk91Uy/4ynuzaXuMC5Kp3UKEyTp Lj5qkKnrbXgA499y3DUXwfZuCz52QZTPoWNdciTy+2cmrjjeklnJnRb5mQW9sj479KeyBZ2XRbGHV 0OBHt5yA==; Received: from willy by casper.infradead.org with local (Exim 4.94 #2 (Red Hat Linux)) id 1lBl0Z-00G3jN-7b; Mon, 15 Feb 2021 21:02:15 +0000 From: "Matthew Wilcox (Oracle)" To: Andrew Morton Cc: "Matthew Wilcox (Oracle)" , linux-mm@kvack.org, Mike Rapoport Subject: [PATCH v2 5/6] mm/mempolicy: Rewrite alloc_pages documentation Date: Mon, 15 Feb 2021 21:02:02 +0000 Message-Id: <20210215210203.3827513-6-willy@infradead.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210215210203.3827513-1-willy@infradead.org> References: <20210215210203.3827513-1-willy@infradead.org> MIME-Version: 1.0 X-Stat-Signature: uwzu7rpdczuwtptq6inz6h441qgqj956 X-Rspamd-Server: rspam01 X-Rspamd-Queue-Id: 9214B407F8EB Received-SPF: none (infradead.org>: No applicable sender policy available) receiver=imf26; identity=mailfrom; envelope-from=""; helo=casper.infradead.org; client-ip=90.155.50.34 X-HE-DKIM-Result: pass/pass X-HE-Tag: 1613424462-872101 Content-Transfer-Encoding: quoted-printable 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: Document alloc_pages() for both NUMA and non-NUMA cases as kernel-doc doesn't care. Signed-off-by: Matthew Wilcox (Oracle) --- mm/mempolicy.c | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/mm/mempolicy.c b/mm/mempolicy.c index c71532b7e3f8..96c98ce16727 100644 --- a/mm/mempolicy.c +++ b/mm/mempolicy.c @@ -2245,19 +2245,18 @@ alloc_pages_vma(gfp_t gfp, int order, struct vm_a= rea_struct *vma, EXPORT_SYMBOL(alloc_pages_vma); =20 /** - * alloc_pages - Allocate pages. + * alloc_pages - Allocate pages. + * @gfp: GFP flags. + * @order: Power of two of number of pages to allocate. * - * @gfp: - * %GFP_USER user allocation, - * %GFP_KERNEL kernel allocation, - * %GFP_HIGHMEM highmem allocation, - * %GFP_FS don't call back into a file system. - * %GFP_ATOMIC don't sleep. - * @order: Power of two of allocation size in pages. 0 is a single page. + * Allocate 1 << @order contiguous pages. The physical address of the + * first page is naturally aligned (eg an order-3 allocation will be ali= gned + * to a multiple of 8 * PAGE_SIZE bytes). The NUMA policy of the curren= t + * process is honoured when in process context. * - * Allocate a page from the kernel page pool. When not in - * interrupt context and apply the current process NUMA policy. - * Returns NULL when no page can be allocated. + * Context: Can be called from any context, providing the appropriate GF= P + * flags are used. + * Return: NULL when no page can be allocated. */ struct page *alloc_pages(gfp_t gfp, unsigned order) { --=20 2.29.2