BTRFS: Fix mismatched type of index in inode_ref item.

Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
This commit is contained in:
hyche 2017-08-17 23:58:52 +07:00 committed by Augustin Cavalier
parent af419b0e98
commit 0deb03560f
1 changed files with 2 additions and 2 deletions

View File

@ -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;