+ mm-rework-do_pages_move-to-work-on-page_sized-chunks-update.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     mm-rework-do_pages_move-to-work-on-page_sized-chunks update
has been added to the -mm tree.  Its filename is
     mm-rework-do_pages_move-to-work-on-page_sized-chunks-update.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

See http://userweb.kernel.org/~akpm/added-to-mm.txt to find
out what to do about this

The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/

------------------------------------------------------
Subject: mm-rework-do_pages_move-to-work-on-page_sized-chunks update
From: Brice Goglin <Brice.Goglin@xxxxxxxx>

Signed-off-by: Brice Goglin <Brice.Goglin@xxxxxxxx>
Signed-off-by: Nathalie Furmento <Nathalie.Furmento@xxxxxxxx>
Acked-by: Christoph Lameter <cl@xxxxxxxxxxxxxxxxxxxx>
Cc: Nick Piggin <nickpiggin@xxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 mm/migrate.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff -puN mm/migrate.c~mm-rework-do_pages_move-to-work-on-page_sized-chunks-update mm/migrate.c
--- a/mm/migrate.c~mm-rework-do_pages_move-to-work-on-page_sized-chunks-update
+++ a/mm/migrate.c
@@ -931,14 +931,14 @@ static int do_pages_move(struct mm_struc
 	task_nodes = cpuset_mems_allowed(task);
 
 	err = -ENOMEM;
-	pm = kmalloc(PAGE_SIZE, GFP_KERNEL);
+	pm = (struct page_to_node *)__get_free_page(GFP_KERNEL);
 	if (!pm)
 		goto out;
 	/*
 	 * Store a chunk of page_to_node array in a page,
 	 * but keep the last one as a marker
 	 */
-	chunk_nr_pages = PAGE_SIZE/sizeof(struct page_to_node) - 1;
+	chunk_nr_pages = (PAGE_SIZE / sizeof(struct page_to_node)) - 1;
 
 	for (chunk_start = 0;
 	     chunk_start < nr_pages;
@@ -991,7 +991,7 @@ static int do_pages_move(struct mm_struc
 	err = 0;
 
 out_pm:
-	kfree(pm);
+	free_page((unsigned long)pm);
 out:
 	return err;
 }
_

Patches currently in -mm which might be from Brice.Goglin@xxxxxxxx are

origin.patch
mm-rework-do_pages_move-to-work-on-page_sized-chunks.patch
mm-rework-do_pages_move-to-work-on-page_sized-chunks-update.patch
mm-move_pages-no-need-to-set-pp-page-to-zero_page0-by-default.patch

--
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux