btrfs: Add function to distinguish between data and btree inode