summaryrefslogtreecommitdiff
path: root/drivers/block/rbd_types.h
diff options
context:
space:
mode:
authorAlex Elder <elder@dreamhost.com>2012-02-07 12:03:37 -0600
committerAlex Elder <elder@dreamhost.com>2012-03-22 10:47:50 -0500
commit593a9e7b34fa62d703b473ae923a9681556cdf74 (patch)
tree966050a350368a6c622e45a3ddd7d4fe5f857d08 /drivers/block/rbd_types.h
parent00f1f36ffa29a6b8e0529770bce2a44585ab3af0 (diff)
rbd: small changes
Here is another set of small code tidy-ups: - Define SECTOR_SHIFT and SECTOR_SIZE, and use these symbolic names throughout. Tell the blk_queue system our physical block size, in the (unlikely) event we want to use something other than the default. - Delete the definition of struct rbd_info, which is never used. - Move the definition of dev_to_rbd() down in its source file, just above where it gets first used, and change its name to dev_to_rbd_dev(). - Replace an open-coded operation in rbd_dev_release() to use dev_to_rbd_dev() instead. - Calculate the segment size for a given rbd_device just once in rbd_init_disk(). - Use the '%zd' conversion specifier in rbd_snap_size_show(), since the value formatted is a size_t. - Switch to the '%llu' conversion specifier in rbd_snap_id_show(). since the value formatted is unsigned. Signed-off-by: Alex Elder <elder@dreamhost.com>
Diffstat (limited to 'drivers/block/rbd_types.h')
-rw-r--r--drivers/block/rbd_types.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/block/rbd_types.h b/drivers/block/rbd_types.h
index fc6c678aa2cb..950708688f17 100644
--- a/drivers/block/rbd_types.h
+++ b/drivers/block/rbd_types.h
@@ -41,10 +41,6 @@
#define RBD_HEADER_SIGNATURE "RBD"
#define RBD_HEADER_VERSION "001.005"
-struct rbd_info {
- __le64 max_id;
-} __attribute__ ((packed));
-
struct rbd_image_snap_ondisk {
__le64 id;
__le64 image_size;