From: Ilya Dryomov Date: Fri, 21 Mar 2014 17:05:28 +0000 (+0200) Subject: libceph: switch osdmap_set_max_osd() to krealloc() X-Git-Tag: v3.15-rc1~61^2~25 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d60351f9089ef0f39d73c0b6a103e61fc0ed187;p=pandora-kernel.git 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 Reviewed-by: Alex Elder --- Reading git-diff-tree failed