diff options
author | Michael S. Tsirkin <mst@mellanox.co.il> | 2005-09-26 21:12:26 -0700 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2005-09-26 21:12:26 -0700 |
commit | f02b16bea2d8411b21a531fc381e066985895387 (patch) | |
tree | e129e595b978238b2f2c9966acab0cc8a761e0ad /drivers/md/raid1.c | |
parent | 63c47c286d062d93e0501d60797274c84a587e97 (diff) | |
download | linux-next-f02b16bea2d8411b21a531fc381e066985895387.tar.gz |
[IB] mthca: Round up number of slots in HCA context memory table
When allocating a table for mem-free HCA context, don't assume that
obj_size * nobj is an even multiple of MTHCA_TABLE_CHUNK_SIZE. In
particular, make sure we allocate at least one slot even if the table
is smaller than MTHCA_TABLE_CHUNK_SIZE.
Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/md/raid1.c')
0 files changed, 0 insertions, 0 deletions