diff options
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/rbd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/block/rbd.c b/drivers/block/rbd.c index b8e557fbf73b..d187d087a505 100644 --- a/drivers/block/rbd.c +++ b/drivers/block/rbd.c | |||
@@ -1326,8 +1326,7 @@ static void rbd_notify_cb(u64 ver, u64 notify_id, u8 opcode, void *data) | |||
1326 | /* | 1326 | /* |
1327 | * Request sync osd notify | 1327 | * Request sync osd notify |
1328 | */ | 1328 | */ |
1329 | static int rbd_req_sync_notify(struct rbd_device *rbd_dev, | 1329 | static int rbd_req_sync_notify(struct rbd_device *rbd_dev) |
1330 | const char *object_name) | ||
1331 | { | 1330 | { |
1332 | struct ceph_osd_req_op *ops; | 1331 | struct ceph_osd_req_op *ops; |
1333 | struct ceph_osd_client *osdc = &rbd_dev->rbd_client->client->osdc; | 1332 | struct ceph_osd_client *osdc = &rbd_dev->rbd_client->client->osdc; |
@@ -1358,7 +1357,8 @@ static int rbd_req_sync_notify(struct rbd_device *rbd_dev, | |||
1358 | 0, | 1357 | 0, |
1359 | CEPH_OSD_FLAG_WRITE | CEPH_OSD_FLAG_ONDISK, | 1358 | CEPH_OSD_FLAG_WRITE | CEPH_OSD_FLAG_ONDISK, |
1360 | ops, | 1359 | ops, |
1361 | object_name, 0, 0, NULL, NULL, NULL); | 1360 | rbd_dev->header_name, |
1361 | 0, 0, NULL, NULL, NULL); | ||
1362 | if (ret < 0) | 1362 | if (ret < 0) |
1363 | goto fail_event; | 1363 | goto fail_event; |
1364 | 1364 | ||
@@ -2651,7 +2651,7 @@ static ssize_t rbd_snap_add(struct device *dev, | |||
2651 | mutex_unlock(&ctl_mutex); | 2651 | mutex_unlock(&ctl_mutex); |
2652 | 2652 | ||
2653 | /* make a best effort, don't error if failed */ | 2653 | /* make a best effort, don't error if failed */ |
2654 | rbd_req_sync_notify(rbd_dev, rbd_dev->header_name); | 2654 | rbd_req_sync_notify(rbd_dev); |
2655 | 2655 | ||
2656 | ret = count; | 2656 | ret = count; |
2657 | kfree(name); | 2657 | kfree(name); |