From patchwork Mon Feb 15 21:01:57 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthew Wilcox X-Patchwork-Id: 12089189 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 8A8AAC433DB for ; Mon, 15 Feb 2021 21:02:18 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 3328564DEC for ; Mon, 15 Feb 2021 21:02:18 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3328564DEC 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 002108D012C; Mon, 15 Feb 2021 16:02:17 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id EF4568D013F; Mon, 15 Feb 2021 16:02:16 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id DE3168D012C; Mon, 15 Feb 2021 16:02:16 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0179.hostedemail.com [216.40.44.179]) by kanga.kvack.org (Postfix) with ESMTP id C27898D013F for ; Mon, 15 Feb 2021 16:02:16 -0500 (EST) Received: from smtpin13.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 9275F582B for ; Mon, 15 Feb 2021 21:02:16 +0000 (UTC) X-FDA: 77821725072.13.spark27_081082b2763e Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin13.hostedemail.com (Postfix) with ESMTP id 71B341826B6DD for ; Mon, 15 Feb 2021 21:02:16 +0000 (UTC) X-HE-Tag: spark27_081082b2763e X-Filterd-Recvd-Size: 2870 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf50.hostedemail.com (Postfix) with ESMTP for ; Mon, 15 Feb 2021 21:02:14 +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=qTZnLIKCtKJI1yeX757GvaD8PEFpujTT195BSFJ5DAI=; b=I460xbMqHiBd6kjHdCRpaq/tJV 5i66dZ2c9m6SZs2MjIPLQUKImat4/AiSqZzPZaIsY89p7Z51VNl0l72sHsDHAehOChOBD1LlclbNY XXqIoAaa/K1w0v1PrHRIMKTwYGtFdVrpFGwQiBLzDa+moQrcUIKCOY0A52kbOYb01Kk7cPnmbNl67 zIc3/9OPvHKiMWh2cFzCsun9Ub9IiZWx5XIazlMYfpf8kraoTkeNDYIgWsP2eMpahugUMDTRqFFpZ Y4oOQcHTluyGsGX98hux6PuaqFQCA8AWPYyFQ0X98w2HpEwPuPEb4e6cKwb1BeYYuiU1Udl8geXE/ 4doRg8Hw==; Received: from willy by casper.infradead.org with local (Exim 4.94 #2 (Red Hat Linux)) id 1lBl0Q-00G3ip-CU; Mon, 15 Feb 2021 21:02:06 +0000 From: "Matthew Wilcox (Oracle)" To: Andrew Morton Cc: "Matthew Wilcox (Oracle)" , linux-mm@kvack.org, Mike Rapoport Subject: [PATCH v2 0/6] Rationalise __alloc_pages wrappers Date: Mon, 15 Feb 2021 21:01:57 +0000 Message-Id: <20210215210203.3827513-1-willy@infradead.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 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 it wasn't included at all ... anyway, this is all cleanups & doc fixes. v2: - Added acks from Vlastimil (patches 2-4) & Michel (patches 3-4) - Added patches 1, 5 and 6 Matthew Wilcox (Oracle) (6): 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: 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 | 42 ++++++++++------------ mm/migrate.c | 2 +- mm/page_alloc.c | 34 +++++++++--------- 8 files changed, 46 insertions(+), 62 deletions(-)