- mm-rework-do_pages_move-to-work-on-page_sized-chunks-update.patch removed from -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 removed from the -mm tree.  Its filename was
     mm-rework-do_pages_move-to-work-on-page_sized-chunks-update.patch

This patch was dropped because it was folded into mm-rework-do_pages_move-to-work-on-page_sized-chunks.patch

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
@@ -928,14 +928,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;
@@ -988,7 +988,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

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