commit | 4d60351f9089ef0f39d73c0b6a103e61fc0ed187 | [log] [tgz] |
---|---|---|
author | Ilya Dryomov <ilya.dryomov@inktank.com> | Fri Mar 21 19:05:28 2014 +0200 |
committer | Sage Weil <sage@inktank.com> | Fri Apr 04 21:07:52 2014 -0700 |
tree | 12f0c5e54657361e9aac7961b59ad96d5f696dec | |
parent | 433fbdd31db267564bab20420bd8f161a7c69e4d [diff] |
libceph: switch osdmap_set_max_osd() to krealloc() Use krealloc() instead of rolling our own. (krealloc() with a NULL first argument acts as a kmalloc()). Properly initalize the new array elements. This is needed to make future additions to osdmap easier. Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com> Reviewed-by: Alex Elder <elder@linaro.org>