Loading drivers/staging/android/lowmemorykiller.c +2 −7 Original line number Diff line number Diff line Loading @@ -264,13 +264,8 @@ static DEFINE_MUTEX(scan_mutex); static int can_use_cma_pages(gfp_t gfp_mask) { int mtype = gfpflags_to_migratetype(gfp_mask); /* * Assumes that all types of movable pages can be * served by cma. Fix this if that changes. */ if (mtype == MIGRATE_MOVABLE) if (gfpflags_to_migratetype(gfp_mask) == MIGRATE_MOVABLE && (gfp_mask & __GFP_CMA)) return 1; return 0; Loading include/linux/mmzone.h +0 −7 Original line number Diff line number Diff line Loading @@ -66,13 +66,6 @@ enum migratetype { /* In mm/page_alloc.c; keep in sync also with show_migration_types() there */ extern char * const migratetype_names[MIGRATE_TYPES]; /* * Returns a list which contains the migrate types on to which * an allocation falls back when the free list for the migrate * type mtype is depleted. * The end of the list is delimited by the type MIGRATE_TYPES. */ extern int *get_migratetype_fallbacks(int mtype); #ifdef CONFIG_CMA # define is_migrate_cma(migratetype) unlikely((migratetype) == MIGRATE_CMA) Loading mm/page_alloc.c +0 −5 Original line number Diff line number Diff line Loading @@ -1855,11 +1855,6 @@ static int fallbacks[MIGRATE_TYPES][4] = { #endif }; int *get_migratetype_fallbacks(int mtype) { return fallbacks[mtype]; } #ifdef CONFIG_CMA static struct page *__rmqueue_cma_fallback(struct zone *zone, unsigned int order) Loading Loading
drivers/staging/android/lowmemorykiller.c +2 −7 Original line number Diff line number Diff line Loading @@ -264,13 +264,8 @@ static DEFINE_MUTEX(scan_mutex); static int can_use_cma_pages(gfp_t gfp_mask) { int mtype = gfpflags_to_migratetype(gfp_mask); /* * Assumes that all types of movable pages can be * served by cma. Fix this if that changes. */ if (mtype == MIGRATE_MOVABLE) if (gfpflags_to_migratetype(gfp_mask) == MIGRATE_MOVABLE && (gfp_mask & __GFP_CMA)) return 1; return 0; Loading
include/linux/mmzone.h +0 −7 Original line number Diff line number Diff line Loading @@ -66,13 +66,6 @@ enum migratetype { /* In mm/page_alloc.c; keep in sync also with show_migration_types() there */ extern char * const migratetype_names[MIGRATE_TYPES]; /* * Returns a list which contains the migrate types on to which * an allocation falls back when the free list for the migrate * type mtype is depleted. * The end of the list is delimited by the type MIGRATE_TYPES. */ extern int *get_migratetype_fallbacks(int mtype); #ifdef CONFIG_CMA # define is_migrate_cma(migratetype) unlikely((migratetype) == MIGRATE_CMA) Loading
mm/page_alloc.c +0 −5 Original line number Diff line number Diff line Loading @@ -1855,11 +1855,6 @@ static int fallbacks[MIGRATE_TYPES][4] = { #endif }; int *get_migratetype_fallbacks(int mtype) { return fallbacks[mtype]; } #ifdef CONFIG_CMA static struct page *__rmqueue_cma_fallback(struct zone *zone, unsigned int order) Loading