mm-cma-use-pageblock_order-as-the-single-alignment.patch removed from -mm tree
The quilt patch titled
Subject: mm: cma: use pageblock_order as the single alignment
has been removed from the -mm tree. Its filename was
mm-cma-use-pageblock_order-as-the-single-alignment.patch
This patch was dropped because it was merged into the mm-stable branch\nof git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Zi Yan <[email protected]>
Subject: mm: cma: use pageblock_order as the single alignment
Now alloc_contig_range() works at pageblock granularity. Change CMA allocation, which uses alloc_contig_range(), to use pageblock_nr_pages alignment.
Signed-off-by Zi Yan <[email protected]>
Cc Christophe Leroy <[email protected]>
Cc David Hildenbrand <[email protected]>
Cc Eric Ren <[email protected]>
Cc kernel test robot <[email protected]>
Cc Mel Gorman <[email protected]>
Cc Mike Rapoport <[email protected]>
Cc Minchan Kim <[email protected]>
Cc Oscar Salvador <[email protected]>
Cc Vlastimil Babka <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
include/linux/cma.h | 4 ++-- include/linux/mmzone.h | 5 +---- mm/page_alloc.c | 4 ++-- 3 files changed, 5 insertions(+), 8 deletions(-)
include/linux/cma.h renamed from include/linux/cma.h~mm-cma-use-pageblock_order-as-the-single-alignment +2 -2
@@ -17,11 +17,11 @@#define CMA_MAX_NAME 64/* -* TODO: once the buddy -- especially pageblock merging and alloc_contig_range() +* the buddy -- especially pageblock merging and alloc_contig_range() * -- can deal with only some pageblocks of a higher-order page being * MIGRATE_CMA, we can use pageblock_nr_pages. */ -#define CMA_MIN_ALIGNMENT_PAGES MAX_ORDER_NR_PAGES +#define CMA_MIN_ALIGNMENT_PAGES pageblock_nr_pages#define CMA_MIN_ALIGNMENT_BYTES (PAGE_SIZE * CMA_MIN_ALIGNMENT_PAGES)struct cma ;
include/linux/mmzone.h renamed from include/linux/mmzone.h~mm-cma-use-pageblock_order-as-the-single-alignment +1 -4
@@ -54,10 +54,7 @@ enum migratetype {* * The way to use it is to change migratetype of a range of * pageblocks to MIGRATE_CMA which can be done by -* __free_pageblock_cma() function. What is important though -* is that a range of pageblocks must be aligned to -* MAX_ORDER_NR_PAGES should biggest page be bigger than -* a single pageblock. +* __free_pageblock_cma() function. */ MIGRATE_CMA,#endif
mm/page_alloc.c renamed from mm/page_alloc.c~mm-cma-use-pageblock_order-as-the-single-alignment +2 -2
@@ -9046,8 +9046,8 @@ int __alloc_contig_migrate_range(struct* be either of the two. * @gfp_mask: GFP mask to use during compaction * -* The PFN range does not have to be pageblock or MAX_ORDER_NR_PAGES -* aligned. The PFN range must belong to a single zone. +* The PFN range does not have to be pageblock aligned. The PFN range must +* belong to a single zone. * * The first thing this routine does is attempt to MIGRATE_ISOLATE all * pageblocks in the range. Once isolated, the pageblocks should not
_
Patches currently in -mm which might be from [email protected] are