Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2309f9e6 authored by Pavel Machek's avatar Pavel Machek Committed by Linus Torvalds
Browse files

mm/page_alloc.c: remove hand-coded get_order()



Remove hand-coded get_order() from page_alloc.c.

Signed-off-by: default avatarPavel Machek <pavel@suse.cz>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 97d87c97
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -4345,9 +4345,7 @@ void *__init alloc_large_system_hash(const char *tablename,
		else if (hashdist)
			table = __vmalloc(size, GFP_ATOMIC, PAGE_KERNEL);
		else {
			unsigned long order;
			for (order = 0; ((1UL << order) << PAGE_SHIFT) < size; order++)
				;
			unsigned long order = get_order(size);
			table = (void*) __get_free_pages(GFP_ATOMIC, order);
			/*
			 * If bucketsize is not a power-of-two, we may free