projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3174d70
)
mm: mempolicy: use folio_alloc_mpol() in alloc_migration_target_by_mpol()
author
Kefeng Wang
<wangkefeng.wang@huawei.com>
Wed, 15 May 2024 07:07:08 +0000
(15:07 +0800)
committer
Andrew Morton
<akpm@linux-foundation.org>
Thu, 4 Jul 2024 02:29:53 +0000
(19:29 -0700)
Convert to use folio_alloc_mpol() to make vma_alloc_folio_noprof() to use
folio throughout.
Link:
https://lkml.kernel.org/r/20240515070709.78529-4-wangkefeng.wang@huawei.com
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Cc: Hugh Dickins <hughd@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/mempolicy.c
patch
|
blob
|
blame
|
history
diff --git
a/mm/mempolicy.c
b/mm/mempolicy.c
index 205d129c67449931406afac2bbbd54daf66524ab..f73acb01ad45d077744fff063b6108acd2d6ef85 100644
(file)
--- a/
mm/mempolicy.c
+++ b/
mm/mempolicy.c
@@
-1211,7
+1211,6
@@
static struct folio *alloc_migration_target_by_mpol(struct folio *src,
struct migration_mpol *mmpol = (struct migration_mpol *)private;
struct mempolicy *pol = mmpol->pol;
pgoff_t ilx = mmpol->ilx;
- struct page *page;
unsigned int order;
int nid = numa_node_id();
gfp_t gfp;
@@
-1235,8
+1234,7
@@
static struct folio *alloc_migration_target_by_mpol(struct folio *src,
else
gfp = GFP_HIGHUSER_MOVABLE | __GFP_RETRY_MAYFAIL | __GFP_COMP;
- page = alloc_pages_mpol(gfp, order, pol, ilx, nid);
- return page_rmappable_folio(page);
+ return folio_alloc_mpol(gfp, order, pol, ilx, nid);
}
#else