mm/slub: use get_order() instead of fls()
authorWei Yang <weiyang@linux.vnet.ibm.com>
Fri, 6 Nov 2015 02:45:48 +0000 (18:45 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 6 Nov 2015 03:34:48 +0000 (19:34 -0800)
commit033fd1bd3c50fdda267d27d02f9bc656f0b9ddb8
tree74b742a65bc35c7a5aba4189c988f6ca621f1d4e
parent422ff4d70c1b3b2deed431dc095432dc691f4269
mm/slub: use get_order() instead of fls()

get_order() is more easy to understand.

This patch just replaces it.

Signed-off-by: Wei Yang <weiyang@linux.vnet.ibm.com>
Cc: Christoph Lameter <cl@linux.com>
Cc: David Rientjes <rientjes@google.com>
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Reviewed-by: Pekka Enberg <penberg@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/slub.c