diff options
author | Alex Elder <elder@inktank.com> | 2013-03-13 20:50:00 -0500 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2013-05-01 21:17:42 -0700 |
commit | adfe695a25e92e3a4597807fbc7f9a8105218776 (patch) | |
tree | 8356e0eafe1bd0e5817bca6e56f80e80c62b9482 /drivers | |
parent | 0baa1bd9b6da7161dc1773b1dfce3adfd37d675f (diff) |
ceph: move max constant definitions
Move some definitions for max integer values out of the rbd code and
into the more central "decode.h" header file. These really belong
in a Linux (or libc) header somewhere, but I haven't gotten around
to proposing that yet.
This is in preparation for moving some code out of rbd.c and into
the osd client.
Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/block/rbd.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/block/rbd.c b/drivers/block/rbd.c index dea4401c4f77..6ed508bd363a 100644 --- a/drivers/block/rbd.c +++ b/drivers/block/rbd.c @@ -52,13 +52,6 @@ #define SECTOR_SHIFT 9 #define SECTOR_SIZE (1ULL << SECTOR_SHIFT) -/* It might be useful to have these defined elsewhere */ - -#define U8_MAX ((u8) (~0U)) -#define U16_MAX ((u16) (~0U)) -#define U32_MAX ((u32) (~0U)) -#define U64_MAX ((u64) (~0ULL)) - #define RBD_DRV_NAME "rbd" #define RBD_DRV_NAME_LONG "rbd (rados block device)" |