mirror of https://gitee.com/openkylin/linux.git
rbd: fix type of snap_id in rbd_dev_v2_snap_info()
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> Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
This commit is contained in:
parent
8b84de7940
commit
e0b49868d3
|
@ -2802,7 +2802,7 @@ static char *rbd_dev_v2_snap_name(struct rbd_device *rbd_dev, u32 which)
|
||||||
static char *rbd_dev_v2_snap_info(struct rbd_device *rbd_dev, u32 which,
|
static char *rbd_dev_v2_snap_info(struct rbd_device *rbd_dev, u32 which,
|
||||||
u64 *snap_size, u64 *snap_features)
|
u64 *snap_size, u64 *snap_features)
|
||||||
{
|
{
|
||||||
__le64 snap_id;
|
u64 snap_id;
|
||||||
u8 order;
|
u8 order;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue