Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 320358
b: refs/heads/master
c: 4cb1625
h: refs/heads/master
v: v3
  • Loading branch information
Alex Elder authored and Sage Weil committed Jul 31, 2012
1 parent b58dc9e commit bcc463b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: 0e6f322d550a104b2065288c9f6426d5c0414b76
refs/heads/master: 4cb162508afade6d24d58e30be2bbaed80cf84d5
8 changes: 4 additions & 4 deletions trunk/drivers/block/rbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1326,8 +1326,7 @@ static void rbd_notify_cb(u64 ver, u64 notify_id, u8 opcode, void *data)
/*
* Request sync osd notify
*/
static int rbd_req_sync_notify(struct rbd_device *rbd_dev,
const char *object_name)
static int rbd_req_sync_notify(struct rbd_device *rbd_dev)
{
struct ceph_osd_req_op *ops;
struct ceph_osd_client *osdc = &rbd_dev->rbd_client->client->osdc;
Expand Down Expand Up @@ -1358,7 +1357,8 @@ static int rbd_req_sync_notify(struct rbd_device *rbd_dev,
0,
CEPH_OSD_FLAG_WRITE | CEPH_OSD_FLAG_ONDISK,
ops,
object_name, 0, 0, NULL, NULL, NULL);
rbd_dev->header_name,
0, 0, NULL, NULL, NULL);
if (ret < 0)
goto fail_event;

Expand Down Expand Up @@ -2651,7 +2651,7 @@ static ssize_t rbd_snap_add(struct device *dev,
mutex_unlock(&ctl_mutex);

/* make a best effort, don't error if failed */
rbd_req_sync_notify(rbd_dev, rbd_dev->header_name);
rbd_req_sync_notify(rbd_dev);

ret = count;
kfree(name);
Expand Down

0 comments on commit bcc463b

Please sign in to comment.