arm: get rid of superfluous __GFP_REPEAT
PATCH 1/126 arm: get rid of superfluous __GFP_REPEAT
From: Michal Hocko <[email protected]>
Subject: arm: get rid of superfluous __GFP_REPEAT
__GFP_REPEAT has a rather weak semantic but since it has been introduced around 2.6.12 it has been ignored for low order allocations.
PGALLOC_GFP uses __GFP_REPEAT but none of the allocation which uses this flag is for more than order-2. This means that this flag has never been actually useful here because it has always been used only for PAGE_ALLOC_COSTLY requests.
Signed-off-by Michal Hocko <[email protected]>
Cc Russell King <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
arch/arm/include/asm/pgalloc.h | 2 +- arch/arm/mm/pgd.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
arch/arm/include/asm/pgalloc.h renamed from arch/arm/include/asm/pgalloc.h~arm-get-rid-of-superfluous-__gfp_repeat +1 -1
@@ -57,7 +57,7 @@ static inline void pud_populate(struct mextern pgd_t *pgd_alloc (struct mm_struct *mm);extern void pgd_free (struct mm_struct *mm,pgd_t *pgd); -#define PGALLOC_GFP (GFP_KERNEL | __GFP_NOTRACK | __GFP_REPEAT | __GFP_ZERO) +#define PGALLOC_GFP (GFP_KERNEL | __GFP_NOTRACK | __GFP_ZERO)static inline void clean_pte_table (pte_t *pte) {
arch/arm/mm/pgd.c renamed from arch/arm/mm/pgd.c~arm-get-rid-of-superfluous-__gfp_repeat +1 -1
@@ -23,7 +23,7 @@#define __pgd_alloc () kmalloc(PTRS_PER_PGD * sizeof(pgd_t), GFP_KERNEL)#define __pgd_free (pgd) kfree(pgd)#else -#define __pgd_alloc () (pgd_t *)__get_free_pages(GFP_KERNEL | __GFP_REPEAT, 2) +#define __pgd_alloc () (pgd_t *)__get_free_pages(GFP_KERNEL, 2)#define __pgd_free (pgd) free_pages((unsigned long)pgd, 2)#endif
_