From: Josh Durgin Date: Tue, 22 Nov 2011 02:19:13 +0000 (-0800) Subject: rbd: use a single value of snap_name to mean no snap X-Git-Tag: v3.4-rc1~76^2~42 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cc9d734c3d1b39c6a557673469aea26364060226;p=pandora-kernel.git rbd: use a single value of snap_name to mean no snap There's already a constant for this anyway. Since rbd_header_set_snap() is only used to set the rbd device snap_name field, just do that within that function rather than having it take the snap_name as an argument. Signed-off-by: Alex Elder Signed-off-by: Sage Weil v2: Changed interface rbd_header_set_snap() so it explicitly updates the snap_name in the rbd_device. Also added a BUILD_BUG_ON() to verify the size of the snap_name field is sufficient for SNAP_HEAD_NAME. --- Reading git-diff-tree failed