Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 373489
b: refs/heads/master
c: c86f86e
h: refs/heads/master
i:
  373487: f1c20e4
v: v3
  • Loading branch information
Alex Elder authored and Sage Weil committed May 2, 2013
1 parent 52a2533 commit 08a8c20
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 522a0cc0f0ecdb1857db7795b1c17591f28f9ca0
refs/heads/master: c86f86e9e75e77e4d51ded9edbad30834ff606f7
6 changes: 3 additions & 3 deletions trunk/drivers/block/rbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -3494,7 +3494,8 @@ static int _rbd_dev_v2_snap_size(struct rbd_device *rbd_dev, u64 snap_id,
if (ret < sizeof (size_buf))
return -ERANGE;

*order = size_buf.order;
if (order)
*order = size_buf.order;
*snap_size = le64_to_cpu(size_buf.size);

dout(" snap_id 0x%016llx order = %u, snap_size = %llu\n",
Expand Down Expand Up @@ -3939,11 +3940,10 @@ static char *rbd_dev_v2_snap_info(struct rbd_device *rbd_dev, u32 which,
u64 *snap_size, u64 *snap_features)
{
u64 snap_id;
u8 order;
int ret;

snap_id = rbd_dev->header.snapc->snaps[which];
ret = _rbd_dev_v2_snap_size(rbd_dev, snap_id, &order, snap_size);
ret = _rbd_dev_v2_snap_size(rbd_dev, snap_id, NULL, snap_size);
if (ret)
return ERR_PTR(ret);
ret = _rbd_dev_v2_snap_features(rbd_dev, snap_id, snap_features);
Expand Down

0 comments on commit 08a8c20

Please sign in to comment.