]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6dad12de21c1babac2a8ce23de9ac778f88471bc
tree33a540dc18e2256d70cddb35e8df10809b42ce6e
parentc8556eaff3dc8b89e23d12231f57437726768bbe
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