From patchwork Thu Feb 25 15:06:35 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthew Wilcox X-Patchwork-Id: 12104245 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=-11.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,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 311ABC433DB for ; Thu, 25 Feb 2021 15:07:37 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 8323F64F18 for ; Thu, 25 Feb 2021 15:07:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8323F64F18 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 E87046B006E; Thu, 25 Feb 2021 10:07:35 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id E37306B0070; Thu, 25 Feb 2021 10:07:35 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D75066B0073; Thu, 25 Feb 2021 10:07:35 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0036.hostedemail.com [216.40.44.36]) by kanga.kvack.org (Postfix) with ESMTP id C0D136B006E for ; Thu, 25 Feb 2021 10:07:35 -0500 (EST) Received: from smtpin24.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 91E8F9998 for ; Thu, 25 Feb 2021 15:07:35 +0000 (UTC) X-FDA: 77857119270.24.EC78359 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf03.hostedemail.com (Postfix) with ESMTP id 1027EC000C63 for ; Thu, 25 Feb 2021 15:07:28 +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: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:In-Reply-To:References; bh=u7P8Ea/UfmfBF9dlRM7S9anPKpWpg/5yTxkHJxv6p/w=; b=NI30zdjkPo475WVHM7l+c2A9Cr YNAuAdKSpt8yzVPOtrhcOjHR22GU5YQpX2SmPDkDR670bR6OYFd1xiY+R4senGqCdnJe9mvWBd8Ux Hyd1sfh62H+6fdJyXf4MjFQErYg2IXltNY7bdP9HQNM3dxr5XhxlsPliTEc38khJDH0NpZZTK+bEF f8ifNJzLEkw4lv2to0lzcrHi2W+L4xuWAV6wtPYmOBAdVMKzAcXz8vowv37S05sUY1iI7PaMTWNve UIbCtYzNbHcZiTbwwQQxOY3407TisVFEuy7nmB/YeXI3Hx1fMAdE27s11VlOEVyw5nL44zevjbOul Y7E1kiHg==; Received: from willy by casper.infradead.org with local (Exim 4.94 #2 (Red Hat Linux)) id 1lFIDz-00Apmc-PX; Thu, 25 Feb 2021 15:06:46 +0000 From: "Matthew Wilcox (Oracle)" To: Andrew Morton Cc: "Matthew Wilcox (Oracle)" , linux-mm@kvack.org, Mike Rapoport Subject: [PATCH v3 0/7] Rationalise __alloc_pages wrappers Date: Thu, 25 Feb 2021 15:06:35 +0000 Message-Id: <20210225150642.2582252-1-willy@infradead.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 X-Rspamd-Server: rspam03 X-Rspamd-Queue-Id: 1027EC000C63 X-Stat-Signature: mts7diowikytw64b5ce6ziwq4e8pd5bs Received-SPF: none (infradead.org>: No applicable sender policy available) receiver=imf03; identity=mailfrom; envelope-from=""; helo=casper.infradead.org; client-ip=90.155.50.34 X-HE-DKIM-Result: pass/pass X-HE-Tag: 1614265648-539050 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: I was poking around the __alloc_pages variants trying to understand why they each exist, and couldn't really find a good justification for keeping __alloc_pages and __alloc_pages_nodemask as separate functions. That led to getting rid of alloc_pages_current() and then I noticed the documentation was bad, and then I noticed the mempolicy documentation wasn't included ... anyway, this is all cleanups & doc fixes. v3: - Added acks from Mike (patches 5 & 7) & Michel (patch 5) - Improved wording of return value (Mike, patch 5) - Added patch 6 v2: - Added acks from Vlastimil (patches 2-4) & Michel (patches 3-4) - Added patches 1, 5 and 7 Matthew Wilcox (Oracle) (7): mm/page_alloc: Rename alloc_mask to alloc_gfp mm/page_alloc: Rename gfp_mask to gfp mm/page_alloc: Combine __alloc_pages and __alloc_pages_nodemask mm/mempolicy: Rename alloc_pages_current to alloc_pages mm/mempolicy: Rewrite alloc_pages documentation mm/mempolicy: Rewrite alloc_pages_vma documentation mm/mempolicy: Fix mpol_misplaced kernel-doc Documentation/admin-guide/mm/transhuge.rst | 2 +- Documentation/core-api/mm-api.rst | 1 + include/linux/gfp.h | 21 ++---- mm/hugetlb.c | 2 +- mm/internal.h | 4 +- mm/mempolicy.c | 76 +++++++++------------- mm/migrate.c | 2 +- mm/page_alloc.c | 34 +++++----- 8 files changed, 59 insertions(+), 83 deletions(-)