mlx4_core: Clean up buddy bitmap allocation
authorRoland Dreier <roland@purestorage.com>
Tue, 14 Aug 2012 22:17:10 +0000 (15:17 -0700)
committerRoland Dreier <roland@purestorage.com>
Thu, 16 Aug 2012 04:05:27 +0000 (21:05 -0700)
commit96f17d590092ae2511adf599a252e8ed1901b7a4
tree33a540dc18e2256d70cddb35e8df10809b42ce6e
parent3de819e6b642fdd51904f5f4d2716d7466a2f7f5
mlx4_core: Clean up buddy bitmap allocation

 - Use kcalloc() / vzalloc() instead of an extra bitmap_zero().
 - Add __GFP_NOWARN to kcalloc() since we'll try vzalloc() if it fails.

Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/net/ethernet/mellanox/mlx4/mr.c