Skip to content
Commit 9155203a authored by David Howells's avatar David Howells Committed by Linus Torvalds
Browse files

mm: use roundown_pow_of_two() in zone_batchsize()



Use roundown_pow_of_two(N) in zone_batchsize() rather than (1 <<
(fls(N)-1)) as they are equivalent, and with the former it is easier to
see what is going on.

Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
Tested-by: default avatarLanttor Guo <lanttor.guo@freescale.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 74614f8d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment