BTRFS: Fix mismatched type of index in inode_ref item.

Signed-off-by: Augustin Cavalier <[email protected]>
This commit is contained in:
hyche
2017-12-10 11:02:54 -05:00
committed by Augustin Cavalier
parent af419b0e98
commit 0deb03560f
@@ -294,11 +294,11 @@ struct btrfs_inode {
struct btrfs_inode_ref {
uint8 index;
uint64 index;
uint16 name_length;
uint8 name[];
uint8 Index() const { return index; }
uint64 Index() const { return index; }
uint16 NameLength() const { return B_LENDIAN_TO_HOST_INT16(name_length); }
} _PACKED;