From patchwork Sat Jan 12 03:17:06 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Elder X-Patchwork-Id: 1968421 Return-Path: X-Original-To: patchwork-ceph-devel@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 92998E007B for ; Sat, 12 Jan 2013 03:17:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755863Ab3ALDRT (ORCPT ); Fri, 11 Jan 2013 22:17:19 -0500 Received: from mail-ie0-f181.google.com ([209.85.223.181]:48721 "EHLO mail-ie0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755388Ab3ALDRJ (ORCPT ); Fri, 11 Jan 2013 22:17:09 -0500 Received: by mail-ie0-f181.google.com with SMTP id 16so3180150iea.12 for ; Fri, 11 Jan 2013 19:17:09 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding:x-gm-message-state; bh=UwxM+TZgY3YiyFRY5nQmgUYQcu0n8kyG6Q/sv/J1RQE=; b=OBDGn+u9DTXrMMn/KiBEnhJ8viaR1HBp6d9pUWW/TmrsVuSiu50t3huOCtU8E1XRMi u6KOnpcJ8eQd3OO39s8eJZrOTEARu+Dihp4bCJKKGQU5dHtM5tNSbBnisAA8zk0oalzp Fvup6m3RHNR9clpbVX6r6XE8RTZxeGrIAdvlR8GXuoWSS8pXLKCxCtjKUwG0zveQmNW6 LI3Ot6JEN8uP95eFGyQo7sIJTieK9gnMxn6K7PVp/LeKVn6bV1+NVLyJRPOFSjBuELia Jc8i8362oNgHqIejO9tQ0FZyLE58XvKoxnQaQwtCl0/99bX/WkMAC+lv6cjnHdXij32G Wnag== X-Received: by 10.50.173.33 with SMTP id bh1mr29733igc.41.1357960629147; Fri, 11 Jan 2013 19:17:09 -0800 (PST) Received: from [172.22.22.4] (c-71-195-31-37.hsd1.mn.comcast.net. [71.195.31.37]) by mx.google.com with ESMTPS id as6sm1126107igc.8.2013.01.11.19.17.07 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 11 Jan 2013 19:17:08 -0800 (PST) Message-ID: <50F0D5B2.2090904@inktank.com> Date: Fri, 11 Jan 2013 21:17:06 -0600 From: Alex Elder User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130106 Thunderbird/17.0.2 MIME-Version: 1.0 To: ceph-devel Subject: [PATCH] rbd: fix type of snap_id in rbd_dev_v2_snap_info() X-Gm-Message-State: ALoCoQkSfzqYbDRic1jeeowx4oj6nOjZiOi/VQeWaqbtrXUEJPhbYkbKo+djs/7HLC2UByqX/uxe Sender: ceph-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: ceph-devel@vger.kernel.org The type of the snap_id local variable is defined with the wrong byte order. Fix that. Signed-off-by: Alex Elder Reviewed-by: Josh Durgin --- 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;