From: Aruna Ramakrishna <aruna.ramakrishna@oracle.com>
To: linux-mm@kvack.org
Cc: willy@infradead.org, aruna.ramakrishna@oracle.com
Subject: [PATCH 2/4] mm/mempolicy: Make alloc_pages_mpol_noprof() static
Date: Mon, 5 Aug 2024 16:31:18 +0000 [thread overview]
Message-ID: <20240805163120.5971-2-aruna.ramakrishna@oracle.com> (raw)
In-Reply-To: <20240805163120.5971-1-aruna.ramakrishna@oracle.com>
As a first step to removing/replacing alloc_pages_mpol()
and alloc_pages_mpol_noprof() with their folio equivalents,
make alloc_pages_mpol_noprof() static.
Signed-off-by: Aruna Ramakrishna <aruna.ramakrishna@oracle.com>
---
include/linux/gfp.h | 7 -------
mm/mempolicy.c | 2 +-
2 files changed, 1 insertion(+), 8 deletions(-)
diff --git a/include/linux/gfp.h b/include/linux/gfp.h
index f53f76e0b17e..f5ce91ccc954 100644
--- a/include/linux/gfp.h
+++ b/include/linux/gfp.h
@@ -300,8 +300,6 @@ static inline struct page *alloc_pages_node_noprof(int nid, gfp_t gfp_mask,
#ifdef CONFIG_NUMA
struct page *alloc_pages_noprof(gfp_t gfp, unsigned int order);
-struct page *alloc_pages_mpol_noprof(gfp_t gfp, unsigned int order,
- struct mempolicy *mpol, pgoff_t ilx, int nid);
struct folio *folio_alloc_noprof(gfp_t gfp, unsigned int order);
struct folio *folio_alloc_mpol_noprof(gfp_t gfp, unsigned int order,
struct mempolicy *mpol, pgoff_t ilx, int nid);
@@ -312,11 +310,6 @@ static inline struct page *alloc_pages_noprof(gfp_t gfp_mask, unsigned int order
{
return alloc_pages_node_noprof(numa_node_id(), gfp_mask, order);
}
-static inline struct page *alloc_pages_mpol_noprof(gfp_t gfp, unsigned int order,
- struct mempolicy *mpol, pgoff_t ilx, int nid)
-{
- return alloc_pages_noprof(gfp, order);
-}
static inline struct folio *folio_alloc_noprof(gfp_t gfp, unsigned int order)
{
return __folio_alloc_node(gfp, order, numa_node_id());
diff --git a/mm/mempolicy.c b/mm/mempolicy.c
index 2d367ef15d0f..6132a230a3b9 100644
--- a/mm/mempolicy.c
+++ b/mm/mempolicy.c
@@ -2216,7 +2216,7 @@ static struct page *alloc_pages_preferred_many(gfp_t gfp, unsigned int order,
*
* Return: The page on success or NULL if allocation fails.
*/
-struct page *alloc_pages_mpol_noprof(gfp_t gfp, unsigned int order,
+static struct page *alloc_pages_mpol_noprof(gfp_t gfp, unsigned int order,
struct mempolicy *pol, pgoff_t ilx, int nid)
{
nodemask_t *nodemask;
--
2.43.5
next prev parent reply other threads:[~2024-08-05 16:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-05 16:31 [PATCH 1/4] mm/mempolicy: Use folio_alloc_mpol_noprof() in alloc_pages_noprof() Aruna Ramakrishna
2024-08-05 16:31 ` Aruna Ramakrishna [this message]
2024-08-05 16:31 ` [PATCH 3/4] mm/mempolicy: Remove alloc_pages_mpol_noprof() Aruna Ramakrishna
2024-08-05 16:31 ` [PATCH 4/4] mm/mempolicy: Convert alloc_pages_preferred_many() to return a folio Aruna Ramakrishna
2024-08-06 8:05 ` [PATCH 1/4] mm/mempolicy: Use folio_alloc_mpol_noprof() in alloc_pages_noprof() Kefeng Wang
2024-08-20 17:58 ` Aruna Ramakrishna
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240805163120.5971-2-aruna.ramakrishna@oracle.com \
--to=aruna.ramakrishna@oracle.com \
--cc=linux-mm@kvack.org \
--cc=willy@infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox