+ mm-add-arch_alloc_page.patch added to -mm tree

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

 



The patch titled

     mm: add arch_alloc_page

has been added to the -mm tree.  Its filename is

     mm-add-arch_alloc_page.patch

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: mm: add arch_alloc_page
From: Nick Piggin <npiggin@xxxxxxx>

Add an arch_alloc_page to match arch_free_page.

Signed-off-by: Nick Piggin <npiggin@xxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 include/linux/gfp.h |    3 +++
 mm/page_alloc.c     |    2 ++
 2 files changed, 5 insertions(+)

diff -puN include/linux/gfp.h~mm-add-arch_alloc_page include/linux/gfp.h
--- a/include/linux/gfp.h~mm-add-arch_alloc_page
+++ a/include/linux/gfp.h
@@ -118,6 +118,9 @@ static inline enum zone_type gfp_zone(gf
 #ifndef HAVE_ARCH_FREE_PAGE
 static inline void arch_free_page(struct page *page, int order) { }
 #endif
+#ifndef HAVE_ARCH_ALLOC_PAGE
+static inline void arch_alloc_page(struct page *page, int order) { }
+#endif
 
 extern struct page *
 FASTCALL(__alloc_pages(gfp_t, unsigned int, struct zonelist *));
diff -puN mm/page_alloc.c~mm-add-arch_alloc_page mm/page_alloc.c
--- a/mm/page_alloc.c~mm-add-arch_alloc_page
+++ a/mm/page_alloc.c
@@ -601,6 +601,8 @@ static int prep_new_page(struct page *pa
 			1 << PG_checked | 1 << PG_mappedtodisk);
 	set_page_private(page, 0);
 	set_page_refcounted(page);
+
+	arch_alloc_page(page, order);
 	kernel_map_pages(page, 1 << order, 1);
 
 	if (gfp_flags & __GFP_ZERO)
_

Patches currently in -mm which might be from npiggin@xxxxxxx are

mm-arch_free_page-fix.patch
mm-locks_freed-fix.patch
mm-add-arch_alloc_page.patch
mm-fault-vs-invalidate-truncate-race-fix.patch
mm-fault-handler-to-replace-nopage-and-populate.patch
mm-fault-vs-invalidate-truncate-check.patch
radix-tree-rcu-lockless-readside.patch
sched-likely-profiling.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