[PATCH 3.16 050/245] btrfs: validate type when reading a chunk