diff mbox

rbd: fix type of snap_id in rbd_dev_v2_snap_info()

Message ID 50F0D5B2.2090904@inktank.com (mailing list archive)
State New, archived
Headers show

Commit Message

Alex Elder Jan. 12, 2013, 3:17 a.m. UTC
The type of the snap_id local variable is defined with the
wrong byte order.  Fix that.

Signed-off-by: Alex Elder <elder@inktank.com>
---
 drivers/block/rbd.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Josh Durgin Jan. 17, 2013, 5:41 p.m. UTC | #1
On 01/11/2013 07:17 PM, Alex Elder wrote:
> The type of the snap_id local variable is defined with the
> wrong byte order.  Fix that.
>
> Signed-off-by: Alex Elder <elder@inktank.com>
> ---

Oops, I missed that too.

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>

>   drivers/block/rbd.c |    2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/block/rbd.c b/drivers/block/rbd.c
> index 02002b1..47443eb 100644
> --- a/drivers/block/rbd.c
> +++ b/drivers/block/rbd.c
> @@ -2800,7 +2800,7 @@ out:
>   static char *rbd_dev_v2_snap_info(struct rbd_device *rbd_dev, u32 which,
>   		u64 *snap_size, u64 *snap_features)
>   {
> -	__le64 snap_id;
> +	u64 snap_id;
>   	u8 order;
>   	int ret;
>

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/block/rbd.c b/drivers/block/rbd.c
index 02002b1..47443eb 100644
--- a/drivers/block/rbd.c
+++ b/drivers/block/rbd.c
@@ -2800,7 +2800,7 @@  out:
 static char *rbd_dev_v2_snap_info(struct rbd_device *rbd_dev, u32 which,
 		u64 *snap_size, u64 *snap_features)
 {
-	__le64 snap_id;
+	u64 snap_id;
 	u8 order;
 	int ret;