From: Alex Elder Date: Wed, 11 Jul 2012 01:30:10 +0000 (-0500) Subject: rbd: have __rbd_add_snap_dev() return a pointer X-Git-Tag: v3.6-rc1~36^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e891e0af0f0011c90067373c46d7228568ec079;p=pandora-kernel.git rbd: have __rbd_add_snap_dev() return a pointer It's not obvious whether the snapshot pointer whose address is provided to __rbd_add_snap_dev() will be assigned by that function. Change it to return the snapshot, or a pointer-coded errno in the event of a failure. Signed-off-by: Alex Elder Reviewed-by: Josh Durgin --- Reading git-diff-tree failed