From: Alex Elder Date: Fri, 24 Aug 2012 04:22:06 +0000 (-0500) Subject: rbd: kill incore snap_names_len X-Git-Tag: v3.7-rc1~90^2~54 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f785cc1dbe90b561b8ded92df4fe9732bdc54859;p=pandora-kernel.git rbd: kill incore snap_names_len The only thing the on-disk snap_names_len field is needed is to size the buffer allocated to hold a copy of the snapshot names for an rbd image. So don't bother saving it in the in-core rbd_image_header structure. Just use a local variable to hold the required buffer size while it's needed. Move the code that actually copies the snapshot names up closer to where the required length is saved. Signed-off-by: Alex Elder Reviewed-by: Yehuda Sadeh --- Reading git-diff-tree failed