Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

score: 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.

pte_alloc_one{_kernel} allocate PTE_ORDER which is 0. This means that
this flag has never been actually useful here because it has always been
used only for PAGE_ALLOC_COSTLY requests.

Link: http://lkml.kernel.org/r/1464599699-30131-11-git-send-email-mhocko@kernel.org
Signed-off-by: Michal Hocko <mhocko@suse.com>
Cc: Chen Liqin <liqin.linux@gmail.com>
Cc: Lennox Wu <lennox.wu@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Michal Hocko and committed by
Linus Torvalds
a4135b93 aade311a

+2 -3
+2 -3
arch/score/include/asm/pgalloc.h
··· 42 42 { 43 43 pte_t *pte; 44 44 45 - pte = (pte_t *) __get_free_pages(GFP_KERNEL|__GFP_REPEAT|__GFP_ZERO, 46 - PTE_ORDER); 45 + pte = (pte_t *) __get_free_pages(GFP_KERNEL|__GFP_ZERO, PTE_ORDER); 47 46 48 47 return pte; 49 48 } ··· 52 53 { 53 54 struct page *pte; 54 55 55 - pte = alloc_pages(GFP_KERNEL | __GFP_REPEAT, PTE_ORDER); 56 + pte = alloc_pages(GFP_KERNEL, PTE_ORDER); 56 57 if (!pte) 57 58 return NULL; 58 59 clear_highpage(pte);