Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 331672
b: refs/heads/master
c: 86ff77b
h: refs/heads/master
v: v3
  • Loading branch information
Alex Elder committed Oct 1, 2012
1 parent e27f32d commit 6a88180
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: 0f308a3188b37f36bc5a078f5fe039a41714476e
refs/heads/master: 86ff77bb68c6cda783b195a260f68fd5d32f7aaf
4 changes: 2 additions & 2 deletions trunk/drivers/block/rbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -2258,8 +2258,8 @@ static int rbd_dev_snaps_register(struct rbd_device *rbd_dev)
int ret = 0;

dout("%s called\n", __func__);
if (!device_is_registered(&rbd_dev->dev))
return 0;
if (WARN_ON(!device_is_registered(&rbd_dev->dev)))
return -EIO;

list_for_each_entry(snap, &rbd_dev->snaps, node) {
if (!rbd_snap_registered(snap)) {
Expand Down

0 comments on commit 6a88180

Please sign in to comment.