mm-mempolicy-use-readable-numa_no_node-macro-instead-of-magic-numer.patch removed from -mm tree
The patch titled
Subject: mm/mempolicy: use readable NUMA_NO_NODE macro instead of magic number
has been removed from the -mm tree. Its filename was
mm-mempolicy-use-readable-numa_no_node-macro-instead-of-magic-numer.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Baolin Wang <[email protected]>
Subject: mm/mempolicy: use readable NUMA_NO_NODE macro instead of magic number
The caller of mpol_misplaced() already use NUMA_NO_NODE to check whether current page node is misplaced, thus using NUMA_NO_NODE in mpol_misplaced() instead of magic number is more readable.
---
mm/mempolicy.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
mm/mempolicy.c renamed from mm/mempolicy.c~mm-mempolicy-use-readable-numa_no_node-macro-instead-of-magic-numer +3 -3
@@ -2425,8 +2425,8 @@ static void sp_free(struct sp_node *n)* node id. Policy determination "mimics" alloc_page_vma(). * Called from fault path where we know the vma and faulting address. * -* Return: -1 if the page is in a node that is valid for this policy, or a -* suitable node ID to allocate a replacement page from. +* Return: NUMA_NO_NODE if the page is in a node that is valid for this +* policy, or a suitable node ID to allocate a replacement page from. */ int mpol_misplaced (struct page *page,struct vm_area_struct *vma,unsigned long addr) {
@@ -2437,7 +2437,7 @@ int mpol_misplaced(struct page *page, stint thiscpu =raw_smp_processor_id ();int thisnid =cpu_to_node (thiscpu);int polnid =NUMA_NO_NODE ; -int ret =-1 ; +int ret =NUMA_NO_NODE ; pol =get_vma_policy (vma, addr);if (!(pol->flags &MPOL_F_MOF ))
_
Patches currently in -mm which might be from [email protected] are
mm-migrate-simplify-the-file-backed-pages-validation-when-migrating-its-mapping.patch mm-migrate-introduce-a-local-variable-to-get-the-number-of-pages.patch mm-migrate-fix-the-incorrect-function-name-in-comments.patch mm-migrate-change-to-use-bool-type-for-page_was_mapped.patch