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

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

page_table_alloc then uses the flag for a single page allocation. This
means that this flag has never been actually useful here because it has
always been used only for PAGE_ALLOC_COSTLY requests.

An earlier attempt to remove the flag 10d58bf297e2 ("s390: get rid of
superfluous __GFP_REPEAT") has missed this one but the situation is very
same here.

Signed-off-by: Michal Hocko <mhocko@suse.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>

authored by

Michal Hocko and committed by
Martin Schwidefsky
faee35a5 157467ba

+1 -1
+1 -1
arch/s390/mm/pgalloc.c
··· 144 144 struct page *page; 145 145 unsigned long *table; 146 146 147 - page = alloc_page(GFP_KERNEL|__GFP_REPEAT); 147 + page = alloc_page(GFP_KERNEL); 148 148 if (page) { 149 149 table = (unsigned long *) page_to_phys(page); 150 150 clear_table(table, _PAGE_INVALID, PAGE_SIZE/2);