]> git.karo-electronics.de Git - linux-beck.git/commit
libceph: switch osdmap_set_max_osd() to krealloc()
authorIlya Dryomov <ilya.dryomov@inktank.com>
Fri, 21 Mar 2014 17:05:28 +0000 (19:05 +0200)
committerSage Weil <sage@inktank.com>
Sat, 5 Apr 2014 04:07:52 +0000 (21:07 -0700)
commit4d60351f9089ef0f39d73c0b6a103e61fc0ed187
tree12f0c5e54657361e9aac7961b59ad96d5f696dec
parent433fbdd31db267564bab20420bd8f161a7c69e4d
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>
net/ceph/osdmap.c