bdev_type
if (bdev_type(bp->b_dev) == D_TAPE) {
dtype = bdev_type(dev);
error = bdev_type(dev) == D_DISK ? 0 : EINVAL;
int bdev_type(dev_t);