Skip to contentSkip to conversation

fix definition of struct btrfs_extent_inline_ref

PATCH New Yan Zheng 1 participant 1 message Jul 15, 2009 Btrfs file system

lore
Share & tools
lore

Yan Zheng

author
#0 lore raw

PATCH 1/1 fix definition of struct btrfs_extent_inline_ref

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

---

fs/btrfs/ctree.h +1 -1
diff -urp 1/fs/btrfs/ctree.h 2/fs/btrfs/ctree.h
@@ -483,7 +483,7 @@ struct btrfs_shared_data_ref {
 
 struct btrfs_extent_inline_ref {
 	u8 type;
-	u64 offset;
+	__le64 offset;
 } __attribute__ ((__packed__));
 
 /* old style backrefs item */