Skip to contentSkip to conversation

btrfs-progs: fix definition of struct btrfs_extent_inline_ref

PATCH New Eric Sandeen 1 participant 1 message Aug 5, 2013 Btrfs file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 btrfs-progs: fix definition of struct btrfs_extent_inline_ref

Port kernel commit 1bec1aed to userspace.

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

---

ctree.h +1 -1
index 4f602d4..257396d 100644
@@ -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 {