btrfs: use common file type conversion