mm, vmalloc: use well-defined find_last_bit() func
authorJoonsoo Kim <[email protected]>
Wed, 11 Sep 2013 21:21:40 +0000 (14:21 -0700)
committerLinus Torvalds <[email protected]>
Wed, 11 Sep 2013 22:57:34 +0000 (15:57 -0700)
commitb136be5e0b6e8e3e4dcb6722b51bb35199b06810
treeec898b9b4cca78e69b8cdf3fd1232c1d7f066e1d
parent6b70f7dff8f7ce2f4692afc7d4ef9f73f8c82434
mm, vmalloc: use well-defined find_last_bit() func

Our intention in here is to find last_bit within the region to flush.
There is well-defined function, find_last_bit() for this purpose and its
performance may be slightly better than current implementation.  So change
it.

Signed-off-by: Joonsoo Kim <[email protected]>
Reviewed-by: Wanpeng Li <[email protected]>
Acked-by: Johannes Weiner <[email protected]>
Acked-by: Zhang Yanfei <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/vmalloc.c