btrfs-progs: fix definition of struct btrfs_extent_inline_ref
authorEric Sandeen <sandeen@redhat.com>
Mon, 5 Aug 2013 21:46:08 +0000 (16:46 -0500)
committerDavid Sterba <dsterba@suse.cz>
Tue, 3 Sep 2013 17:40:48 +0000 (19:40 +0200)
Port kernel commit 1bec1aed to userspace.

use __le64 instead of u64 in on-disk structure definition.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
ctree.h

diff --git a/ctree.h b/ctree.h
index d459733..4c993a7 100644 (file)
--- a/ctree.h
+++ b/ctree.h
@@ -593,7 +593,7 @@ struct btrfs_shared_data_ref {
 
 struct btrfs_extent_inline_ref {
        u8 type;
-       u64 offset;
+       __le64 offset;
 } __attribute__ ((__packed__));
 
 struct btrfs_extent_ref_v0 {