summaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorJosh Durgin <josh.durgin@dreamhost.com>2011-11-22 03:19:13 +0100
committerAlex Elder <elder@dreamhost.com>2012-03-22 16:47:47 +0100
commitcc9d734c3d1b39c6a557673469aea26364060226 (patch)
tree67cc35424a31e6be289f118732f45e15c9432dad /drivers/media
parentrbd: do not duplicate ceph_client pointer in rbd_device (diff)
downloadlinux-cc9d734c3d1b39c6a557673469aea26364060226.tar.xz
linux-cc9d734c3d1b39c6a557673469aea26364060226.zip
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 <elder@dreamhost.com> Signed-off-by: Sage Weil <sage@newdream.net> 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.
Diffstat (limited to 'drivers/media')
0 files changed, 0 insertions, 0 deletions