From: Alex Elder Date: Tue, 30 Apr 2013 05:44:33 +0000 (-0500) Subject: rbd: look up snapshot name in names buffer X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~26^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9682fc6d3a8b63f58fbfc5084f32c038170cfd6b;p=pandora-kernel.git rbd: look up snapshot name in names buffer Rather than scanning the list of snapshot structures for it, scan the snapshot context buffer containing snapshot names in order to determine for a format 1 image the name associated with a given snapshot id. Pull out the part of rbd_dev_v1_snap_info() that does this scan into a new function, _rbd_dev_v1_snap_name(). Have that function return a dynamically-allocated copy of the name, and don't duplicate it in rbd_dev_v1_snap_info(). Signed-off-by: Alex Elder Reviewed-by: Josh Durgin --- Reading git-diff-tree failed