Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 373500
b: refs/heads/master
c: 500d0c0
h: refs/heads/master
v: v3
  • Loading branch information
Alex Elder authored and Sage Weil committed May 2, 2013
1 parent 4684e65 commit 4100ed2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 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: ecb4dc225612e1c0b28d2c1b168422dde4f442a6
refs/heads/master: 500d0c0fbb85b59e5e75fc83ff701b7d8aa285f9
10 changes: 5 additions & 5 deletions trunk/drivers/block/rbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ struct rbd_image_header {
char *snap_names;
u64 *snap_sizes;

u64 stripe_unit;
u64 stripe_count;

u64 obj_version;
};

Expand Down Expand Up @@ -316,9 +319,6 @@ struct rbd_device {
u64 parent_overlap;
struct rbd_device *parent;

u64 stripe_unit;
u64 stripe_count;

/* protects updating the header */
struct rw_semaphore header_rwsem;

Expand Down Expand Up @@ -3695,8 +3695,8 @@ static int rbd_dev_v2_striping_info(struct rbd_device *rbd_dev)
"(got %llu want 1)", stripe_count);
return -EINVAL;
}
rbd_dev->stripe_unit = stripe_unit;
rbd_dev->stripe_count = stripe_count;
rbd_dev->header.stripe_unit = stripe_unit;
rbd_dev->header.stripe_count = stripe_count;

return 0;
}
Expand Down

0 comments on commit 4100ed2

Please sign in to comment.