summaryrefslogtreecommitdiff
path: root/libbcachefs/inode.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2017-11-04 18:32:07 -0400
committerKent Overstreet <kent.overstreet@gmail.com>2017-11-08 16:01:26 -0900
commit8351bbc05bc163758d3410ce6d6cab8eb4441609 (patch)
treeceadbb138b842701e8edc3c1d5fb1a772cf7d8de /libbcachefs/inode.h
parentbf8c59996b3fb2a940827d12438a9e18eca6db4c (diff)
Update bcachefs sources to d4b7ef921a bcachefs: Refactoring
Diffstat (limited to 'libbcachefs/inode.h')
-rw-r--r--libbcachefs/inode.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/libbcachefs/inode.h b/libbcachefs/inode.h
index 22aac3e6..53c70617 100644
--- a/libbcachefs/inode.h
+++ b/libbcachefs/inode.h
@@ -6,10 +6,10 @@
extern const struct bkey_ops bch2_bkey_inode_ops;
struct bch_inode_unpacked {
- u64 inum;
- __le64 i_hash_seed;
- u32 i_flags;
- u16 i_mode;
+ u64 bi_inum;
+ __le64 bi_hash_seed;
+ u32 bi_flags;
+ u16 bi_mode;
#define BCH_INODE_FIELD(_name, _bits) u##_bits _name;
BCH_INODE_FIELDS()
@@ -22,7 +22,7 @@ struct bkey_inode_buf {
#define BCH_INODE_FIELD(_name, _bits) + 8 + _bits / 8
u8 _pad[0 + BCH_INODE_FIELDS()];
#undef BCH_INODE_FIELD
-};
+} __attribute__((packed, aligned(8)));
void bch2_inode_pack(struct bkey_inode_buf *, const struct bch_inode_unpacked *);
int bch2_inode_unpack(struct bkey_s_c_inode, struct bch_inode_unpacked *);