Skip to content

Commit

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

rbd_dev->disk = disk;

set_capacity(rbd_dev->disk, rbd_dev->mapping.size / SECTOR_SIZE);

return 0;
out_disk:
put_disk(disk);
Expand Down Expand Up @@ -2646,7 +2648,6 @@ static ssize_t rbd_add(struct bus_type *bus,

/* Everything's ready. Announce the disk to the world. */

set_capacity(rbd_dev->disk, rbd_dev->mapping.size / SECTOR_SIZE);
add_disk(rbd_dev->disk);
pr_info("%s: added with size 0x%llx\n", rbd_dev->disk->disk_name,
(unsigned long long) rbd_dev->mapping.size);
Expand Down

0 comments on commit ea99646

Please sign in to comment.